leeloo Posted December 14, 2010 Share Posted December 14, 2010 Hi,I want to assign product quantity in newproducts block, to use a condition in the tpl file :{if $product->quantity == 0}How to assign this variable in smarty ? Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted December 14, 2010 Share Posted December 14, 2010 The product quantity is already set. In modules\blocknewproducts\blocknewproducts.tpl there are 2 loops for showing products info:in: {foreach from=$new_products item='product' name='newProducts'} use: {$product.quantity} in: {foreach from=$new_products item=newproduct name=myLoop} use: {$newproduct.quantity} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now