latest products maodule within a time range

  • Posts: 37
  • Thank you received: 1
13 years 2 weeks ago #29817

A little info first:

I have a latest products module on my home page showing 4 products
I have it set "Ordering field = Product Created"
I have set "Random Items = yes"

The reason i do this is because i want the latest products to change when a user visits the site.

Now i have just added new products and i want it to randomise the products display in the module for today's added products only but it still randomises between the older products as well.

The question:
Is there a way to tell the module to only randomise latest products within a time range (ie: yesterday till today) so that it doesnt include all the other really old products in the module?
Or perhaps randomise a quantity of lastest products. So only use the last 20 latest products, so at least it will show the 4 on the home page and change everytime between the 20 products.

If that is not possible, could you possibly suggest another way to do it?

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29837

Hi,

There is no option to do what you want.

If you really want to do that, you will need to create a hikashop plugin and implement the event onBeforeProductListingLoad(&$filters) in it to define some filters for that module's products listing MySQL query.
However, it's not easy to understand and require PHP skills.

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 1
13 years 2 weeks ago #29842

Ah... Thats unfortunate. Thanks for your help though.

Perhaps you could add it to you suggestion list for implementation ;)

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 2 weeks ago #29867

Sure.

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum