anson.c Posted May 6, 2010 Share Posted May 6, 2010 Hi all,I have 3 problems with my viewed products module, hope someone can help me to solve them:1. It does not show prices correctly2. Add to cart does not work3. It shows the last picture instead of the default picture of the productThanks in advance!www.ecyclog.com Link to comment Share on other sites More sharing options...
rocky Posted May 6, 2010 Share Posted May 6, 2010 1 and 2. The viewed products block doesn't have a price or add to cart button. Did you try to modify it?3. This bug has been reported and fixed in Prestashop v1.3 RC4. Link to comment Share on other sites More sharing options...
anson.c Posted May 7, 2010 Author Share Posted May 7, 2010 Yes I did try to mod it!Is there any way to fix the number 3 problem without upgrading the whole thing to RC4 (mine is RC3)?Thanks! Link to comment Share on other sites More sharing options...
rocky Posted May 7, 2010 Share Posted May 7, 2010 Changes line 84 in modules/blockviewed/blockviewed.php in Prestashop v1.3 RC3 from: AND cl.id_lang = '.intval($params['cookie']->id_lang) to: AND cl.id_lang = '.intval($params['cookie']->id_lang).' AND i.cover = 1' To add the price, you'll need to modify the SQL query on line 76 from: SELECT i.id_image, p.id_product, il.legend, p.active, pl.name, pl.description_short, pl.link_rewrite, cl.link_rewrite AS category_rewrite to: SELECT i.id_image, p.id_product, p.price, il.legend, p.active, pl.name, pl.description_short, pl.link_rewrite, cl.link_rewrite AS category_rewrite then add the following after line 107: $obj->price = $productsImagesArray[$productViewed]['price']; Link to comment Share on other sites More sharing options...
anson.c Posted May 8, 2010 Author Share Posted May 8, 2010 Thanks rocky!But I got an error message after the edit: "Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web297/b2972/ipg.ecyclogcom/ecyclog/modules/blockviewed/blockviewed.php on line 90"Any idea?Thanks again! Link to comment Share on other sites More sharing options...
rocky Posted May 8, 2010 Share Posted May 8, 2010 I suggest that you download PrestaShop v1.3 RC4 and copy the blockviewed module from there. Link to comment Share on other sites More sharing options...
anson.c Posted May 13, 2010 Author Share Posted May 13, 2010 Ya but I want to keep the price display and add to cart..... Link to comment Share on other sites More sharing options...
rocky Posted May 13, 2010 Share Posted May 13, 2010 Then you'll need to compare the original viewed products block from v1.2.5 to your modified one, then try to make the same changes to the v1.3 one. Link to comment Share on other sites More sharing options...
anson.c Posted May 13, 2010 Author Share Posted May 13, 2010 Will do! THanks for the tip rocky! Link to comment Share on other sites More sharing options...
nicola Posted July 11, 2010 Share Posted July 11, 2010 Hi,I tryed to find in the forum some information about a question on viewed product, but nothing!.I would like understand if is possible after logout canc all viewed products from relative block.ThanksNicola Link to comment Share on other sites More sharing options...
rocky Posted July 11, 2010 Share Posted July 11, 2010 Try adding the following before the $this->write(); on line 199 of the mylogout() function in classes/Cookie.php: unset($this->_content['viewed']); 1 Link to comment Share on other sites More sharing options...
nicola Posted July 11, 2010 Share Posted July 11, 2010 Thanks rocky.it works fine!!!! Nicola Link to comment Share on other sites More sharing options...
fim8 Posted November 20, 2011 Share Posted November 20, 2011 Changes line 84 in modules/blockviewed/blockviewed.php in Prestashop v1.3 RC3 from: AND cl.id_lang = '.intval($params['cookie']->id_lang) to: AND cl.id_lang = '.intval($params['cookie']->id_lang).' AND i.cover = 1' To add the price, you'll need to modify the SQL query on line 76 from: SELECT i.id_image, p.id_product, il.legend, p.active, pl.name, pl.description_short, pl.link_rewrite, cl.link_rewrite AS category_rewrite to: SELECT i.id_image, p.id_product, p.price, il.legend, p.active, pl.name, pl.description_short, pl.link_rewrite, cl.link_rewrite AS category_rewrite then add the following after line 107: $obj->price = $productsImagesArray[$productViewed]['price']; thank you. Link to comment Share on other sites More sharing options...
sballi Posted December 28, 2011 Share Posted December 28, 2011 hi i want to show old price and new price in viewed product block. please help Link to comment Share on other sites More sharing options...
snlbyr Posted January 2, 2012 Share Posted January 2, 2012 hello...i have a little problem i cant change color... Link to comment Share on other sites More sharing options...
Rneo Posted February 8, 2012 Share Posted February 8, 2012 Price display exclude tax Link to comment Share on other sites More sharing options...
ivankaa Posted July 14, 2012 Share Posted July 14, 2012 Hello, does anybody knows how to display price with tax in blockviewed module? Still don´t find a solution for his. Thanks. 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