Jump to content

Prestashop sometimes returns bad price in products list view


Recommended Posts

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 by MagicFire (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...