Th0r_cz Posted April 13, 2016 Share Posted April 13, 2016 Ahoj, neřešil někdo výpis kombinací u detailu produktu v product-list ? Našel jsem toto: ale funguje mi to pouze v product.tpl a nikoliv v product-list.tpl, nebude někde potřeba definovat fce nějaká ? Popřípadě kde, děkuji ! {if isset($groups)}{strip} {l s='Dostupné velikosti:'} {foreach from=$combinations key=idCombination item=combination} {if $combination.quantity > 0} {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} {/if} {/foreach} {/foreach} {/foreach} {/if} {/foreach}{/strip}{/if} Link to comment Share on other sites More sharing options...
Hans_k Posted April 14, 2016 Share Posted April 14, 2016 Ahoj Jestli si dobře pamatuji tak informace o všech kombinacích se do product-listu nepřenáší. Hlavně tedy již máš rozdělána data z do jednotlivých proměnných, do listu se předává celý product. 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