PanMS Posted November 12, 2012 Share Posted November 12, 2012 (edited) Hello. I need to add a counter of sold items on the product page. I have already found this two methods for achieving this goal, but both of them are not compatibly with 1.5 version: 1) http://alvinjiang.bl...splay-sold.html This method suggests to find two small lines and add some code before them: include_once(dirname(__FILE__).'/init.php'); in product.php and <p class="price"> in product.tpl But there is no such lines in 1.5 version. 2) http://www.prestasho...counter-module/ this modul also needs some coding and requests for the lines: <!-- Out of stock hook --> <p id="oosHook"{if $product->quantity > 0} style="display:none;"{/if}> {$HOOK_PRODUCT_OOS} </p> and 'HOOK_EXTRA_RIGHT' => Module::hookExec('extraRight'), 'HOOK_PRODUCT_OOS' => Hook::productOutOfStock($product), 'HOOK_PRODUCT_FOOTER' => Hook::productFooter($product, $category), in product.tpl And there is no such lines also. I have even thought about modifying the "products in stock" counter on the product page by adding a simple arithmetics (like if there was 1000 items in stock in the beginning then the number of sold items will bw 1000-"items in stock") but this was also unsuccessful because I did not manage to find the parameters to change in the product.php (and how to code this too). Can you please suggest me something. Thank you Edited April 15, 2013 by PanMS (see edit history) Link to comment Share on other sites More sharing options...
shgavman Posted January 12, 2013 Share Posted January 12, 2013 Did you get this to work? I'd like to do something similar. Link to comment Share on other sites More sharing options...
PanMS Posted January 29, 2013 Author Share Posted January 29, 2013 No I was not able. So the question is open. Link to comment Share on other sites More sharing options...
PanMS Posted April 12, 2013 Author Share Posted April 12, 2013 Please help us to solve this problem! Anybody! Link to comment Share on other sites More sharing options...
Paulito Posted April 12, 2013 Share Posted April 12, 2013 Good morning, If you are looking for a module that shows how many products have been sold on each product page then click HERE, it is good for PS 1.2 to PS 1.5 and it is free. Hope this helps Paul Link to comment Share on other sites More sharing options...
PanMS Posted April 15, 2013 Author Share Posted April 15, 2013 (edited) Dear Paul, Thank you very much! This module really works with Presta 1.5. The problem is solved. Edited April 15, 2013 by PanMS (see edit history) Link to comment Share on other sites More sharing options...
Paulito Posted April 15, 2013 Share Posted April 15, 2013 Very happy that your happy Paul Link to comment Share on other sites More sharing options...
azizimranz Posted June 10, 2014 Share Posted June 10, 2014 Hi All, How can I implement it in PS 1.6? Link to comment Share on other sites More sharing options...
Paulito Posted June 11, 2014 Share Posted June 11, 2014 Hello Have a look at this http://screencast.com/t/OnuXnWzXzE4u You just need to alter the css a little Paul Link to comment Share on other sites More sharing options...
vekia Posted June 11, 2014 Share Posted June 11, 2014 i created simple solution here: http://www.prestashop.com/forums/topic/336672-adding-sold-items-counter-on-product-details-page-ps16/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts