Created
August 6, 2015 08:58
-
-
Save imakarov/226b94e6f9ca35d30983 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/design/themes/responsive/templates/views/products/components/product_options.tpl b/design/themes/responsive/templates/views/products/components/product_options.tpl | |
index c9ed1e5..4678269 100644 | |
--- a/design/themes/responsive/templates/views/products/components/product_options.tpl | |
+++ b/design/themes/responsive/templates/views/products/components/product_options.tpl | |
@@ -33,7 +33,7 @@ | |
{assign var="selected_variant" value=""} | |
<div class="ty-control-group ty-product-options__item{if !$capture_options_vs_qty} product-list-field{/if} clearfix" id="opt_{$obj_prefix}{$id}_{$po.option_id}"> | |
{if !("SRC"|strpos:$po.option_type !== false && !$po.variants && $po.missing_variants_handling == "H")} | |
- <label id="option_description_{$id}_{$po.option_id}" {if $po.option_type !== "R" && $po.option_type !== "F"}for="option_{$obj_prefix}{$id}_{$po.option_id}"{/if} class="ty-control-group__label ty-product-options__item-label{if $po.required == "Y"} cm-required{/if}{if $po.regexp} cm-regexp{/if}" {if $po.regexp}data-ca-regexp="{$po.regexp}" data-ca-message="{$po.incorrect_message}"{/if}>{$po.option_name}{if $po.description|trim}{include file="common/tooltip.tpl" tooltip=$po.description}{/if}:</label> | |
+ <label id="option_description_{$id}_{$po.option_id}" {if $po.option_type !== "F"}for="option_{$obj_prefix}{$id}_{$po.option_id}"{/if} class="ty-control-group__label ty-product-options__item-label{if $po.required == "Y"} cm-required{/if}{if $po.regexp} cm-regexp{/if}" {if $po.regexp}data-ca-regexp="{$po.regexp}" data-ca-message="{$po.incorrect_message}"{/if}>{$po.option_name}{if $po.description|trim}{include file="common/tooltip.tpl" tooltip=$po.description}{/if}:</label> | |
{if $po.option_type == "S"} {*Selectbox*} | |
{if $po.variants} | |
{if ($po.disabled || $disabled) && !$po.not_required}<input type="hidden" value="{$po.value}" name="{$name}[{$id}][product_options][{$po.option_id}]" id="option_{$obj_prefix}{$id}_{$po.option_id}" />{/if} | |
@@ -55,10 +55,9 @@ | |
{/if} | |
{elseif $po.option_type == "R"} {*Radiobutton*} | |
{if $po.variants} | |
+ <input type="hidden" name="{$name}[{$id}][product_options][{$po.option_id}]" value="{$po.value}" id="option_{$obj_prefix}{$id}_{$po.option_id}" /> | |
<ul id="option_{$obj_prefix}{$id}_{$po.option_id}_group" class="ty-product-options__elem"> | |
{if !$po.disabled && !$disabled} | |
- <li class="hidden"><input type="hidden" name="{$name}[{$id}][product_options][{$po.option_id}]" value="{$po.value}" id="option_{$obj_prefix}{$id}_{$po.option_id}" /></li> | |
- | |
{foreach from=$po.variants item="vr" name="vars"} | |
<li><label id="option_description_{$id}_{$po.option_id}_{$vr.variant_id}" class="ty-product-options__box option-items"><input type="radio" class="radio" name="{$name}[{$id}][product_options][{$po.option_id}]" value="{$vr.variant_id}" {if $po.value == $vr.variant_id }{assign var="selected_variant" value=$vr.variant_id}checked="checked"{/if} onclick="{if $product.options_update}fn_change_options('{$obj_prefix}{$id}', '{$id}', '{$po.option_id}');{else} fn_change_variant_image('{$obj_prefix}{$id}', '{$po.option_id}', '{$vr.variant_id}');{/if}" {if $product.exclude_from_calculate && !$product.aoc || $po.disabled || $disabled}disabled="disabled"{/if} /> | |
{$vr.variant_name} {if $show_modifiers}{hook name="products:options_modifiers"}{if $vr.modifier|floatval}({include file="common/modifier.tpl" mod_type=$vr.modifier_type mod_value=$vr.modifier display_sign=true}){/if}{/hook}{/if}</label></li> | |
@@ -143,4 +142,4 @@ | |
}); | |
}(Tygh, Tygh.$)); | |
</script> | |
-{/if} | |
\ No newline at end of file | |
+{/if} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment