tozi Posted January 24, 2014 Share Posted January 24, 2014 Hi all, how can i insert "product.new" in product.tpl? {if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if} If I put this code in product.tpl such site is down. Link to comment Share on other sites More sharing options...
vekia Posted January 24, 2014 Share Posted January 24, 2014 it's because $product is an object, not array, so you have to use $procuct->param instead of $product.param Link to comment Share on other sites More sharing options...
tozi Posted January 25, 2014 Author Share Posted January 25, 2014 Thanks a lot. 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