MagicFire Posted April 28, 2013 Share Posted April 28, 2013 (edited) Hi, I have a problem with showing prices in the list view. This code {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} sometimes returns 0 as price, which is nonsense, because the price is set. And the word sometimes is the key, because this happens in case about 10% of all products. Furthermore, in the detail page, where is used this function {if !$priceDisplay}{convertPrice price=$product->getPrice(true,$smarty.const.NULL, 0,$smarty.const.NULL,false,true)}{/if} it shows the correct one. But this function is unaccessible from the list view. Which controller is passing the data to the list view template (product-list.tpl) ? Or else, what can interfere with the price, so the result will be 0 ? I guess that some variables, that modify the price, some of them probably would be 0, but I couldn't find a list of variables, that can interfere with the price. Thanks a lot for any advice or answer Edited April 28, 2013 by MagicFire (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts