Jump to content

New functionality in attributes


Recommended Posts

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 product

I 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.jpg
I 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 link
Attributes
{/foreach}

I will be glad for your help

Thanks in advance
Tom :wow:
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...