From c7a4da78023c1b0385325d9db03ce1f4d17bb3f5 Mon Sep 17 00:00:00 2001 From: kousikmukherjee Date: Wed, 26 Jun 2024 16:07:36 +0530 Subject: [PATCH] v2.11.8 --- ...ocommerce-checkout-eu-vat-field-block-frontend.asset.php | 2 +- ...-for-woocommerce-checkout-eu-vat-field-block-frontend.js | 2 +- ...at-for-woocommerce-checkout-eu-vat-field-block.asset.php | 2 +- build/eu-vat-for-woocommerce-checkout-eu-vat-field-block.js | 2 +- build/js/checkout-eu-vat-field-block/block.json | 2 +- eu-vat-for-woocommerce-blocks-integration.php | 2 +- eu-vat-for-woocommerce.php | 6 +++--- langs/eu-vat-for-woocommerce.pot | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 5 ++++- src/js/checkout-eu-vat-field-block/block.json | 2 +- src/js/checkout-eu-vat-field-block/blockvat.js | 2 +- 13 files changed, 20 insertions(+), 17 deletions(-) diff --git a/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block-frontend.asset.php b/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block-frontend.asset.php index 5b999c1..99cb954 100644 --- a/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block-frontend.asset.php +++ b/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block-frontend.asset.php @@ -1 +1 @@ - array('react', 'wc-blocks-checkout', 'wc-settings', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '215deda4a533190d0647'); + array('react', 'wc-blocks-checkout', 'wc-settings', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => '222dfda0b7792a6cf600'); diff --git a/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block-frontend.js b/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block-frontend.js index 14ac5b3..03eb9c2 100644 --- a/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block-frontend.js +++ b/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block-frontend.js @@ -1 +1 @@ -(()=>{"use strict";const e=window.wc.blocksCheckout,t=window.React,a=window.wp.element,o=window.wc.wcSettings,c=window.wp.data,{optInDefaultText:l}=(window.wp.i18n,(0,o.getSetting)("eu-vat-for-woocommerce_data","")),{registerCheckoutBlock:s,extensionCartUpdate:i}=wc.blocksCheckout,{CART_STORE_KEY:n}=window.wc.wcBlocksData,{hasError:r}=!1,d=(e,t)=>{const a="no";u()&&(a="yes");const o=(0,c.select)(n).getCartData(),l=o.billingAddress.country,s=o.billingAddress.company;var r=document.getElementById("alg_wc_eu_vat_progress"),d=document.getElementById("contact-alg_eu_vat/billing_eu_vat_number"),v=document.getElementsByClassName("wc-block-components-checkout-place-order-button")[0];const m=document.getElementById("store_previous_country");v.disabled=!0;var _=new URLSearchParams({action:"alg_wc_eu_vat_validate_action",channel:"bloock_api",alg_wc_eu_vat_to_check:e,billing_country:l,billing_company:s});r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_validating,r.classList.remove("alg-wc-eu-vat-not-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.remove("alg-wc-eu-vat-valid"),r.classList.add("alg-wc-eu-vat-validating"),d.classList.remove("woocommerce-invalid"),d.classList.remove("woocommerce-validated"),d.classList.remove("woocommerce-invalid-mismatch"),fetch(alg_wc_eu_vat_ajax_object.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:_}).then((e=>e.json())).then((o=>{"1"==o.status?(d.classList.add("woocommerce-validated"),r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_valid,r.classList.remove("alg-wc-eu-vat-not-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-valid")):"0"==o.status?(d.classList.add("woocommerce-invalid"),r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_not_valid,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-not-valid")):"4"==o.status?(d.classList.add("woocommerce-invalid"),r.innerHTML=alg_wc_eu_vat_ajax_object.text_shipping_billing_countries,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-not-valid")):"5"==o.status?(d.classList.add("woocommerce-invalid"),d.classList.add("woocommerce-invalid-mismatch"),r.innerHTML=alg_wc_eu_vat_ajax_object.company_name_mismatch,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-not-valid")):"6"==o.status?(d.classList.remove("woocommerce-invalid"),d.classList.remove("woocommerce-validated"),r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_validation_failed,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.remove("alg-wc-eu-vat-not-valid")):(d.classList.add("woocommerce-invalid"),r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_validation_failed,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-not-valid")),m.value=l,t&&i({namespace:"alg-wc-eu-vat-extention-namespace",data:{eu_vat_number:e,eu_country:l,same_billing_shipping:a}}),v.disabled=!1}))},u=()=>{var e=!1,t=document.getElementsByClassName("wc-block-checkout__use-address-for-billing");for(let o=0;o{const{setExtensionData:l,getExtensionData:s}=o,{setValidationErrors:i,clearValidationError:n}=(0,c.useDispatch)("wc/store/validation"),{CART_STORE_KEY:r}=window.wc.wcBlocksData,v=(0,c.select)(r).getCartData().billingAddress.country;return(0,a.useEffect)((()=>{var e=document.getElementById("contact-alg_eu_vat/billing_eu_vat_number");setTimeout((function(){""!==e.value&&d(e.value,!0)}),500),e.addEventListener("input",(function(e){d(e.target.value,!0)}),!1);var t=function(t){(e=>{var t,a=(t=e,void 0!==alg_wc_eu_frontend_countries_object[t]?alg_wc_eu_frontend_countries_object[t]:"");const o=document.getElementById("store_previous_country");return a!==o&&(o.value=a,!0)})(t.target.value)&&""!==e.value&&d(e.value,!0)},a=function(e){o()},o=function(){var e="billing-country";u()&&(e="shipping-country");var a=document.getElementsByClassName("wc-block-components-country-input");for(let c=0;c{"use strict";const e=window.wc.blocksCheckout,t=window.React,a=window.wp.element,o=window.wc.wcSettings,c=window.wp.data,{optInDefaultText:l}=(window.wp.i18n,(0,o.getSetting)("eu-vat-for-woocommerce_data","")),{registerCheckoutBlock:s,extensionCartUpdate:i}=wc.blocksCheckout,{CART_STORE_KEY:n}=window.wc.wcBlocksData,{hasError:r}=!1,d=(e,t)=>{var a="no";u()&&(a="yes");const o=(0,c.select)(n).getCartData(),l=o.billingAddress.country,s=o.billingAddress.company;var r=document.getElementById("alg_wc_eu_vat_progress"),d=document.getElementById("contact-alg_eu_vat/billing_eu_vat_number"),v=document.getElementsByClassName("wc-block-components-checkout-place-order-button")[0];const m=document.getElementById("store_previous_country");v.disabled=!0;var _=new URLSearchParams({action:"alg_wc_eu_vat_validate_action",channel:"bloock_api",alg_wc_eu_vat_to_check:e,billing_country:l,billing_company:s});r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_validating,r.classList.remove("alg-wc-eu-vat-not-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.remove("alg-wc-eu-vat-valid"),r.classList.add("alg-wc-eu-vat-validating"),d.classList.remove("woocommerce-invalid"),d.classList.remove("woocommerce-validated"),d.classList.remove("woocommerce-invalid-mismatch"),fetch(alg_wc_eu_vat_ajax_object.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:_}).then((e=>e.json())).then((o=>{"1"==o.status?(d.classList.add("woocommerce-validated"),r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_valid,r.classList.remove("alg-wc-eu-vat-not-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-valid")):"0"==o.status?(d.classList.add("woocommerce-invalid"),r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_not_valid,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-not-valid")):"4"==o.status?(d.classList.add("woocommerce-invalid"),r.innerHTML=alg_wc_eu_vat_ajax_object.text_shipping_billing_countries,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-not-valid")):"5"==o.status?(d.classList.add("woocommerce-invalid"),d.classList.add("woocommerce-invalid-mismatch"),r.innerHTML=alg_wc_eu_vat_ajax_object.company_name_mismatch,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-not-valid")):"6"==o.status?(d.classList.remove("woocommerce-invalid"),d.classList.remove("woocommerce-validated"),r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_validation_failed,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.remove("alg-wc-eu-vat-not-valid")):(d.classList.add("woocommerce-invalid"),r.innerHTML=alg_wc_eu_vat_ajax_object.progress_text_validation_failed,r.classList.remove("alg-wc-eu-vat-valid"),r.classList.remove("alg-wc-eu-vat-validating"),r.classList.add("alg-wc-eu-vat-not-valid")),m.value=l,t&&i({namespace:"alg-wc-eu-vat-extention-namespace",data:{eu_vat_number:e,eu_country:l,same_billing_shipping:a}}),v.disabled=!1}))},u=()=>{var e=!1,t=document.getElementsByClassName("wc-block-checkout__use-address-for-billing");for(let o=0;o{const{setExtensionData:l,getExtensionData:s}=o,{setValidationErrors:i,clearValidationError:n}=(0,c.useDispatch)("wc/store/validation"),{CART_STORE_KEY:r}=window.wc.wcBlocksData,v=(0,c.select)(r).getCartData().billingAddress.country;return(0,a.useEffect)((()=>{var e=document.getElementById("contact-alg_eu_vat/billing_eu_vat_number");setTimeout((function(){""!==e.value&&d(e.value,!0)}),500),e.addEventListener("input",(function(e){d(e.target.value,!0)}),!1);var t=function(t){(e=>{var t,a=(t=e,void 0!==alg_wc_eu_frontend_countries_object[t]?alg_wc_eu_frontend_countries_object[t]:"");const o=document.getElementById("store_previous_country");return a!==o&&(o.value=a,!0)})(t.target.value)&&""!==e.value&&d(e.value,!0)},a=function(e){o()},o=function(){var e="billing-country";u()&&(e="shipping-country");var a=document.getElementsByClassName("wc-block-components-country-input");for(let c=0;c array('react', 'wc-blocks-checkout', 'wc-settings', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '4cf2f865edbdecc1d87a'); + array('react', 'wc-blocks-checkout', 'wc-settings', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'ceccbc0e962971d11a64'); diff --git a/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block.js b/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block.js index 8d75b03..b7aa213 100644 --- a/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block.js +++ b/build/eu-vat-for-woocommerce-checkout-eu-vat-field-block.js @@ -1 +1 @@ -(()=>{"use strict";var e,t={607:()=>{const e=window.React,t=window.wp.components,o=window.wp.blocks,r=window.wp.i18n,c=window.wp.blockEditor,l=window.wc.blocksCheckout,a=window.wc.wcSettings,{optInDefaultText:n}=(0,a.getSetting)("eu-vat-for-woocommerce_data",""),i=JSON.parse('{"apiVersion":2,"name":"eu-vat-for-woocommerce/checkout-eu-vat-field","version":"2.11.6","title":"EU VAT Field","category":"woocommerce","description":"Adds a EU VAT Field checkbox to the checkout.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-contact-information-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}},"text":{"type":"string","source":"html","selector":".wp-block-eu-vat-for-woocommerce-checkout-eu-vat-field","default":""}},"textdomain":"eu-vat-for-woocommerce","editorStyle":"file:../../../build/style-eu-vat-for-woocommerce-checkout-eu-vat-field-block.css"}');(0,o.registerBlockType)(i,{icon:{src:(0,e.createElement)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 16"},(0,e.createElement)("g",{fill:"none",fillRule:"evenodd"},(0,e.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",d:"M2 .75h16c.69 0 1.25.56 1.25 1.25v12c0 .69-.56 1.25-1.25 1.25H2c-.69 0-1.25-.56-1.25-1.25V2C.75 1.31 1.31.75 2 .75z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M7.667 7.667A2.34 2.34 0 0010 5.333 2.34 2.34 0 007.667 3a2.34 2.34 0 00-2.334 2.333 2.34 2.34 0 002.334 2.334zM11.556 3H17v3.889h-5.444V3zm2.722 2.916l1.944-1.36v-.779L14.278 5.14l-1.945-1.362v.778l1.945 1.361zm-5.834-.583a.78.78 0 00-.777-.777.78.78 0 00-.778.777c0 .428.35.778.778.778a.78.78 0 00.777-.778zm3.89 5.904c0-1.945-3.088-2.785-4.667-2.785-1.58 0-4.667.84-4.667 2.785v1.097h9.333v-1.097zM7.666 10c-1.012 0-2.163.389-2.738.778h5.475C9.821 10.38 8.678 10 7.667 10z"}))),foreground:"#874FB9"},edit:({attributes:o,setAttributes:a})=>{const{text:n}=o,i=(0,c.useBlockProps)();return(0,e.createElement)("div",{...i},(0,e.createElement)(c.InspectorControls,null,(0,e.createElement)(t.PanelBody,{title:(0,r.__)("Block options","eu-vat-for-woocommerce")},"Options for the block go here.")),(0,e.createElement)("div",{...i},(0,e.createElement)(l.ValidatedTextInput,{id:"billing_eu_vat_number",type:"text",required:!1,className:"billing-eu-vat-number",label:(0,r.__)("EU VAT Number","eu-vat-for-woocommerce")}),(0,e.createElement)("div",{id:"alg_wc_eu_vat_progress"})))},save:({attributes:t})=>{const{text:o}=t;return(0,e.createElement)("div",{...c.useBlockProps.save()},(0,e.createElement)(c.RichText.Content,{value:o}))}})}},o={};function r(e){var c=o[e];if(void 0!==c)return c.exports;var l=o[e]={exports:{}};return t[e](l,l.exports,r),l.exports}r.m=t,e=[],r.O=(t,o,c,l)=>{if(!o){var a=1/0;for(u=0;u=l)&&Object.keys(r.O).every((e=>r.O[e](o[i])))?o.splice(i--,1):(n=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[o,c,l]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={143:0,58:0};r.O.j=t=>0===e[t];var t=(t,o)=>{var c,l,[a,n,i]=o,s=0;if(a.some((t=>0!==e[t]))){for(c in n)r.o(n,c)&&(r.m[c]=n[c]);if(i)var u=i(r)}for(t&&t(o);sr(607)));c=r.O(c)})(); \ No newline at end of file +(()=>{"use strict";var e,t={607:()=>{const e=window.React,t=window.wp.components,o=window.wp.blocks,r=window.wp.i18n,c=window.wp.blockEditor,l=window.wc.blocksCheckout,a=window.wc.wcSettings,{optInDefaultText:n}=(0,a.getSetting)("eu-vat-for-woocommerce_data",""),i=JSON.parse('{"apiVersion":2,"name":"eu-vat-for-woocommerce/checkout-eu-vat-field","version":"2.11.7","title":"EU VAT Field","category":"woocommerce","description":"Adds a EU VAT Field checkbox to the checkout.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-contact-information-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}},"text":{"type":"string","source":"html","selector":".wp-block-eu-vat-for-woocommerce-checkout-eu-vat-field","default":""}},"textdomain":"eu-vat-for-woocommerce","editorStyle":"file:../../../build/style-eu-vat-for-woocommerce-checkout-eu-vat-field-block.css"}');(0,o.registerBlockType)(i,{icon:{src:(0,e.createElement)(t.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 16"},(0,e.createElement)("g",{fill:"none",fillRule:"evenodd"},(0,e.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",d:"M2 .75h16c.69 0 1.25.56 1.25 1.25v12c0 .69-.56 1.25-1.25 1.25H2c-.69 0-1.25-.56-1.25-1.25V2C.75 1.31 1.31.75 2 .75z"}),(0,e.createElement)("path",{fill:"currentColor",d:"M7.667 7.667A2.34 2.34 0 0010 5.333 2.34 2.34 0 007.667 3a2.34 2.34 0 00-2.334 2.333 2.34 2.34 0 002.334 2.334zM11.556 3H17v3.889h-5.444V3zm2.722 2.916l1.944-1.36v-.779L14.278 5.14l-1.945-1.362v.778l1.945 1.361zm-5.834-.583a.78.78 0 00-.777-.777.78.78 0 00-.778.777c0 .428.35.778.778.778a.78.78 0 00.777-.778zm3.89 5.904c0-1.945-3.088-2.785-4.667-2.785-1.58 0-4.667.84-4.667 2.785v1.097h9.333v-1.097zM7.666 10c-1.012 0-2.163.389-2.738.778h5.475C9.821 10.38 8.678 10 7.667 10z"}))),foreground:"#874FB9"},edit:({attributes:o,setAttributes:a})=>{const{text:n}=o,i=(0,c.useBlockProps)();return(0,e.createElement)("div",{...i},(0,e.createElement)(c.InspectorControls,null,(0,e.createElement)(t.PanelBody,{title:(0,r.__)("Block options","eu-vat-for-woocommerce")},"Options for the block go here.")),(0,e.createElement)("div",{...i},(0,e.createElement)(l.ValidatedTextInput,{id:"billing_eu_vat_number",type:"text",required:!1,className:"billing-eu-vat-number",label:(0,r.__)("EU VAT Number","eu-vat-for-woocommerce")}),(0,e.createElement)("div",{id:"alg_wc_eu_vat_progress"})))},save:({attributes:t})=>{const{text:o}=t;return(0,e.createElement)("div",{...c.useBlockProps.save()},(0,e.createElement)(c.RichText.Content,{value:o}))}})}},o={};function r(e){var c=o[e];if(void 0!==c)return c.exports;var l=o[e]={exports:{}};return t[e](l,l.exports,r),l.exports}r.m=t,e=[],r.O=(t,o,c,l)=>{if(!o){var a=1/0;for(u=0;u=l)&&Object.keys(r.O).every((e=>r.O[e](o[i])))?o.splice(i--,1):(n=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[o,c,l]},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={143:0,58:0};r.O.j=t=>0===e[t];var t=(t,o)=>{var c,l,[a,n,i]=o,s=0;if(a.some((t=>0!==e[t]))){for(c in n)r.o(n,c)&&(r.m[c]=n[c]);if(i)var u=i(r)}for(t&&t(o);sr(607)));c=r.O(c)})(); \ No newline at end of file diff --git a/build/js/checkout-eu-vat-field-block/block.json b/build/js/checkout-eu-vat-field-block/block.json index a8eb8f0..5a6511a 100644 --- a/build/js/checkout-eu-vat-field-block/block.json +++ b/build/js/checkout-eu-vat-field-block/block.json @@ -1,7 +1,7 @@ { "apiVersion": 2, "name": "eu-vat-for-woocommerce/checkout-eu-vat-field", - "version": "2.11.6", + "version": "2.11.7", "title": "EU VAT Field", "category": "woocommerce", "description": "Adds a EU VAT Field checkbox to the checkout.", diff --git a/eu-vat-for-woocommerce-blocks-integration.php b/eu-vat-for-woocommerce-blocks-integration.php index 3fddf27..6110ea9 100644 --- a/eu-vat-for-woocommerce-blocks-integration.php +++ b/eu-vat-for-woocommerce-blocks-integration.php @@ -1,7 +1,7 @@ \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-06-26T11:41:23+02:00\n" +"POT-Creation-Date: 2024-06-26T12:37:10+02:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: eu-vat-for-woocommerce\n" diff --git a/package-lock.json b/package-lock.json index de1eeb9..e8e3eb9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "eu-vat-for-woocommerce", - "version": "2.11.6", + "version": "2.11.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "eu-vat-for-woocommerce", - "version": "2.11.6", + "version": "2.11.7", "license": "GPL-2.0-or-later", "devDependencies": { "@woocommerce/dependency-extraction-webpack-plugin": "^3.0.1", diff --git a/package.json b/package.json index be90cc9..a8c6fb5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eu-vat-for-woocommerce", - "version": "2.11.6", + "version": "2.11.7", "author": "WPFactory", "license": "GPL-2.0-or-later", "main": "build/index.js", diff --git a/readme.txt b/readme.txt index db3ab5f..5013919 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmu Tags: EU VAT, UK VAT, tax, vat validation, VAT Requires at least: 6.1 Tested up to: 6.5 -Stable tag: 2.11.6 +Stable tag: 2.11.8 License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -290,6 +290,9 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S == Changelog == += 2.11.8 - 26/06/2024 = +* Fix - react constant error. + = 2.11.7 - 26/06/2024 = * Update - Wc Order HPOS EU VAT filter. diff --git a/src/js/checkout-eu-vat-field-block/block.json b/src/js/checkout-eu-vat-field-block/block.json index 915d734..e9b2a71 100644 --- a/src/js/checkout-eu-vat-field-block/block.json +++ b/src/js/checkout-eu-vat-field-block/block.json @@ -1,7 +1,7 @@ { "apiVersion": 2, "name": "eu-vat-for-woocommerce/checkout-eu-vat-field", - "version": "2.11.6", + "version": "2.11.7", "title": "EU VAT Field", "category": "woocommerce", "description": "Adds a EU VAT Field checkbox to the checkout.", diff --git a/src/js/checkout-eu-vat-field-block/blockvat.js b/src/js/checkout-eu-vat-field-block/blockvat.js index 645cf6a..73f6b49 100644 --- a/src/js/checkout-eu-vat-field-block/blockvat.js +++ b/src/js/checkout-eu-vat-field-block/blockvat.js @@ -57,7 +57,7 @@ export { algReloadOnFirst }; const algWcBlockEuVatValidateVat = ( vat_number, refresh ) => { - const isSameBillingShipping = 'no'; + var isSameBillingShipping = 'no'; if(isUseBillingChecked()){ isSameBillingShipping = 'yes'; }