tokuan Posted February 18, 2010 Share Posted February 18, 2010 In product.tpl I need to add the following functionality for attributes :Show a link to a picture for each attributes that is shown for a productI have added an extra field in ps_attribute_group table link_picture which is a varchar reference to a .jpg picture. like http://www.myshop.com/images/image.jpgI have added this field into classes/AttributeGroup.php where needed.How do I catch 1. my link to picture inside foreach loop 2. add public name from attributes in title and heading. Must be in chosen language {foreach from=$groups key=id_attribute_group item=group} {$group.name|escape:'htmlall':'UTF-8'} :{assign var='groupName' value='group_'|cat:$id_attribute_group}{foreach from=$group.attributes key=id_attribute item=group_attribute}{$group_attribute|escape:'htmlall':'UTF-8'}{/foreach} // Here I want to add linkAttributes{/foreach}I will be glad for your helpThanks in advanceTom :wow: 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