Jump to content

How to put icons with the product features on the product page (tab)


Recommended Posts

Hi there! I would like to insert an icon (.gif) before the name of each product feature on the tab on the product page.
In my case it's weight, fitting and fabric.

Does anybody know how I can fix this? I don't think it's possible in the backend, so I have to add it in a code file somewhere, I guess!?

Link to comment
Share on other sites

You are right. There is no way to do this using the Back Office. Here is one way you could do this.

In product.tpl in your theme directory, change:

{foreach from=$features item=feature}
{$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}
{/foreach}



to this:

{foreach from=$features item=feature}
{$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}
{/foreach}



Then put Weight.gif, Fitting.gif, Fabric.gif, etc in the img folder in your theme directory. Note that I haven't tested this code. Let me know if it works.

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...