Jump to content

Show SELECTED product variation name on product page


Recommended Posts

Hello,

 

is there some simple way to show the selected product variation name (e.g. color) on product page (product.tpl)?

Is there some variable I can display?

I´m using Prestashop 1.6.0.9 and Default-bootstrap theme.

 

Best regards

Thomas

Link to comment
Share on other sites

  • 3 months later...

Where abouts are you looking to add this ?

If its here

post-535854-0-50552400-1441051591_thumb.jpg

 

Then you should find this is themes/YOUR_THEME/product.tpl around lines 360-365

</li>
{if ($group.default == $id_attribute)}
{$default_colorpicker = $id_attribute}
{/if}
{/foreach} 

And add {$colors.$id_attribute.name}<br><br> before the {/foreach} to look like this

</li>
{if ($group.default == $id_attribute)}
{$default_colorpicker = $id_attribute}
{/if}
{$colors.$id_attribute.name}<br><br>
{/foreach}

 

 

which should look like this

post-535854-0-59853000-1441051819_thumb.jpg

 

Havent fully tested this but you get the idea

 

Link to comment
Share on other sites

  • 2 weeks later...

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