Thomas0891 Posted April 27, 2015 Share Posted April 27, 2015 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 More sharing options...
Guest Posted August 26, 2015 Share Posted August 26, 2015 Hi Thomas, I am looking to do the same - did you have any luck with this? Link to comment Share on other sites More sharing options...
mickeyboy1 Posted August 31, 2015 Share Posted August 31, 2015 Where abouts are you looking to add this ? If its here 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 Havent fully tested this but you get the idea Link to comment Share on other sites More sharing options...
Thomas0891 Posted September 1, 2015 Author Share Posted September 1, 2015 Great! Thank You! That was exactly what I'm looking for... And is there also a way to show the current selected color (like in the screenshot) Thomas Link to comment Share on other sites More sharing options...
mickeyboy1 Posted September 1, 2015 Share Posted September 1, 2015 This may help you Thomas https://www.prestashop.com/forums/topic/280526-solved-add-color-name-from-colorpickerclick-selection-to-product-page/?do=findComment&comment=2119562 Link to comment Share on other sites More sharing options...
Thomas0891 Posted September 12, 2015 Author Share Posted September 12, 2015 Fantastic! Thank you mickeyboy1!!! You saved me tons of hours! ;-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now