Jump to content

Problem with new-products.php


em.pe
 Share

Recommended Posts

Hello,

In BO > Preferences > Products I can change the "Number of days during which the product is considered 'new':", but...


...how can I display latest added products (for example 100)?


Thanks in advance!

Share this post


Link to post
Share on other sites

If you added your products under "home" category you may show 100 products by increase number of featured products number from "back office > modules> home featured modules". If it is not show latest products you have to edit "homefeatured.php" and add "DATE_ADD" with "DESC"

Share this post


Link to post
Share on other sites

So you want the most recently added products to show first?

Or by latest are you trying to show the "older" products first?

The second poster is on the right track... you can modify your new-product.php file to specify the default order for new products. But the easier way might be to change the default order through the BO. The only difference is that by setting it in the BO it will affect all product-list pages, and maybe not just for new products.

Anways to do so, log into BO, click Preference >> Products, scroll down to "Default orderby" and "Default orderway". Set those accordingly.

HTH!

Share this post


Link to post
Share on other sites

OH... So even if they aren't "new" per say... you want them to be included within the new-products.php page?

Why can't you just set Number of Days to be considered new to a high number? I personally haven't tried it (ours is set at 45 days)... but I'm sure you could put a very high number in that field. Does it through some error if it's over a certain number of days or something?

Otherwise, you would have to modify the SQL query to pull all products from a set date till today... and you could set that start date to when you first opened your shop or something like that. If you decide to take this route you may want to consider creating a new module... i'm a noob to sql queries so my help would be limited in that area.

HTH!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More