romienas Posted January 15, 2014 Share Posted January 15, 2014 (edited) Hi, have problems with best-sales I don't understand whats wrong Edited January 20, 2014 by romienas (see edit history) Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted January 15, 2014 Share Posted January 15, 2014 Hi, check you sql-query, your "IN" parametr has wrong content becose starting from "," (AND p.`id_product` IN (,8,9,10...) Regards Link to comment Share on other sites More sharing options...
romienas Posted January 15, 2014 Author Share Posted January 15, 2014 Hi, check you sql-query, your "IN" parametr has wrong content becose starting from "," (AND p.`id_product` IN (,8,9,10...) Regards Hi Alexander, thank you for your replay. I'm not good at coding, so please, can you tell me what exactly I should to do? Link to comment Share on other sites More sharing options...
NemoPS Posted January 17, 2014 Share Posted January 17, 2014 THat IN statement is broken, look: IN (,8,9,1 It can't start with a comma, are you using any third party module for this page? 1 Link to comment Share on other sites More sharing options...
romienas Posted January 17, 2014 Author Share Posted January 17, 2014 THat IN statement is broken, look: IN (,8,9,1 It can't start with a comma, are you using any third party module for this page? hi Nemo1, no, I do not use third party module for this page. How I should fix this issue, in which file is that? Link to comment Share on other sites More sharing options...
NemoPS Posted January 17, 2014 Share Posted January 17, 2014 What about advanced stock management? Link to comment Share on other sites More sharing options...
romienas Posted January 17, 2014 Author Share Posted January 17, 2014 What about advanced stock management? I didn't install this module, just allowed. Link to comment Share on other sites More sharing options...
NemoPS Posted January 17, 2014 Share Posted January 17, 2014 Can you try disabling that, and see if it helps? Link to comment Share on other sites More sharing options...
romienas Posted January 17, 2014 Author Share Posted January 17, 2014 Can you try disabling that, and see if it helps? disabled, but nothing Link to comment Share on other sites More sharing options...
NemoPS Posted January 18, 2014 Share Posted January 18, 2014 At this point, try and edit ProductSale::getBestSales FInd this: AND p.`id_product` IN ('.$ids.') ANd change it to AND p.`id_product` IN ('.ltrim($ids,',').') Link to comment Share on other sites More sharing options...
romienas Posted January 20, 2014 Author Share Posted January 20, 2014 Thank you Nemo1 it helped but for other who have same problem, for clarity file is classes/ProductSale.php there is two plases with code: AND p.`id_product` IN ('.$ids.') and in first plase replace that code with: AND p.`id_product` IN ('.ltrim($ids,',').') 1 Link to comment Share on other sites More sharing options...
nag Posted May 22, 2014 Share Posted May 22, 2014 Thank you Nemo1. For French people: le bug concerne la page « Meilleures ventes ». 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