pokedeck Posted March 1, 2015 Share Posted March 1, 2015 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. Link to comment Share on other sites More sharing options...
fred-vinapresta Posted March 1, 2015 Share Posted March 1, 2015 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? Link to comment Share on other sites More sharing options...
pokedeck Posted March 1, 2015 Author Share Posted March 1, 2015 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 More sharing options...
Nishith Nesdiya Posted March 3, 2015 Share Posted March 3, 2015 hello...pokedeck which PS version of use ? Link to comment Share on other sites More sharing options...
pokedeck Posted March 3, 2015 Author Share Posted March 3, 2015 hello...pokedeck which PS version of use ? 1.5 Link to comment Share on other sites More sharing options...
Nishith Nesdiya Posted March 4, 2015 Share Posted March 4, 2015 (edited) Hello please put these Category file your your_dir\override\classes. and also replace the homefeatured.php file which locate in your_dir\modules\homefeatured\ before replace this file first backup your file. thanks. Edited March 4, 2015 by Nishith (see edit history) Link to comment Share on other sites More sharing options...
perfectDr Posted May 22, 2017 Share Posted May 22, 2017 Also have such a problemю. Is there any solution? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now