tabutnas Posted December 11, 2013 Share Posted December 11, 2013 Hello, i change this lane $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10), 'date_add', 'DESC'); for $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10), 'date_upd', 'DESC'); and now i have this following error; Parse error: syntax error, unexpected T_IF in /home/laxarxav/public_html/la-parada/modules/homefeatured/homefeatured.php on line 1 But my problem now is have the same error if i change to the original code $products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10), 'date_add', 'DESC'); I do this common solutions; clean all cache form: prestashop/cache disallow cache form backoffice and Forcing compiler installed Copy-paste saved module after edit Details; PrestaShop™ 1.5.3.1 Module Homefeatured Thanks in advance !! Link to comment Share on other sites More sharing options...
Gregory Roussac Posted December 13, 2013 Share Posted December 13, 2013 (edited) Hi, This is not a bug. Your editor probably registers BOM bytes at the begining of the file. Please use an UTF8 editor that can manage UTF8 without BOM. Please do nto duplicate posts on the forum. http://www.prestashop.com/forums/topic/295284-bug-module-homefeatured/ Regards Edited December 13, 2013 by Gregory Roussac (see edit history) 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