PrestaShark Posted October 3, 2016 Share Posted October 3, 2016 Hi. Im looking for a solution like this in product tpl file Check if product attrubute id == 10 {if $product->id_product_attribute == 10}Do something{else}Do else{/if} Cant figure this how to make it work. Thanks! Link to comment Share on other sites More sharing options...
Krasnyinterier.sk Posted May 7, 2017 Share Posted May 7, 2017 Hi, Try to use: {$product->id_product_attribute|intval} Or use id attribute default. Hi ndiaga, can you be more concrete? I`m trying to do something like this... {if $product.id_feature_value == 10} {l s='from'} {/if} to show "from" only for a product with id_feature_value=10 Can you help? 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