[-] BO : #PSTEST-977 - Cart rule, hide unavailable options

This commit is contained in:
mDeflotte committed 2012-04-18 09:59:52 +00:00
1 parent d9c29a3b44
commit 3fe49c4f74
2 files changed
+9 -5

No files matched your search

@@ -89,7 +89,7 @@
</select> </select>
</div> </div>
<div class="clear">&nbsp;</div> <div class="clear">&nbsp;</div>
<div id="gift_attributes_list" {if $gift_product_attribute_select == ''}style="display:none"{/if}> <div id="gift_attributes_list" {if !$hasAttribute}style="display:none"{/if}>
<label>{l s='Available combinations'}</label> <label>{l s='Available combinations'}</label>
<div id="gift_attributes_list_select"> <div id="gift_attributes_list_select">
{$gift_product_attribute_select} {$gift_product_attribute_select}
@@ -112,8 +112,10 @@ function toggleApplyDiscount(percent, amount, apply_to)
$('#apply_discount_percent_div').show(400); $('#apply_discount_percent_div').show(400);
if ($('#apply_discount_to_product').attr('checked')) if ($('#apply_discount_to_product').attr('checked'))
toggleApplyDiscountTo(); toggleApplyDiscountTo();
$('#apply_discount_to_cheapest').removeAttr('disabled'); $('#apply_discount_to_cheapest').show();
$('#apply_discount_to_selection').removeAttr('disabled'); $('*[for=apply_discount_to_cheapest]').show();
$('#apply_discount_to_selection').show();
$('*[for=apply_discount_to_selection]').show();
} }
else else
{ {
@@ -126,9 +128,11 @@ function toggleApplyDiscount(percent, amount, apply_to)
$('#apply_discount_amount_div').show(400); $('#apply_discount_amount_div').show(400);
if ($('#apply_discount_to_product').attr('checked')) if ($('#apply_discount_to_product').attr('checked'))
toggleApplyDiscountTo(); toggleApplyDiscountTo();
$('#apply_discount_to_cheapest').attr('disabled', 'disabled'); $('#apply_discount_to_cheapest').hide();
$('*[for=apply_discount_to_cheapest]').hide();
$('#apply_discount_to_cheapest').removeAttr('checked'); $('#apply_discount_to_cheapest').removeAttr('checked');
$('#apply_discount_to_selection').attr('disabled', 'disabled'); $('#apply_discount_to_selection').hide();
$('*[for=apply_discount_to_selection]').hide();
$('#apply_discount_to_selection').removeAttr('checked'); $('#apply_discount_to_selection').removeAttr('checked');
} }
else else