Witam,
Domyślnie prestashop działa na tej zasadzie że generuje kombinacje produktu w trybie każdy z każdym.
Jednak jeżeli generujemy kombinacje oddzielnie to nie są one od siebie zależne, więc tutaj pojawia się moje pytanie jak zmodyfikować kod przedstawiony niżej, aby kombinacje wyświetlały się niezależnie od siebie?
<http://december.com/html/4/element/div.html class="product-variants"> {foreach from=$groups key=id_attribute_group item=group} <http://december.com/html/4/element/div.html class="clearfix product-variants-item"> <http://december.com/html/4/element/span.html class="control-label">{$group.name}</http://december.com/html/4/element/span.html> {if $group.group_type == 'select'} <http://december.com/html/4/element/select.html id="group_{$id_attribute_group}" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <http://december.com/html/4/element/option.html value="{$id_attribute}" title="{$group_attribute.name}"{if $group_attribute.selected} selected="selected"{/if}>{$group_attribute.name}</http://december.com/html/4/element/option.html> {/foreach} </http://december.com/html/4/element/select.html> {elseif $group.group_type == 'color'} <http://december.com/html/4/element/ul.html id="group_{$id_attribute_group}" class="aaa"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <http://december.com/html/4/element/li.html class="pull-xs-left input-container"> <http://december.com/html/4/element/input.html class="input-color" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}> <http://december.com/html/4/element/span.html {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} ><http://december.com/html/4/element/span.html class="sr-only">{$group_attribute.name}</http://december.com/html/4/element/span.html></http://december.com/html/4/element/span.html> </http://december.com/html/4/element/li.html> {/foreach} </http://december.com/html/4/element/ul.html> {elseif $group.group_type == 'radio'} <http://december.com/html/4/element/ul.html id="group_{$id_attribute_group}"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <http://december.com/html/4/element/li.html class="input-container pull-xs-left btn-{$id_attribute}"> <http://december.com/html/4/element/input.html class="input-radio" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}> <http://december.com/html/4/element/span.html class="radio-label">{$group_attribute.name}</http://december.com/html/4/element/span.html> </http://december.com/html/4/element/li.html> {/foreach} </http://december.com/html/4/element/ul.html> {/if} </http://december.com/html/4/element/div.html> {/foreach} </http://december.com/html/4/element/div.html>
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)