ps3z Posted October 2, 2013 Share Posted October 2, 2013 (edited) hi the top sellers are not listed in page but listed in top seller blocks. http://screencast.com/t/IFSBpoYwy Edited October 2, 2013 by ps3z (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 2, 2013 Share Posted October 2, 2013 hello it might be related to the cache (prestashop using caching for this feature) have you tried to clear shop cache? you use some overrides of classes / controllers ? Link to comment Share on other sites More sharing options...
ps3z Posted October 2, 2013 Author Share Posted October 2, 2013 (edited) hello it might be related to the cache (prestashop using caching for this feature) have you tried to clear shop cache? you use some overrides of classes / controllers ? its cleared already but nothing changed. i dont know about overrides of classes or controllers http://www.worldbazaar.com.tr/tr/cok-satanlar Edited October 2, 2013 by ps3z (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 2, 2013 Share Posted October 2, 2013 it's related to ProductSale class located in your classes/ directory. can you check /override/classes/ directory, does the ProductSale.php file exist there? Link to comment Share on other sites More sharing options...
ps3z Posted October 2, 2013 Author Share Posted October 2, 2013 it's related to ProductSale class located in your classes/ directory. can you check /override/classes/ directory, does the ProductSale.php file exist there? yes its existed Link to comment Share on other sites More sharing options...
vekia Posted October 2, 2013 Share Posted October 2, 2013 how file contents looks like? Link to comment Share on other sites More sharing options...
ps3z Posted October 2, 2013 Author Share Posted October 2, 2013 how file contents looks like? <?php class ProductSale extends ProductSaleCore { } Link to comment Share on other sites More sharing options...
vekia Posted October 2, 2013 Share Posted October 2, 2013 okay, so you don't have an override, everything is okay then. the problem is in original file located in ROOT_DIR_OF_YOUR_STORE/classes/ especially in function: public static function getBestSales($id_lang, $page_number = 0, $nb_products = 10, $order_by = null, $order_way = null) without access to store it will ba a little hard to say what exactly doesnt work can you paste contents of original file to: http://pastebin.com/ i will check it on my own + what ps version you use? Link to comment Share on other sites More sharing options...
ps3z Posted October 2, 2013 Author Share Posted October 2, 2013 okay, so you don't have an override, everything is okay then. the problem is in original file located in ROOT_DIR_OF_YOUR_STORE/classes/ especially in function: public static function getBestSales($id_lang, $page_number = 0, $nb_products = 10, $order_by = null, $order_way = null) without access to store it will ba a little hard to say what exactly doesnt work can you paste contents of original file to: http://pastebin.com/ i will check it on my own + what ps version you use? my presta is 1.5.4.1 productsale.php http://pastebin.com/5QD3GGBP Link to comment Share on other sites More sharing options...
ps3z Posted October 2, 2013 Author Share Posted October 2, 2013 i replaced that file which i extracted from default 1.5.4.1 result is same. Link to comment Share on other sites More sharing options...
ps3z Posted October 3, 2013 Author Share Posted October 3, 2013 hi vekia what is the situation now? Link to comment Share on other sites More sharing options...
vekia Posted October 3, 2013 Share Posted October 3, 2013 yes i checked your file, it work on my demo store very well the problem is somewhere else, i suppose that in query to database or in database :| Link to comment Share on other sites More sharing options...
ps3z Posted October 3, 2013 Author Share Posted October 3, 2013 (edited) yes i checked your file, it work on my demo store very well the problem is somewhere else, i suppose that in query to database or in database :| uhhh so how i can solve it.. ?? i wanna fix it by charge Edited October 3, 2013 by ps3z (see edit history) Link to comment Share on other sites More sharing options...
ps3z Posted October 3, 2013 Author Share Posted October 3, 2013 who can help me for this ? Link to comment Share on other sites More sharing options...
Recommended Posts