dansmiddy Posted May 28, 2017 Share Posted May 28, 2017 A little help please, On the product page, I am trying to show text only if it has a selected attribute. My current Attributes ID 1 - Contract Values ID 48 - 12 Months ID 49 - 18 Months ID 25 - 24 Months ID 50 - 36 Months I've seen on the forum this code <span class="price" style="display: inline;">{if $product.id_product_attribute}{l s='from'}{/if} {convertPrice price=$product.price}</span> But what i want is something along the lines if product attribute is equal to ID 1 (Contract) then display text such and such. Any help? Kind Regards Link to comment Share on other sites More sharing options...
dansmiddy Posted May 31, 2017 Author Share Posted May 31, 2017 (edited) I found the code I want just for other people. {if $category->id == 14 } <div style="font-size:medium" >{l s='Monthly'}</div> {else} {/if} This works on V1.6.1.12 just need to adapt my products to suit this code Edited May 31, 2017 by dansmiddy (see edit history) 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