Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing Display By Date Added


asiandivergal

Recommended Posts

Posted

Good day everyone,

How can I change product listing display instead of displaying in default aphabetical way when you click on any catergory,it will display in date added like new product do? Because I have thousand of items,I think it will be better to display the lastest added item in page 1 of every catergories,it there any way to do that? Yhank you for looking into my problem.

 

Wish a happiest day to all!

Posted

First read this: http://www.oscommerce.com/forums/index.php?sho...c=308798&hl=

 

The only problem there is date added is not an option,

 

$HTTP_GET_VARS['sort'] = 0 . 'd';
$listing_sql .= " order by p.products_date_added DESC, pd.products_name";

 

should solve that

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Dear Sam,

Thank you so much for your amazing codes and it works like magic.

I have long to solve this but until to day.

 

I have to let everyone who see this post knows that 'Super Hero Sam' is always around to rescue And he is a true hero!!

Show your appreciation please.

 

Thank you again for all your great work and wish a superb day to you!

 

Best regardsm

Agnes

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...