Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if $product->variants|count > 0}
- <form class="variants" action="/cart">
- <select name="variant">
- {foreach $product->variants as $v}
- <option value="{$v->id}" {if $product->variant->id==$v->id}selected="selected"{/if}>{$v->name}</option>
- {/foreach}
- </select>
Advertisement
Add Comment
Please, Sign In to add comment