Jump to content

Separate the variants of product-variants.tpl

Recommended Posts

I'm trying to separate the variants of the product-variants.tpl I need this split (and I have to add them on product-special.tpl:


colors: all the colors


colors 2: all the second colors


option 1: A B


option 2: C D

I'm calling the group by ID, but I still see the others groups too.

{elseif $group.group_type == 'color'}
        <ul id="group_1">
          {foreach from=$group.attributes key=id_attribute item=group_attribute}
            <li class="float-xs-left input-container">
                <input class="input-color" type="radio" data-product-attribute="{$id_attribute_group}" name="group[1]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}>
                  {if $group_attribute.html_color_code}class="color" style="background-color: {$group_attribute.html_color_code}" {/if}
                  {if $group_attribute.texture}class="color texture" style="background-image: url({$group_attribute.texture})" {/if}
                ><span class="sr-only">{$group_attribute.name}</span></span>


Share this post

Link to post
Share on other sites

Hello, did you find amy solution?

I'm facing the same problem, i want to keep saperate variants (es.color/size/etc) also in homepage non only in detailed product page.

Edited by ottojack (see edit history)

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