Jump to content

[SOLVED] Is there the way to show ID of feature value?


Recommended Posts

If there is no way, I'll add another features type for identify the icon type.
 

But if there is the way to show the feature's value in text and show the specific id(or something) at the same time, it's more simple...

<span class="icon_featuresvalue_id">{$feature.value|escape:'html':'UTF-8'}</span>
Link to comment
Share on other sites

Thank you again PSfever.com  and vekia (It is also good idea to show icons)

I tested like this

{if isset($features) && $features}
 feature's value :{$feature.value|escape:'html':'UTF-8'} 
 value's id : {$feature.id_feature_value|escape:'html':'UTF-8'} 
{/if}

It shows "feature's value" only,  "value's id" is not shown...
Is there something wrong?

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

Thank you again PSfever.com  and vekia (It is also good idea to show icons)

 

I tested like this

{if isset($features) && $features}
 feature's value :{$feature.value|escape:'html':'UTF-8'} 
 value's id : {$feature.id_feature_value|escape:'html':'UTF-8'} 
{/if}

It shows "feature's value" only,  "value's id" is not shown...

Is there something wrong?

That's odd, what version of PS are you using?

  • Like 1
Link to comment
Share on other sites

i checked it in prestashop 1.6

at the moment there are 3 variables:

 

name, value, id_feature

 

unfortunately, id of feature value doesnt exist.

 

you can check name variable

 

for example:

{if $feature.id_feature ==5 && $feature.value=="valueName"}
do something
{/if}

at the moment (without touching controllers) this is one possible way to achieve it.

  • Like 4
Link to comment
Share on other sites

Thank you again and again PSfever.com  and vekia!

I use version 1.6.0.6.
OK, I understand that there is no way to show
 id of feature value in 1.6...

The way which vekia says is much more useful than add another feature type for only show the icon.

Thank you a lot!
 

Link to comment
Share on other sites

×
×
  • Create New...