Set a URL with link for features of a product

The idea is to put a URL with link in the features of a product. The first step is to add a new feature in the product with the name URL, and set the value with your link like http://www.adidas.com


Open the product.tpl of your template and find this line:

 

{if isset($features)&& $features}<!--Data sheet --><section class="page-product-box"><h3 class="page-product-heading">{l s='Data sheet'}</h3><table class="table-data-sheet">{foreachfrom=$features item=feature}<tr class="{cycle values="odd,even"}">{if isset($feature.value)}<td>{$feature.name|escape:'html':'UTF-8'}</td><td>{$feature.value|escape:'html':'UTF-8'}</td>{/if}</tr>{/foreach}</table></section><!--endData sheet -->{/if}

and change to

 

{if isset($features)&& $features}<!--Data sheet --><section class="page-product-box"><h3 class="page-product-heading">{l s='Data sheet'}</h3><table class="table-data-sheet">{foreachfrom=$features item=feature}<tr class="{cycle values="odd,even"}">{if isset($feature.value)}{if $feature.name eq "URL"}<td>{$feature.name|escape:'html':'UTF-8'}</td><td><a href="{$feature.value|escape:'html':'UTF-8'}" target="_blank">{$feature.value|escape:'html':'UTF-8'}</a></td>{else}<td>{$feature.name|escape:'html':'UTF-8'}</td><td>{$feature.value|escape:'html':'UTF-8'}</td>{/if}{/if}</tr>{/foreach}</table></section><!--endData sheet -->{/if}

WIth this, you can put external url to your products, and link to manufacturer or official product site.


Cart 0 Shopping Cart

No products

Free shipping! Shipping
$0.00 Total

Check out