Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="" method="post">
- <input type="hidden" name="product_id" value="<{$product->getProductId()}>"/>
- <input type="hidden" name="redirect" value="<{$product->getMetaValue('redirect')|escape}>"/>
- <{section name="j" loop=$attr}>
- <{if $attr[j]->getIsVariant()}>
- <div class="line">
- <label for="a<{$attr[j]->getAttributeId()}>"><strong><{$attr[j]->getName()|escape}>:</strong></label>
- <{if $attr[j]->getDataType() == "valuelist"}>
- <{assign var="values" value=$attr[j]->getValues()}>
- <select name="attributes[<{$attr[j]->getAttributeId()}>]" id="a<{$attr[j]->getAttributeId()}>" class="attribute">
- <{* <option value=""> - ingen -</option> *}>
- <{section name="k" loop=$values}>
- <{assign var="attribute_price" value=$product->getAttributePrice($values[k]->getAttributeValueId())}>
- <{if $product->getGtin($values[k]->getAttributeValueId(),$attr[j]->getAttributeId())}>
- <option value="<{$values[k]->getAttributeValueId()}>">
- <{$values[k]->getVal()|escape}>
- <{if $attribute_price}>
- [<{$attribute_price|number_format:2:",":"."}> <{$webshop->getCurrency()}>]
- <{/if}>
- (<{$product->getInStock($attr[j]->getAttributeId(), $values[k]->getAttributeValueId())}> på lager)
- </option>
- <{/if}>
- <{/section}>
- </select>
- <{/if}>
- </div>
- <{/if}>
- <{/section}>
- <input type="text" name="amount" value="1"/>
- <input type="submit" value="Læg i kurven" class="add_to_basket"/>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement