Luis Alcalá Posted September 26, 2011 Share Posted September 26, 2011 Look this image from our friend: Ok, in product.tpl I need to set an specific code/design for some attributes (size & Shoes Numbers) and i don´t know how to achieve this. Last thing i was trying was this: {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} {if $group.id = 3} Specific code/designhere {/if} {if $group.id = 4} Another specific code/designhere {/if} {/if} {/foreach} Any help? Link to comment Share on other sites More sharing options...
Luis Alcalá Posted September 27, 2011 Author Share Posted September 27, 2011 Nobody has needed to implement this? Link to comment Share on other sites More sharing options...
oxyweb Posted September 27, 2011 Share Posted September 27, 2011 I haven't but it's a good idea. So I'm very much a newbie to this BUT I think the starting point is modify the existing Smarty and CSS code. I'm sure you can modify the existing dropdown list's CSS code into a non-bullet horizontal list that's pretty much what 2Y, 3Y, 4Y, etc are. Once you've worked that out, you can work on deciding whether to show out of stock items or not. It might just be a case of the out of stock items being availinbility\display being shown from the Prestashop BackOffice or whether it is being decided by the Smarty template. I have my own battles going on the moment but I hope I can look into this soon! Link to comment Share on other sites More sharing options...
oxyweb Posted September 27, 2011 Share Posted September 27, 2011 Wait. I think I've completely misunderstood your requirements! 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