Jump to content

Homefeatured module. Empty spaces problem.


pokedeck

Recommended Posts

Hello! I hope you can help me soon because the problem is big.

Homefeatured module is configured to show 12 random products, now I changed to show just in-stock items, but what is wrong? In fact, it is showing just in-stock items, but is randomly choosing 12 products of my index category being or not in stock. So the result: shows just a few products (in-stock randomly chose) and the rest of the 12 is showed as empty space.

 

What I want?

12 in-stock products randomly chose in the homefeatured block of my index category. 

 

I atached a screenshot as example. This time it showed 6 of 12 products. Other times shows 3,4,5, etc. Is random, but the rest is empty space... 

 

 

 

I'll give 5 dollar to the first person who can solve my problem :)

Thanks in advance.

post-488591-0-46550600-1425173788_thumb.png

Link to comment
Share on other sites

hi, haha so generous but christmas is over! you need to modify the sql request in your module file to get only in-stock products, is it the original module or a module you add by yourself?

:)

Is the module of prestashop (original).

I edited the following:

Shuffle, for random products

and if $product.quantity > 0 to show just in-stock items, but as I told you, show stock items and empty spaces.

 

Please let me know how to fix it :)

The 5 usd are on the desk yet haha

Link to comment
Share on other sites

  • 2 years later...

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
×
×
  • Create New...