Mail: contact@ethnik-shop.com
Tel : +33665321676
1 rue des soeurs ILLKIRCH-GRAFFENSTADEN 67400 STRASBOURG
Sous-total | 51,00 € | |
---|---|---|
Expédition |
Les options de livraison seront mises à jour lors de la commande.
jQuery(document).ready(function() { var uniqid = 'form.woocommerce-shipping-calculator'; var add_styles = true; var code_postal_name = 'calc_shipping_postcode'; var commune_name = 'calc_shipping_city'; var country_name = 'calc_shipping_country'; //console.log("uniqid = " + uniqid); //jQuery(uniqid).css('border','red solid 1px'); hexasmalInit( uniqid, add_styles, code_postal_name, commune_name, country_name ); jQuery(uniqid + ' *[name="' + code_postal_name + '"]').on('keyup',function() { //console.log(" Change sur code postal " + jQuery(this).val()); // skip country not FR if( country_name != 'FR' && !hexasmalCountryNeedsChecking(uniqid, country_name)) { /*hexasmalRemoveWarning( 'form.woocommerce-shipping-calculator', 'calc_shipping_postcode', 'calc_shipping_city', );*/ //console.log("no check on country"); return; } var code_postal_value = jQuery(this).val(); // skip code_postal already done var precedent_code_postal = jQuery(uniqid + ' input[name="precedent_code_postal"]'); if(precedent_code_postal.val() == code_postal_value) { //console.log("no check on previous = " + precedent_code_postal.val()); jQuery('.hexasmal_choices').show(); hexasmalRemoveWarning( 'form.woocommerce-shipping-calculator', 'calc_shipping_postcode', 'calc_shipping_city', ); return; } // wait for valid code_postal var verification_code_postal = hexasmal_validerCodePostal(code_postal_value); if(verification_code_postal.valid) { //console.log("VALID"); jQuery(uniqid + ' div.message').hide(); hexasmalRemoveWarning( 'form.woocommerce-shipping-calculator', 'calc_shipping_postcode', 'calc_shipping_city', ); precedent_code_postal.val(code_postal_value); hexasmalMagic( code_postal_value, 'form.woocommerce-shipping-calculator', 'calc_shipping_postcode', 'calc_shipping_city' ); } else { //console.log("code postal non valide = " + code_postal_value + " error = " + verification_code_postal.error); jQuery(uniqid + ' div.message').html(verification_code_postal.error); jQuery(uniqid + ' div.message').show(); hexasmalAddWarning( 'form.woocommerce-shipping-calculator', 'calc_shipping_postcode' ); return; } });
});
|
|
Total | 67,90 € EUR |