r2get Posted February 13, 2013 Share Posted February 13, 2013 (edited) Hello , Im currently facing a problem wich i can't fix maybe you can help me out. Im showing a dropdown with all the sizes. Now I want to show in the dropdown when a product is out of stock (out of stock) next to the size. i have found a sniped wich shows wich products are out of stock: {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} It works but I rather want to show it in the dropdown. How can I get this? Edited February 14, 2013 by r2get (see edit history) Link to comment Share on other sites More sharing options...
keutche Posted February 14, 2013 Share Posted February 14, 2013 Hello, Ain't it better to remove those attributes ? But also, ther eis a module to allow customer to follow out of stock product, thus get an email once the product is availalbe again. Keutche 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