Jump to content

[Solved] Feature field in product page


Recommended Posts

Hi,

I would like to put the feature field inside the product page just below the quantity field and not at the bottom of the page.

I do that with manufacture name (and short description) putting this code inside product.tpl:

 

<label for="manufacturer_name">{l s='Produttore:'} </label><font color=blue><b>
<span class="editable">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}</span></font></b>

 

I cannot find the way to do that whith the feature field.

I try to use $product->feature, $product->features, $product->feature_value, $product->feature_name but with no lucky...

 

Any idea?!

 

Thanks and sorry for my english.

Edited by Mura82 (see edit history)
Link to comment
Share on other sites

Hi,

 

On product page the following should be written in the tab:

<label for="manufacturer_name">{l s='Produttore:'} </label><font color=blue><b>

<span class="editable">

 

 

{if $features}

<!-- product's features -->

<ul id="idTab2" class="bullet">

{foreach from=$features item=feature}

<li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span> {$feature.value|escape:'htmlall':'UTF-8'}</li>

{/foreach}

</ul>

{/if}

 

</span></font></b>

 

Please, make sure to delete id="idTab2"

 

Best regards

  • Like 1
Link to comment
Share on other sites

It works!!

 

{if $features}
{foreach from=$features item=feature}
<label for="feature_value"><span class="editable">{$feature.name|escape:'htmlall':'UTF-8'}</label></span><b>:
<font color=blue>{$feature.value|escape:'htmlall':'UTF-8'}</b></font>
{/foreach}
{/if}

 

I uses this way to maintain the same pattern of " manufacter name: value"

Maybe not much elegant, but looks fantastic in my case.

 

 

... I love you!

Link to comment
Share on other sites

×
×
  • Create New...