alfix Posted December 9, 2009 Share Posted December 9, 2009 Hi,I have the option of not showing taxes in my shop (www.mawamba.es, Spanish sorry...) and when it shows accesories the prices are tax included.The special offers block in the main window (on the right) also shows the old price with tax included, although you can read the message "tax not included below the price".Anyone can guess what's happening?Thank you very much, my partners! Link to comment Share on other sites More sharing options...
rogrod Posted December 18, 2009 Share Posted December 18, 2009 Hello, I had same problem as you with accessories prices.I have solved replacing the next lines in product.tpl:Old line:{displayWtPrice p=$accessory.price}Replaced with:{if $priceDisplay == 1}{displayWtPrice p=$accessory.price_tax_exc}{else}{displayWtPrice p=$accessory.price}{/if}I hope this can help you.------En español:Tuve el mismo problema que tú con el tema de los impuestos en los accesorios. Lo he podido resolver modificando el archivo product.tpl del tema que estoy usando, reemplazando las líneas que he mencionado antes.Espero que te sirva de algo.Lo otro que comentas, de las ofertas especiales.. yo no las uso, pero en este mismo fichero "product.tpl" he visto las líneas que ponen el precio en pantalla. Seguro que si haces estos mismos cambios en esa zona te funciona.Saludos. Link to comment Share on other sites More sharing options...
alfix Posted December 25, 2009 Author Share Posted December 25, 2009 Excellent! It works fine!Only one thing: take care the " " are theses ones and not those italic in your code.I've also followed your instructions about the special offers bug and it was solved too!You only have to change line 218:{convertPrice price=$product->getPriceWithoutReduct(true)}for this one{convertPrice price=$product->getPrice(false,"","","","",false)}THANK YOU!!! Link to comment Share on other sites More sharing options...
zujar Posted December 28, 2009 Share Posted December 28, 2009 @alfix, after making the changes you propose, the article shows me the following error:Catchable fatal error: Object of class Product could not be converted to string in /homepages/25/d261805770/htdocs/tools/smarty/compile/%�^D0E^D0E37A37%%product.tpl.php on line 361EDIT: SOLVED, the problem was the "".but in special offers block still can´t set prices without TAX, any help?Thanks. Link to comment Share on other sites More sharing options...
stig Posted February 1, 2010 Share Posted February 1, 2010 @rogrod : I had the same problem with tax not showing in Accessories. Your solution took care of the problem (using the changes @alfix)Thanks! Link to comment Share on other sites More sharing options...
ds_lite Posted May 12, 2011 Share Posted May 12, 2011 Same error: prestashop Catchable fatal error: Object of class Product could not be converted to stringOn http://www.bottegastregata.it/product.php?id_product=11Why this? :Sand why on other products... i can't see anything: http://www.bottegastregata.it/product.php?id_product=33:S help me Link to comment Share on other sites More sharing options...
Recommended Posts