Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- <{$attr[j]->getName()|escape}>
- <{if $attributeColor == 1}>
- <{section name="k" loop=$attributeValues}>
- <{assign var="selectedAttribute" value='attribute-'|cat:$attr[j]->getAttributeId()|cat:'-'|cat:$attributeValues[k]->getAttributeValueId()}>
- <div class="attribute-color">
- <div class="titletip"><{$attributeValues[k]->getVal()}></div>
- <{assign var="attribute_price" value=$product->getAttributePrice($attributeValues[k]->getAttributeValueId())}>
- <{if !$product->getAttributePrice($attributeValues[k]->getAttributeValueId())}>
- <{assign var="attribute_price" value=$product->getRealPrice(null, null, true)}>
- <{/if}>
- <{assign var="aColor" value=","|explode:$attributeValues[k]->getVal()}>
- <{if $settings.price.only_variant_in_stock == "yes"}>
- <{if $product->getInStock($attr[j]->getAttributeId(), $attributeValues[k]->getAttributeValueId()) > 0}>
- <input type="radio" name="attributes[<{$attr[j]->getAttributeId()}>]" id="attribute-<{$attr[j]->getAttributeId()}>-<{$attributeValues[k]->getAttributeValueId()}>" value="<{$attributeValues[k]->getAttributeValueId()}>" data-price="<{$attribute_price|number_format:2:",":"."}>" data-rel="<{$aColor[0]|regex_replace:"/[^a-z0-9]/i":""|lower}>" data-tag="<{$attributeValues[k]->getTag()}>" required <{if $get.$selectedAttribute}>checked<{/if}>>
- <label for="attribute-<{$attr[j]->getAttributeId()}>-<{$attributeValues[k]->getAttributeValueId()}>" class="attribute-color-button" style="background-color: <{$attributeValues[k]->getTag()}>;"></label>
- <{/if}>
- <{else}>
- <input type="radio" name="attributes[<{$attr[j]->getAttributeId()}>]" id="attribute-<{$attr[j]->getAttributeId()}>-<{$attributeValues[k]->getAttributeValueId()}>" value="<{$attributeValues[k]->getAttributeValueId()}>" data-price="<{$attribute_price|number_format:2:",":"."}>" data-rel="<{$aColor[0]|regex_replace:"/[^a-z0-9]/i":""|lower}>" data-tag="<{$attributeValues[k]->getTag()}>" required <{if $get.$selectedAttribute}>checked<{/if}>>
- <label for="attribute-<{$attr[j]->getAttributeId()}>-<{$attributeValues[k]->getAttributeValueId()}>" class="attribute-color-button" style="background-color: <{$attributeValues[k]->getTag()}>;"></label>
- <{/if}>
- </div>
- <{/section}>
- <{else}>
- <select name="attributes[<{$attr[j]->getAttributeId()}>]" class="attribute" required>
- <option value="" disabled selected>Vælg venligst</option>
- <{section name="k" loop=$attributeValues}>
- <{assign var="attribute_price" value=$product->getAttributePrice($attributeValues[k]->getAttributeValueId())}>
- <{if !$product->getAttributePrice($attributeValues[k]->getAttributeValueId())}>
- <{assign var="attribute_price" value=$product->getRealPrice(null, null, true)}>
- <{/if}>
- <{assign var="aColor" value=","|explode:$attributeValues[k]->getVal()}>
- <{if $settings.price.only_variant_in_stock == "yes"}>
- <{if $product->getInStock($attr[j]->getAttributeId(), $attributeValues[k]->getAttributeValueId()) > 0}>
- <option value="<{$attributeValues[k]->getAttributeValueId()}>" data-price="<{$attribute_price|number_format:2:",":"."}>" data-rel="<{$aColor[0]|escape}>" data-tag="<{$attributeValues[k]->getTag()}>">
- <{$attributeValues[k]->getVal()|escape}>
- </option>
- <{/if}>
- <{else}>
- <option value="<{$attributeValues[k]->getAttributeValueId()}>" data-price="<{$attribute_price|number_format:2:",":"."}>" data-rel="<{$aColor[0]|escape}>" data-tag="<{$attributeValues[k]->getTag()}>">
- <{$attributeValues[k]->getVal()|escape}>
- </option>
- <{/if}>
- <{/section}>
- </select>
- <{/if}>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement