Design:
Strony internetowe

Granit

Checkout

Step 1: Checkout Options
Step 2: Account & Billing Details
Step 5: Payment Method
Step 6: Confirm Order
'); $('.warning').fadeIn('slow'); } else { $.ajax({ url: 'index.php?route=checkout/address/payment', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#payment-address .checkout-content').html(json['output']); $('#checkout .checkout-content').slideUp('slow'); $('#payment-address .checkout-content').slideDown('slow'); $('#payment-address .checkout-heading span').html('Step 2: Billing Details'); $('.checkout-heading a').remove(); } } }); } } }); }); // Register $('#button-register').live('click', function() { $.ajax({ url: 'index.php?route=checkout/register', type: 'post', data: $('#payment-address input[type=\'text\'], #payment-address input[type=\'password\'], #payment-address input[type=\'checkbox\']:checked, #payment-address input[type=\'radio\']:checked, #payment-address select'), dataType: 'json', beforeSend: function() { $('#button-register').attr('disabled', true); $('#button-register').after(' '); }, complete: function() { $('#button-register').attr('disabled', false); $('.wait').remove(); }, success: function(json) { $('.warning').remove(); $('.error').remove(); if (json['redirect']) { location = json['redirect']; } if (json['error']) { if (json['error']['warning']) { $('#payment-address .checkout-content').prepend(''); $('.warning').fadeIn('slow'); } if (json['error']['firstname']) { $('#payment-address input[name=\'firstname\'] + br').after('' + json['error']['firstname'] + ''); } if (json['error']['lastname']) { $('#payment-address input[name=\'lastname\'] + br').after('' + json['error']['lastname'] + ''); } if (json['error']['email']) { $('#payment-address input[name=\'email\'] + br').after('' + json['error']['email'] + ''); } if (json['error']['telephone']) { $('#payment-address input[name=\'telephone\'] + br').after('' + json['error']['telephone'] + ''); } if (json['error']['address_1']) { $('#payment-address input[name=\'address_1\'] + br').after('' + json['error']['address_1'] + ''); } if (json['error']['city']) { $('#payment-address input[name=\'city\'] + br').after('' + json['error']['city'] + ''); } if (json['error']['postcode']) { $('#payment-address input[name=\'postcode\'] + br').after('' + json['error']['postcode'] + ''); } if (json['error']['country']) { $('#payment-address select[name=\'country_id\'] + br').after('' + json['error']['country'] + ''); } if (json['error']['zone']) { $('#payment-address select[name=\'zone_id\'] + br').after('' + json['error']['zone'] + ''); } if (json['error']['password']) { $('#payment-address input[name=\'password\'] + br').after('' + json['error']['password'] + ''); } if (json['error']['confirm']) { $('#payment-address input[name=\'confirm\'] + br').after('' + json['error']['confirm'] + ''); } } else { $.ajax({ url: 'index.php?route=checkout/payment', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#payment-method .checkout-content').html(json['output']); $('#payment-address .checkout-content').slideUp('slow'); $('#payment-method .checkout-content').slideDown('slow'); $('#checkout .checkout-heading a').remove(); $('#payment-address .checkout-heading a').remove(); $('#payment-method .checkout-heading a').remove(); $('#payment-address .checkout-heading').append('Modify »'); } } }); $.ajax({ url: 'index.php?route=checkout/address/payment', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#payment-address .checkout-content').html(json['output']); $('#payment-address .checkout-heading span').html('Step 2: Billing Details'); } } }); } } }); }); // Payment Address $('#payment-address #button-address').live('click', function() { $.ajax({ url: 'index.php?route=checkout/address/payment', type: 'post', data: $('#payment-address input[type=\'text\'], #payment-address input[type=\'password\'], #payment-address input[type=\'checkbox\']:checked, #payment-address input[type=\'radio\']:checked, #payment-address select'), dataType: 'json', beforeSend: function() { $('#payment-address #button-address').attr('disabled', true); $('#payment-address #button-address').after(' '); }, complete: function() { $('#payment-address #button-address').attr('disabled', false); $('.wait').remove(); }, success: function(json) { $('.error').remove(); if (json['redirect']) { location = json['redirect']; } if (json['error']) { if (json['error']['firstname']) { $('#payment-address input[name=\'firstname\']').after('' + json['error']['firstname'] + ''); } if (json['error']['lastname']) { $('#payment-address input[name=\'lastname\']').after('' + json['error']['lastname'] + ''); } if (json['error']['telephone']) { $('#payment-address input[name=\'telephone\']').after('' + json['error']['telephone'] + ''); } if (json['error']['address_1']) { $('#payment-address input[name=\'address_1\']').after('' + json['error']['address_1'] + ''); } if (json['error']['city']) { $('#payment-address input[name=\'city\']').after('' + json['error']['city'] + ''); } if (json['error']['postcode']) { $('#payment-address input[name=\'postcode\']').after('' + json['error']['postcode'] + ''); } if (json['error']['country']) { $('#payment-address select[name=\'country_id\']').after('' + json['error']['country'] + ''); } if (json['error']['zone']) { $('#payment-address select[name=\'zone_id\']').after('' + json['error']['zone'] + ''); } } else { $.ajax({ url: 'index.php?route=checkout/payment', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#payment-method .checkout-content').html(json['output']); $('#payment-address .checkout-content').slideUp('slow'); $('#payment-method .checkout-content').slideDown('slow'); $('#payment-address .checkout-heading a').remove(); $('#payment-method .checkout-heading a').remove(); $('#payment-address .checkout-heading').append('Modify »'); } } }); $.ajax({ url: 'index.php?route=checkout/address/payment', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#payment-address .checkout-content').html(json['output']); } } }); } } }); }); // Shipping Address $('#shipping-address #button-address').live('click', function() { $.ajax({ url: 'index.php?route=checkout/address/shipping', type: 'post', data: $('#shipping-address input[type=\'text\'], #shipping-address input[type=\'password\'], #shipping-address input[type=\'checkbox\']:checked, #shipping-address input[type=\'radio\']:checked, #shipping-address select'), dataType: 'json', beforeSend: function() { $('#shipping-address #button-address').attr('disabled', true); $('#shipping-address #button-address').after(' '); }, complete: function() { $('#shipping-address #button-address').attr('disabled', false); $('.wait').remove(); }, success: function(json) { $('.error').remove(); if (json['redirect']) { location = json['redirect']; } if (json['error']) { if (json['error']['firstname']) { $('#shipping-address input[name=\'firstname\']').after('' + json['error']['firstname'] + ''); } if (json['error']['lastname']) { $('#shipping-address input[name=\'lastname\']').after('' + json['error']['lastname'] + ''); } if (json['error']['email']) { $('#shipping-address input[name=\'email\']').after('' + json['error']['email'] + ''); } if (json['error']['telephone']) { $('#shipping-address input[name=\'telephone\']').after('' + json['error']['telephone'] + ''); } if (json['error']['address_1']) { $('#shipping-address input[name=\'address_1\']').after('' + json['error']['address_1'] + ''); } if (json['error']['city']) { $('#shipping-address input[name=\'city\']').after('' + json['error']['city'] + ''); } if (json['error']['postcode']) { $('#shipping-address input[name=\'postcode\']').after('' + json['error']['postcode'] + ''); } if (json['error']['country']) { $('#shipping-address select[name=\'country_id\']').after('' + json['error']['country'] + ''); } if (json['error']['zone']) { $('#shipping-address select[name=\'zone_id\']').after('' + json['error']['zone'] + ''); } } else { $.ajax({ url: 'index.php?route=checkout/shipping', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#shipping-method .checkout-content').html(json['output']); $('#shipping-address .checkout-content').slideUp('slow'); $('#shipping-method .checkout-content').slideDown('slow'); $('#shipping-address .checkout-heading a').remove(); $('#shipping-method .checkout-heading a').remove(); $('#payment-method .checkout-heading a').remove(); $('#shipping-address .checkout-heading').append('Modify »'); } $.ajax({ url: 'index.php?route=checkout/address/shipping', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#shipping-address .checkout-content').html(json['output']); } } }); } }); } } }); }); // Guest $('#button-guest').live('click', function() { $.ajax({ url: 'index.php?route=checkout/guest', type: 'post', data: $('#payment-address input[type=\'text\'], #payment-address input[type=\'checkbox\']:checked, #payment-address select'), dataType: 'json', beforeSend: function() { $('#button-guest').attr('disabled', true); $('#button-guest').after(' '); }, complete: function() { $('#button-guest').attr('disabled', false); $('.wait').remove(); }, success: function(json) { $('.error').remove(); if (json['redirect']) { location = json['redirect']; } if (json['error']) { if (json['error']['firstname']) { $('#payment-address input[name=\'firstname\'] + br').after('' + json['error']['firstname'] + ''); } if (json['error']['lastname']) { $('#payment-address input[name=\'lastname\'] + br').after('' + json['error']['lastname'] + ''); } if (json['error']['email']) { $('#payment-address input[name=\'email\'] + br').after('' + json['error']['email'] + ''); } if (json['error']['telephone']) { $('#payment-address input[name=\'telephone\'] + br').after('' + json['error']['telephone'] + ''); } if (json['error']['address_1']) { $('#payment-address input[name=\'address_1\'] + br').after('' + json['error']['address_1'] + ''); } if (json['error']['city']) { $('#payment-address input[name=\'city\'] + br').after('' + json['error']['city'] + ''); } if (json['error']['postcode']) { $('#payment-address input[name=\'postcode\'] + br').after('' + json['error']['postcode'] + ''); } if (json['error']['country']) { $('#payment-address select[name=\'country_id\'] + br').after('' + json['error']['country'] + ''); } if (json['error']['zone']) { $('#payment-address select[name=\'zone_id\'] + br').after('' + json['error']['zone'] + ''); } } else { $.ajax({ url: 'index.php?route=checkout/payment', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#payment-method .checkout-content').html(json['output']); $('#payment-address .checkout-content').slideUp('slow'); $('#payment-method .checkout-content').slideDown('slow'); $('#payment-address .checkout-heading a').remove(); $('#payment-method .checkout-heading a').remove(); $('#payment-address .checkout-heading').append('Modify »'); } } }); } } }); }); // Guest Shipping $('#button-guest-shipping').live('click', function() { $.ajax({ url: 'index.php?route=checkout/guest/shipping', type: 'post', data: $('#shipping-address input[type=\'text\'], #shipping-address select'), dataType: 'json', beforeSend: function() { $('#button-guest-shipping').attr('disabled', true); $('#button-guest-shipping').after(' '); }, complete: function() { $('#button-guest-shipping').attr('disabled', false); $('.wait').remove(); }, success: function(json) { $('.error').remove(); if (json['redirect']) { location = json['redirect']; } if (json['error']) { if (json['error']['firstname']) { $('#shipping-address input[name=\'firstname\']').after('' + json['error']['firstname'] + ''); } if (json['error']['lastname']) { $('#shipping-address input[name=\'lastname\']').after('' + json['error']['lastname'] + ''); } if (json['error']['address_1']) { $('#shipping-address input[name=\'address_1\']').after('' + json['error']['address_1'] + ''); } if (json['error']['city']) { $('#shipping-address input[name=\'city\']').after('' + json['error']['city'] + ''); } if (json['error']['postcode']) { $('#shipping-address input[name=\'postcode\']').after('' + json['error']['postcode'] + ''); } if (json['error']['country']) { $('#shipping-address select[name=\'country_id\']').after('' + json['error']['country'] + ''); } if (json['error']['zone']) { $('#shipping-address select[name=\'zone_id\']').after('' + json['error']['zone'] + ''); } } else { $.ajax({ url: 'index.php?route=checkout/shipping', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#shipping-method .checkout-content').html(json['output']); $('#shipping-address .checkout-content').slideUp('slow'); $('#shipping-method .checkout-content').slideDown('slow'); $('#shipping-address .checkout-heading a').remove(); $('#shipping-method .checkout-heading a').remove(); $('#payment-method .checkout-heading a').remove(); $('#shipping-address .checkout-heading').append('Modify »'); } } }); } } }); }); $('#button-shipping').live('click', function() { $.ajax({ url: 'index.php?route=checkout/shipping', type: 'post', data: $('#shipping-method input[type=\'radio\']:checked, #shipping-method textarea'), dataType: 'json', beforeSend: function() { $('#button-shipping').attr('disabled', true); $('#button-shipping').after(' '); }, complete: function() { $('#button-shipping').attr('disabled', false); $('.wait').remove(); }, success: function(json) { $('.warning').remove(); if (json['redirect']) { location = json['redirect']; } if (json['error']) { if (json['error']['warning']) { $('#shipping-method .checkout-content').prepend(''); $('.warning').fadeIn('slow'); } } else { $.ajax({ url: 'index.php?route=checkout/payment', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#payment-method .checkout-content').html(json['output']); $('#shipping-method .checkout-content').slideUp('slow'); $('#payment-method .checkout-content').slideDown('slow'); $('#shipping-method .checkout-heading a').remove(); $('#payment-method .checkout-heading a').remove(); $('#shipping-method .checkout-heading').append('Modify »'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError); } }); } } }); }); $('#button-payment').live('click', function() { $.ajax({ url: 'index.php?route=checkout/payment', type: 'post', data: $('#payment-method input[type=\'radio\']:checked, #payment-method input[type=\'checkbox\']:checked, #payment-method textarea'), dataType: 'json', beforeSend: function() { $('#button-payment').attr('disabled', true); $('#button-payment').after(' '); }, complete: function() { $('#button-payment').attr('disabled', false); $('.wait').remove(); }, success: function(json) { $('.warning').remove(); if (json['redirect']) { location = json['redirect']; } if (json['error']) { if (json['error']['warning']) { $('#payment-method .checkout-content').prepend(''); $('.warning').fadeIn('slow'); } } else { $.ajax({ url: 'index.php?route=checkout/confirm', dataType: 'json', success: function(json) { if (json['redirect']) { location = json['redirect']; } if (json['output']) { $('#confirm .checkout-content').html(json['output']); $('#payment-method .checkout-content').slideUp('slow'); $('#confirm .checkout-content').slideDown('slow'); $('#payment-method .checkout-heading a').remove(); $('#payment-method .checkout-heading').append('Modify »'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError); } }); } } }); }); //-->
Designed By fifeweb MMSounds Download Store © 2017