Jump to content

How to select one attribute combinations in a product page?


Recommended Posts



am new to prestashop, you can use the select size to show related attributes like the image?
To view all the attributes I used:


{foreach from=$combinations key=idCombination item=combination}
    {assign var=attributes value=','|explode:$combination.list}
        {foreach from=$groups key=id_attribute_group item=group}
            {foreach from=$group.attributes key=id_attribute item=group_attribute}
                {foreach from=$attributes item=attribute name=attribute}
                    {if $id_attribute == $attribute|substr:1:-1}
                    $group_attribute} - {* if !$smarty.foreach.attribute.last}, {/if *}





Share this post

Link to post
Share on other sites

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

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More