Specific price access in prestashop 1.6
I am on prestashop 1.6
When I use this code in the product.tpl file there is no problem and everything works correctly:
{if $product->specificPrice.from_quantity==0} <img src="http://url/finish.png" >{/if}
But the same code in the file, homefeatured.tpl is getting the wrong answer I even changed the code to the following but I still haven't solved the problem
{if $product.specificPrice.from_quantity==0} <img src="http://url/finish.png" >{/if}
or
{if $product.specific_price.from_quantity==0} <img src="http://url/finish.png" >{/if}
Please help me experts.
+3
behnam
source
to share
1 answer
You should look at what the asignet for homefeatured.tpl really is. This is the array of data you get from.
Category->getProducts();
When you check what is returned, you can see that it returns an array with key [specific_prices] that contains the key [from_quantity] .
0
Belamors
source
to share