denverkurt

Smarty code

Jan 20th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 0.26 KB | None | 0 0
  1. {if $product->variants|count > 0}
  2. <form class="variants" action="/cart">
  3. <select name="variant">
  4. {foreach $product->variants as $v}
  5. <option value="{$v->id}" {if $product->variant->id==$v->id}selected="selected"{/if}>{$v->name}</option>
  6. {/foreach}
  7. </select>
Advertisement
Add Comment
Please, Sign In to add comment