// BugFix : Problem with delivery otion and opc when user is not connected

This commit is contained in:
mDeflotte
2011-12-13 17:01:40 +00:00
parent d1c9c439fd
commit 41eddbf8f8
5 changed files with 24 additions and 8 deletions
+9 -5
View File
@@ -615,17 +615,21 @@ function updateHookShoppingCartExtra(html)
{
$('#HOOK_SHOPPING_CART_EXTRA').html(html);
}
$(document).ready(function() {
function refreshDeliveryOptions()
{
$.each($('.delivery_option_radio'), function() {
if ($(this).attr('checked'))
$(this).parent().find('.delivery_option_carrier').show();
else
$(this).parent().find('.delivery_option_carrier').hide();
});
$('.delivery_option_radio').change(function() {
$(this).parent().parent().find('.delivery_option_carrier').hide();
$(this).parent().find('.delivery_option_carrier').show();
}
$(document).ready(function() {
refreshDeliveryOptions();
$('.delivery_option_radio').live('change', function() {
refreshDeliveryOptions();
});
$('#allow_seperated_package').live('click', function() {