Changeset 3384402
- Timestamp:
- 10/25/2025 10:19:59 AM (3 months ago)
- Location:
- tax-switch-for-woocommerce
- Files:
-
- 106 added
- 30 edited
-
tags/1.6.0 (added)
-
tags/1.6.0/LICENSE.txt (added)
-
tags/1.6.0/README.txt (added)
-
tags/1.6.0/admin (added)
-
tags/1.6.0/admin/class-wdevs-tax-switch-admin.php (added)
-
tags/1.6.0/admin/index.php (added)
-
tags/1.6.0/admin/js (added)
-
tags/1.6.0/admin/js/wdevs-tax-switch-woocommerce.js (added)
-
tags/1.6.0/admin/partials (added)
-
tags/1.6.0/admin/partials/section-wdevs-tax-switch-shortcode.php (added)
-
tags/1.6.0/build (added)
-
tags/1.6.0/build/label (added)
-
tags/1.6.0/build/label/block.json (added)
-
tags/1.6.0/build/label/index-rtl.css (added)
-
tags/1.6.0/build/label/index.asset.php (added)
-
tags/1.6.0/build/label/index.css (added)
-
tags/1.6.0/build/label/index.js (added)
-
tags/1.6.0/build/label/style-index-rtl.css (added)
-
tags/1.6.0/build/label/style-index.css (added)
-
tags/1.6.0/build/label/view.asset.php (added)
-
tags/1.6.0/build/label/view.js (added)
-
tags/1.6.0/build/shared (added)
-
tags/1.6.0/build/shared/shared.asset.php (added)
-
tags/1.6.0/build/shared/shared.js (added)
-
tags/1.6.0/build/switch (added)
-
tags/1.6.0/build/switch/advanced-product-fields-for-woocommerce.asset.php (added)
-
tags/1.6.0/build/switch/advanced-product-fields-for-woocommerce.js (added)
-
tags/1.6.0/build/switch/block.json (added)
-
tags/1.6.0/build/switch/facetwp.asset.php (added)
-
tags/1.6.0/build/switch/facetwp.js (added)
-
tags/1.6.0/build/switch/fibofilters.asset.php (added)
-
tags/1.6.0/build/switch/fibofilters.js (added)
-
tags/1.6.0/build/switch/index-rtl.css (added)
-
tags/1.6.0/build/switch/index.asset.php (added)
-
tags/1.6.0/build/switch/index.css (added)
-
tags/1.6.0/build/switch/index.js (added)
-
tags/1.6.0/build/switch/kapee-theme.asset.php (added)
-
tags/1.6.0/build/switch/kapee-theme.js (added)
-
tags/1.6.0/build/switch/product-extras-for-woocommerce.asset.php (added)
-
tags/1.6.0/build/switch/product-extras-for-woocommerce.js (added)
-
tags/1.6.0/build/switch/style-index-rtl.css (added)
-
tags/1.6.0/build/switch/style-index.css (added)
-
tags/1.6.0/build/switch/view.asset.php (added)
-
tags/1.6.0/build/switch/view.js (added)
-
tags/1.6.0/build/switch/woocommerce-measurement-price-calculator.asset.php (added)
-
tags/1.6.0/build/switch/woocommerce-measurement-price-calculator.js (added)
-
tags/1.6.0/build/switch/woocommerce-product-addons.asset.php (added)
-
tags/1.6.0/build/switch/woocommerce-product-addons.js (added)
-
tags/1.6.0/build/switch/woocommerce-quantity-manager.asset.php (added)
-
tags/1.6.0/build/switch/woocommerce-quantity-manager.js (added)
-
tags/1.6.0/build/switch/woocommerce-tiered-price-table.asset.php (added)
-
tags/1.6.0/build/switch/woocommerce-tiered-price-table.js (added)
-
tags/1.6.0/build/switch/woocommerce-tm-extra-product-options.asset.php (added)
-
tags/1.6.0/build/switch/woocommerce-tm-extra-product-options.js (added)
-
tags/1.6.0/build/switch/woodmart-theme.asset.php (added)
-
tags/1.6.0/build/switch/woodmart-theme.js (added)
-
tags/1.6.0/build/switch/yith-woocommerce-product-add-ons.asset.php (added)
-
tags/1.6.0/build/switch/yith-woocommerce-product-add-ons.js (added)
-
tags/1.6.0/includes (added)
-
tags/1.6.0/includes/assets (added)
-
tags/1.6.0/includes/assets/css (added)
-
tags/1.6.0/includes/assets/css/wdevs-tax-switch-shared.css (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-activator.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-block-label.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-block-shared.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-block-switch.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-block.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-compatibility.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-deactivator.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-loader.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-mini-cart-context.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch-woocommerce.php (added)
-
tags/1.6.0/includes/class-wdevs-tax-switch.php (added)
-
tags/1.6.0/includes/index.php (added)
-
tags/1.6.0/includes/trait-wdevs-tax-switch-display.php (added)
-
tags/1.6.0/includes/trait-wdevs-tax-switch-helper.php (added)
-
tags/1.6.0/includes/trait-wdevs-tax-switch-plugins.php (added)
-
tags/1.6.0/languages (added)
-
tags/1.6.0/languages/build.json (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-en_US.l10n.php (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-en_US.mo (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-en_US.po (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-nl_NL.l10n.php (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-nl_NL.mo (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-nl_NL.po (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-sv_SE.l10n.php (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-sv_SE.mo (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce-sv_SE.po (added)
-
tags/1.6.0/languages/tax-switch-for-woocommerce.pot (added)
-
tags/1.6.0/public (added)
-
tags/1.6.0/public/class-wdevs-tax-switch-public.php (added)
-
tags/1.6.0/public/css (added)
-
tags/1.6.0/public/css/wdevs-tax-switch-public.css (added)
-
tags/1.6.0/public/index.php (added)
-
tags/1.6.0/uninstall.php (added)
-
tags/1.6.0/wdevs-tax-switch.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/build/label/block.json (modified) (1 diff)
-
trunk/build/shared/shared.asset.php (modified) (1 diff)
-
trunk/build/shared/shared.js (modified) (1 diff)
-
trunk/build/switch/block.json (modified) (1 diff)
-
trunk/build/switch/facetwp.asset.php (added)
-
trunk/build/switch/facetwp.js (added)
-
trunk/build/switch/view.asset.php (modified) (1 diff)
-
trunk/build/switch/view.js (modified) (1 diff)
-
trunk/build/switch/woodmart-theme.asset.php (added)
-
trunk/build/switch/woodmart-theme.js (added)
-
trunk/includes/class-wdevs-tax-switch-compatibility.php (modified) (3 diffs)
-
trunk/includes/class-wdevs-tax-switch-woocommerce.php (modified) (6 diffs)
-
trunk/includes/class-wdevs-tax-switch.php (modified) (4 diffs)
-
trunk/includes/trait-wdevs-tax-switch-helper.php (modified) (3 diffs)
-
trunk/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-en_US.l10n.php (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-en_US.mo (modified) (previous)
-
trunk/languages/tax-switch-for-woocommerce-en_US.po (modified) (10 diffs)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL.l10n.php (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL.mo (modified) (previous)
-
trunk/languages/tax-switch-for-woocommerce-nl_NL.po (modified) (10 diffs)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE.l10n.php (modified) (1 diff)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE.mo (modified) (previous)
-
trunk/languages/tax-switch-for-woocommerce-sv_SE.po (modified) (9 diffs)
-
trunk/languages/tax-switch-for-woocommerce.pot (modified) (9 diffs)
-
trunk/public/class-wdevs-tax-switch-public.php (modified) (1 diff)
-
trunk/public/css/wdevs-tax-switch-public.css (modified) (1 diff)
-
trunk/wdevs-tax-switch.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tax-switch-for-woocommerce/trunk/README.txt
r3375917 r3384402 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1. 5.196 Stable tag: 1.6.0 7 7 Requires PHP: 7.2 8 8 License: GPL-2.0+ … … 198 198 * FiboFilters 199 199 * Extra Product Options & Add-Ons for WooCommerce 200 * FiboSearch – Ajax Search for WooCommerce (+ Pro) 200 201 201 202 If you encounter any compatibility issues with other plugins or themes, please let us know. Your feedback helps us improve the plugin and extend compatibility to more third-party solutions. … … 234 235 235 236 == Changelog == 237 = 1.6.0 = 238 * Added option to enable price switching in the mini cart 239 * Added compatibility for FiboSearch - AJAX Search for WooCommerce (+ Pro) 240 * Added new filter: `wdevs_tax_switch_should_hide_on_current_page` for custom visibility control 241 * Improved AJAX compatibility. Price switching should be included in AJAX-loaded content 242 * Improved compatibility for WoodMart theme 243 * Added FacetWP slider price switching 244 * Added 'disabled' state 245 236 246 = 1.5.19 = 237 247 * Added PJAX compatibility for themes using jquery-pjax (e.g. WoodMart theme) -
tax-switch-for-woocommerce/trunk/build/label/block.json
r3375917 r3384402 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch-label", 5 "version": "1. 5.19",5 "version": "1.6.0", 6 6 "title": "Tax Switch text label", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/build/shared/shared.asset.php
r3367825 r3384402 1 <?php return array('dependencies' => array(), 'version' => ' 727a2f70b8f53db5a3f5');1 <?php return array('dependencies' => array(), 'version' => '23cc7d1c84d2cffa4f3a'); -
tax-switch-for-woocommerce/trunk/build/shared/shared.js
r3367825 r3384402 1 "use strict";(globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[]).push([[320],{67:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),c=s(143),n=s(159),l=s(75),a=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s},this.unsubscribe=(0,c.subscribe)((()=>{const t=(0,l.ir)();this.state.isSwitched!==t&&this.setState({isSwitched:t})}))}getInitialState(t){const e=n.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,l.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return n.A.displayIncludingVat(t,e)}getCurrentLabel(){const{labelTextIncl:t,labelTextExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}render(){const{labelTextColor:t,labelTextColorChecked:e,labelTextIncl:s,labelTextExcl:i}=this.props;if(!s&&!i)return"";const c=this.displayIncludingVat();return(0,a.jsx)("span",{className:"wdevs-tax-switch-labels "+(c?"wts-price-incl":"wts-price-excl"),style:{"--wts-text-color":t,"--wts-text-color-checked":e},children:(0,a.jsx)("span",{className:"wdevs-tax-switch-label-text",children:this.getCurrentLabel()})})}}const o=/^(38|733)$/.test(s.j)?r:null},75:(t,e,s)=>{s.d(e,{ WJ:()=>d,ir:()=>o,rj:()=>h});var i=s(143);const c="wdevs_tax_switch_is_switched",n="wdevs-tax-switch/store",l="SET_IS_SWITCHED",a={setIsSwitched:t=>({type:l,value:t}),saveIsSwitched:t=>(localStorage.setItem(c,JSON.stringify(t)),{type:l,value:t})};let r=(0,i.select)(n);function o(){return(0,i.select)(n).getIsSwitched()}function h(t){return(0,i.dispatch)(n).saveIsSwitched(t)}function d(t){return(0,i.dispatch)(n).setIsSwitched(t)}void 0===r&&(r=(0,i.createReduxStore)(n,{reducer:(t=(()=>{const t=localStorage.getItem(c);return{isSwitched:!!t&&JSON.parse(t)}})(),e)=>e.type===l?{...t,isSwitched:e.value}:t,actions:a,selectors:{getIsSwitched:t=>t.isSwitched}}),(0,i.register)(r))},159:(t,e,s)=>{s.d(e,{A:()=>c});var i=s(75);const c=class{static togglePriceClasses(t,e){const s=this.displayIncludingVat(t,e);document.querySelectorAll(".wts-price-wrapper").forEach((t=>{const e=t.querySelector(":scope > .wts-price-incl"),i=t.querySelector(":scope > .wts-price-excl");s?(e.classList.remove("wts-inactive"),e.classList.add("wts-active"),i.classList.remove("wts-active"),i.classList.add("wts-inactive")):(e.classList.remove("wts-active"),e.classList.add("wts-inactive"),i.classList.remove("wts-inactive"),i.classList.add("wts-active"))}))}static displayIncludingVat(t,e){return null==e&&(e=(0,i.ir)()),"incl"===t&&!e||"excl"===t&&e}static parseBooleanValue(t){return!!t&&JSON.parse(t)}static setPriceClasses(t){return this.togglePriceClasses(t,(0,i.ir)())}static calculateAlternatePrice(t,e,s){if(!t||t<=0||!s)return t;const i=1+s/100;let c;return c="incl"===e?t/i:t*i,Number(c.toFixed(2))}}},538:(t,e,s)=>{function i(){return!(window.wtsViewObject||{checkPriceElements:!1}).checkPriceElements||document.querySelectorAll(".wts-price-wrapper").length>0}s.d(e,{I:()=>i})},651:(t,e,s)=>{s.d(e,{A:()=>i});const i=/^(202|38|657|733|793)$/.test(s.j)?null:class{constructor(t){this.originalTaxDisplay=t}build(t,e,s,i=null){const c=this.getPricesBasedOnTaxDisplay(e,s),n=c.including,l=c.excluding;function a(t){return t?"wts-active":"wts-inactive"}function r(e,s){return`\n <span class="wts-price-${s?"incl":"excl"} ${a(s===t)}">\n ${e}\n </span>\n `}let o=`\n <span class="wts-price-container">\n <span class="wts-price-wrapper">\n ${r(n,!0)}\n ${r(l,!1)}\n </span>\n `;if(i){function h(e,s){return`\n <span class="wts-price-${s?"incl":"excl"} ${a(s===t)}">\n ${e}\n </span>\n `}o+=`\n <span class="wts-price-wrapper">\n ${h(i.including,!0)}\n ${h(i.excluding,!1)}\n </span>\n `}return o+="</span>",o.trim()}getPricesBasedOnTaxDisplay(t,e){return"incl"===this.originalTaxDisplay?{including:t,excluding:e}:{including:e,excluding:t}}static getVatTexts(t=null){const e=document.createTextNode(" ").nodeValue;let s,i;if(t){const c=jQuery(t);if(s=c.find(".wts-price-incl .wts-vat-text").first(),i=c.find(".wts-price-excl .wts-vat-text").first(),s.length||i.length)return{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}return s=jQuery(".wts-price-wrapper .wts-price-incl .wts-vat-text").first(),i=jQuery(".wts-price-wrapper .wts-price-excl .wts-vat-text").first(),{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}static getVatTextElement(t,e,s){return`<span class="wts-price-wrapper">\n <span class="wts-price-incl ${t?"wts-active":"wts-inactive"}">\n ${e}\n </span>\n <span class="wts-price-excl ${t?"wts-inactive":"wts-active"}">\n ${s}\n </span>\n </span>\n `}}},983:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),c=s(143),n=s(159),l=s(75),a=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s},this.handleChange=this.handleChange.bind(this),this.unsubscribe=(0,c.subscribe)((()=>{const t=(0,l.ir)();this.state.isSwitched!==t&&this.setState({isSwitched:t})}))}getInitialState(t){const e=n.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,l.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}handleChange(){const t=!this.state.isSwitched;this.setState({isSwitched:t},(()=>{this.state.readOnly?(0,l.WJ)(t):((0,l.rj)(t),this.fireSwitchChangeEvent(t)),this.togglePriceClasses()}))}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return n.A.displayIncludingVat(t,e)}togglePriceClasses(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return n.A.togglePriceClasses(t,e)}getCurrentLabel(){const{switchLabelIncl:t,switchLabelExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}fireSwitchChangeEvent(t){const e=new CustomEvent("wdevs-tax-switch-changed",{detail:{isSwitched:t,displayIncludingVat:this.displayIncludingVat()}});document.dispatchEvent(e)}renderButtons(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:c,switchLabelIncl:n,switchLabelExcl:l}=this.props,r=this.displayIncludingVat();return(0,a.jsxs)("div",{className:"wdevs-tax-switch wdevs-tax-buttons",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":c},children:[(0,a.jsx)("button",{type:"button",className:"wdevs-tax-button "+(r?"wdevs-tax-button-active":""),onClick:()=>{r||this.handleChange()},children:n||"Incl. VAT"}),(0,a.jsx)("button",{type:"button",className:"wdevs-tax-button "+(r?"":"wdevs-tax-button-active"),onClick:()=>{r&&this.handleChange()},children:l||"Excl. VAT"})]})}renderToggleSwitch(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:c,switchLabelIncl:n,switchLabelExcl:l}=this.props,r=this.displayIncludingVat(),o=n||l;return(0,a.jsxs)("div",{className:"wdevs-tax-switch",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":c},children:[(0,a.jsxs)("label",{className:"wdevs-tax-switch-label",children:[(0,a.jsx)("input",{type:"checkbox",name:"wdevs-tax-switch-checkbox",onChange:this.handleChange,checked:r,className:"wdevs-tax-switch-checkbox"}),(0,a.jsx)("span",{className:"wdevs-tax-switch-slider"})]}),o&&(0,a.jsx)("span",{className:"wdevs-tax-switch-label-text",onClick:this.handleChange,children:this.getCurrentLabel()})]})}render(){const{switchType:t="switch"}=this.props;return"buttons"===t?this.renderButtons():this.renderToggleSwitch()}}const o=/^(202|793)$/.test(s.j)?r:null}}]);1 "use strict";(globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[]).push([[320],{67:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),c=s(143),n=s(159),l=s(75),a=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s},this.unsubscribe=(0,c.subscribe)((()=>{const t=(0,l.ir)();this.state.isSwitched!==t&&this.setState({isSwitched:t})}))}getInitialState(t){const e=n.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,l.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return n.A.displayIncludingVat(t,e)}getCurrentLabel(){const{labelTextIncl:t,labelTextExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}render(){const{labelTextColor:t,labelTextColorChecked:e,labelTextIncl:s,labelTextExcl:i}=this.props;if(!s&&!i)return"";const c=this.displayIncludingVat();return(0,a.jsx)("span",{className:"wdevs-tax-switch-labels "+(c?"wts-price-incl":"wts-price-excl"),style:{"--wts-text-color":t,"--wts-text-color-checked":e},children:(0,a.jsx)("span",{className:"wdevs-tax-switch-label-text",children:this.getCurrentLabel()})})}}const o=/^(38|733)$/.test(s.j)?r:null},75:(t,e,s)=>{s.d(e,{D_:()=>w,WJ:()=>u,ir:()=>d,rj:()=>h,z6:()=>p});var i=s(143);const c="wdevs_tax_switch_is_switched",n="wdevs-tax-switch/store",l="SET_IS_SWITCHED",a="SET_IS_DISABLED",r={setIsSwitched:t=>({type:l,value:t}),saveIsSwitched:t=>(localStorage.setItem(c,JSON.stringify(t)),{type:l,value:t}),setIsDisabled:t=>({type:a,value:t})};let o=(0,i.select)(n);function d(){return(0,i.select)(n).getIsSwitched()}function h(t){return(0,i.dispatch)(n).saveIsSwitched(t)}function u(t){return(0,i.dispatch)(n).setIsSwitched(t)}function w(){return(0,i.select)(n).getIsDisabled()}function p(t){return(0,i.dispatch)(n).setIsDisabled(t)}void 0===o&&(o=(0,i.createReduxStore)(n,{reducer:(t=(()=>{const t=localStorage.getItem(c);return{isSwitched:!!t&&JSON.parse(t),isDisabled:!1}})(),e)=>{switch(e.type){case l:return{...t,isSwitched:e.value};case a:return{...t,isDisabled:e.value};default:return t}},actions:r,selectors:{getIsSwitched:t=>t.isSwitched,getIsDisabled:t=>t.isDisabled}}),(0,i.register)(o))},159:(t,e,s)=>{s.d(e,{A:()=>c});var i=s(75);const c=class{static togglePriceClasses(t,e){const s=this.displayIncludingVat(t,e);document.querySelectorAll(".wts-price-wrapper").forEach((t=>{const e=t.querySelector(":scope > .wts-price-incl"),i=t.querySelector(":scope > .wts-price-excl");s?(e.classList.remove("wts-inactive"),e.classList.add("wts-active"),i.classList.remove("wts-active"),i.classList.add("wts-inactive")):(e.classList.remove("wts-active"),e.classList.add("wts-inactive"),i.classList.remove("wts-inactive"),i.classList.add("wts-active"))}))}static displayIncludingVat(t,e){return null==e&&(e=(0,i.ir)()),"incl"===t&&!e||"excl"===t&&e}static parseBooleanValue(t){return!!t&&JSON.parse(t)}static setPriceClasses(t){return this.togglePriceClasses(t,(0,i.ir)())}static calculateAlternatePrice(t,e,s){if(!t||t<=0||!s)return t;const i=1+s/100;let c;return c="incl"===e?t/i:t*i,Number(c.toFixed(2))}static calculateOriginalPrice(t,e,s){let i="excl";return"excl"===e&&(i="incl"),this.calculateAlternatePrice(t,i,s)}}},538:(t,e,s)=>{function i(){return!(window.wtsViewObject||{checkPriceElements:!1}).checkPriceElements||document.querySelectorAll(".wts-price-wrapper").length>0}s.d(e,{I:()=>i})},651:(t,e,s)=>{s.d(e,{A:()=>i});const i=/^(202|38|657|733|793|894)$/.test(s.j)?null:class{constructor(t){this.originalTaxDisplay=t}build(t,e,s,i=null){const c=this.getPricesBasedOnTaxDisplay(e,s),n=c.including,l=c.excluding;function a(t){return t?"wts-active":"wts-inactive"}function r(e,s){return`\n <span class="wts-price-${s?"incl":"excl"} ${a(s===t)}">\n ${e}\n </span>\n `}let o=`\n <span class="wts-price-container">\n <span class="wts-price-wrapper">\n ${r(n,!0)}\n ${r(l,!1)}\n </span>\n `;if(i){function d(e,s){return`\n <span class="wts-price-${s?"incl":"excl"} ${a(s===t)}">\n ${e}\n </span>\n `}o+=`\n <span class="wts-price-wrapper">\n ${d(i.including,!0)}\n ${d(i.excluding,!1)}\n </span>\n `}return o+="</span>",o.trim()}getPricesBasedOnTaxDisplay(t,e){return"incl"===this.originalTaxDisplay?{including:t,excluding:e}:{including:e,excluding:t}}static getVatTexts(t=null){const e=document.createTextNode(" ").nodeValue;let s,i;if(t){const c=jQuery(t);if(s=c.find(".wts-price-incl .wts-vat-text").first(),i=c.find(".wts-price-excl .wts-vat-text").first(),s.length||i.length)return{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}return s=jQuery(".wts-price-wrapper .wts-price-incl .wts-vat-text").first(),i=jQuery(".wts-price-wrapper .wts-price-excl .wts-vat-text").first(),{including:s.length?e+s.clone().prop("outerHTML"):"",excluding:i.length?e+i.clone().prop("outerHTML"):""}}static getVatTextElement(t,e,s){return`<span class="wts-price-wrapper">\n <span class="wts-price-incl ${t?"wts-active":"wts-inactive"}">\n ${e}\n </span>\n <span class="wts-price-excl ${t?"wts-inactive":"wts-active"}">\n ${s}\n </span>\n </span>\n `}}},983:(t,e,s)=>{s.d(e,{A:()=>o});var i=s(87),c=s(143),n=s(159),l=s(75),a=s(790);class r extends i.Component{constructor(t){super(t);const{readOnly:e,isSwitched:s}=this.getInitialState(t);this.state={readOnly:e,isSwitched:s,isDisabled:(0,l.D_)()},this.handleChange=this.handleChange.bind(this),this.unsubscribe=(0,c.subscribe)((()=>{const t=(0,l.ir)(),e=(0,l.D_)();this.state.isSwitched===t&&this.state.isDisabled===e||this.setState({isSwitched:t,isDisabled:e})}))}getInitialState(t){const e=n.A.parseBooleanValue(t.readOnly),s=t.originalTaxDisplay||"incl";let i;return i=e?!("incl"===s):(0,l.ir)(),{readOnly:e,isSwitched:i}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe()}handleChange(){const t=!this.state.isSwitched;this.setState({isSwitched:t},(()=>{this.state.readOnly?(0,l.WJ)(t):((0,l.rj)(t),this.fireSwitchChangeEvent(t)),this.togglePriceClasses()}))}displayIncludingVat(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return n.A.displayIncludingVat(t,e)}togglePriceClasses(){const{originalTaxDisplay:t="incl"}=this.props,{isSwitched:e}=this.state;return n.A.togglePriceClasses(t,e)}getCurrentLabel(){const{switchLabelIncl:t,switchLabelExcl:e}=this.props;return this.displayIncludingVat()?t||"":e||""}fireSwitchChangeEvent(t){const e=new CustomEvent("wdevs-tax-switch-changed",{detail:{isSwitched:t,displayIncludingVat:this.displayIncludingVat()}});document.dispatchEvent(e)}renderButtons(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:c,switchLabelIncl:n,switchLabelExcl:l}=this.props,r=this.displayIncludingVat(),{isDisabled:o}=this.state;return(0,a.jsxs)("div",{className:"wdevs-tax-switch wdevs-tax-buttons",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":c},children:[(0,a.jsx)("button",{type:"button",className:"wdevs-tax-button "+(r?"wdevs-tax-button-active":""),disabled:o,onClick:()=>{r||this.handleChange()},children:n||"Incl. VAT"}),(0,a.jsx)("button",{type:"button",className:"wdevs-tax-button "+(r?"":"wdevs-tax-button-active"),disabled:o,onClick:()=>{r&&this.handleChange()},children:l||"Excl. VAT"})]})}renderToggleSwitch(){const{switchColor:t,switchColorChecked:e,switchBackgroundColor:s,switchBackgroundColorChecked:i,switchTextColor:c,switchLabelIncl:n,switchLabelExcl:l}=this.props,r=this.displayIncludingVat(),o=n||l,{isDisabled:d}=this.state;return(0,a.jsxs)("div",{className:"wdevs-tax-switch",style:{"--wts-color":t,"--wts-color-checked":e,"--wts-bg-color":s,"--wts-bg-color-checked":i,"--wts-text-color":c},children:[(0,a.jsxs)("label",{className:"wdevs-tax-switch-label",children:[(0,a.jsx)("input",{type:"checkbox",name:"wdevs-tax-switch-checkbox",onChange:this.handleChange,checked:r,disabled:d,className:"wdevs-tax-switch-checkbox"}),(0,a.jsx)("span",{className:"wdevs-tax-switch-slider"})]}),o&&(0,a.jsx)("span",{className:"wdevs-tax-switch-label-text",onClick:this.handleChange,children:this.getCurrentLabel()})]})}render(){const{switchType:t="switch"}=this.props;return"buttons"===t?this.renderButtons():this.renderToggleSwitch()}}const o=/^(202|793)$/.test(s.j)?r:null}}]); -
tax-switch-for-woocommerce/trunk/build/switch/block.json
r3375917 r3384402 3 3 "apiVersion": 3, 4 4 "name": "wdevs/tax-switch", 5 "version": "1. 5.19",5 "version": "1.6.0", 6 6 "title": "Tax Switch for WooCommerce", 7 7 "category": "woocommerce", -
tax-switch-for-woocommerce/trunk/build/switch/view.asset.php
r3375917 r3384402 1 <?php return array('dependencies' => array('jquery', 'react-jsx-runtime', 'wp-data', 'wp-element'), 'version' => ' c1ac56f7d40228844590');1 <?php return array('dependencies' => array('jquery', 'react-jsx-runtime', 'wp-data', 'wp-element'), 'version' => '233044ced87de3d98442'); -
tax-switch-for-woocommerce/trunk/build/switch/view.js
r3375917 r3384402 1 (()=>{"use strict";var e,t={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},617:(e,t, a)=>{var s=a(87),o=a(983),n=a(159);const r=window.jQuery;var i=a.n(r);const c=class{static initialize(e){this.registerWooCommerceEvents(e)}static registerWooCommerceEvents(e){i()(".variations_form").on("show_variation",(function(){setTimeout((function(){n.A.setPriceClasses(e)}),10)})),i()(".variations_form").on("reset_data",(function(){setTimeout((function(){n.A.setPriceClasses(e)}),10)})),i()(document).ajaxSuccess((function(t,a,s){s&&s.data&&["get_variable_product_bulk_table"].some((e=>s.data.includes(e)))&&setTimeout((function(){n.A.setPriceClasses(e)}),10)})),["jet-engine/listing-grid/after-load-more","facetwp-loaded","experimental-flatsome-pjax-request-done","flatsome-relay-request-done","flatsome-infiniteScroll-append","vpd_after_price_fadein","awsShowingResults","wc_fragments_loaded","pjax:success"].forEach((function(t){i()(document).on(t,(function(t,a){n.A.setPriceClasses(e)}))}))}};var l=a(538),d=a(790);let u=!1;const f=()=>{if(!(0,l.I)())return;const e=document.querySelectorAll(".wp-block-wdevs-tax-switch");if(e.length>0){const t=window.wtsViewObject||{originalTaxDisplay:"incl"};(e=>{n.A.setPriceClasses(e.originalTaxDisplay),u||(c.initialize(e.originalTaxDisplay),u=!0)})(t),e.forEach((e=>{e&&((e,t)=>{const a={...e.dataset,...t};(0,s.createRoot)(e).render((0,d.jsx)(s.Suspense,{fallback:(0,d.jsx)("div",{className:"wp-block-placeholder"}),children:(0,d.jsx)(o.A,{...a})}))})(e,t)}))}};window.addEventListener("DOMContentLoaded",(()=>{f()})),document.addEventListener("wdevs-tax-switch-appeared",(()=>{f()}))},790:e=>{e.exports=window.ReactJSXRuntime}},a={};function s(e){var o=a[e];if(void 0!==o)return o.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,s),n.exports}s.m=t,e=[],s.O=(t,a,o,n)=>{if(!a){var r=1/0;for(d=0;d<e.length;d++){for(var[a,o,n]=e[d],i=!0,c=0;c<a.length;c++)(!1&n||r>=n)&&Object.keys(s.O).every((e=>s.O[e](a[c])))?a.splice(c--,1):(i=!1,n<r&&(r=n));if(i){e.splice(d--,1);var l=o();void 0!==l&&(t=l)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[a,o,n]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.j=793,(()=>{var e={793:0};s.O.j=t=>0===e[t];var t=(t,a)=>{var o,n,[r,i,c]=a,l=0;if(r.some((t=>0!==e[t]))){for(o in i)s.o(i,o)&&(s.m[o]=i[o]);if(c)var d=c(s)}for(t&&t(a);l<r.length;l++)n=r[l],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return s.O(d)},a=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var o=s.O(void 0,[320],(()=>s(617)));o=s.O(o)})();1 (()=>{"use strict";var e,t={87:e=>{e.exports=window.wp.element},143:e=>{e.exports=window.wp.data},617:(e,t,s)=>{var a=s(87),o=s(983),i=s(159);const n=window.jQuery;var r=s.n(n);const c=class{static initialize(e){this.registerWooCommerceEvents(e)}static registerWooCommerceEvents(e){r()(".variations_form").on("show_variation",(function(){setTimeout((function(){i.A.setPriceClasses(e)}),10)})),r()(".variations_form").on("reset_data",(function(){setTimeout((function(){i.A.setPriceClasses(e)}),10)})),r()(document).ajaxSuccess((function(t,s,a){a&&a.data&&["get_variable_product_bulk_table"].some((e=>a.data.includes(e)))&&setTimeout((function(){i.A.setPriceClasses(e)}),10)})),["jet-engine/listing-grid/after-load-more","facetwp-loaded","experimental-flatsome-pjax-request-done","flatsome-relay-request-done","flatsome-infiniteScroll-append","vpd_after_price_fadein","awsShowingResults","wc_fragments_loaded","pjax:success","fibosearch/show-suggestions"].forEach((function(t){r()(document).on(t,(function(t,s){i.A.setPriceClasses(e)}))}))}};var l=s(538),d=s(790);let u=!1;const f=()=>{if(!(0,l.I)())return;const e=document.querySelectorAll(".wp-block-wdevs-tax-switch");if(e.length>0){const t=window.wtsViewObject||{originalTaxDisplay:"incl"};(e=>{i.A.setPriceClasses(e.originalTaxDisplay),u||(c.initialize(e.originalTaxDisplay),u=!0)})(t),e.forEach((e=>{e&&((e,t)=>{const s={...e.dataset,...t};(0,a.createRoot)(e).render((0,d.jsx)(a.Suspense,{fallback:(0,d.jsx)("div",{className:"wp-block-placeholder"}),children:(0,d.jsx)(o.A,{...s})}))})(e,t)}))}};window.addEventListener("DOMContentLoaded",(()=>{f()})),document.addEventListener("wdevs-tax-switch-appeared",(()=>{f()}))},790:e=>{e.exports=window.ReactJSXRuntime}},s={};function a(e){var o=s[e];if(void 0!==o)return o.exports;var i=s[e]={exports:{}};return t[e](i,i.exports,a),i.exports}a.m=t,e=[],a.O=(t,s,o,i)=>{if(!s){var n=1/0;for(d=0;d<e.length;d++){for(var[s,o,i]=e[d],r=!0,c=0;c<s.length;c++)(!1&i||n>=i)&&Object.keys(a.O).every((e=>a.O[e](s[c])))?s.splice(c--,1):(r=!1,i<n&&(n=i));if(r){e.splice(d--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[s,o,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.j=793,(()=>{var e={793:0};a.O.j=t=>0===e[t];var t=(t,s)=>{var o,i,[n,r,c]=s,l=0;if(n.some((t=>0!==e[t]))){for(o in r)a.o(r,o)&&(a.m[o]=r[o]);if(c)var d=c(a)}for(t&&t(s);l<n.length;l++)i=n[l],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(d)},s=globalThis.webpackChunkwdevs_tax_switch=globalThis.webpackChunkwdevs_tax_switch||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var o=a.O(void 0,[320],(()=>a(617)));o=a.O(o)})(); -
tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch-compatibility.php
r3367825 r3384402 168 168 $ffilters_asset = $this->enqueue_script($ffilters_handle, 'switch', 'fibofilters', [ 'fibofilters' ]); 169 169 } 170 171 // WoodMart theme 172 if ( $this->is_theme_active( 'woodmart' ) ) { 173 $woodmart_handle = 'wdevs-tax-switch-woodmart-theme'; 174 $woodmart_asset = $this->enqueue_script( $woodmart_handle, 'switch', 'woodmart-theme' ); 175 } 176 177 // FacetWP 178 if ( $this->is_plugin_active( 'facetwp/index.php' ) ) { 179 $facetwp_handle = 'wdevs-tax-switch-facetwp'; 180 $facetwp_asset = $this->enqueue_script( $facetwp_handle, 'switch', 'facetwp' ); 181 182 // Estimate tax rate for FacetWP (no specific product context available) 183 $estimated_tax_rate = $this->estimate_tax_rate(); 184 185 wp_localize_script( 186 $facetwp_handle, 187 'wtsCompatibilityObject', 188 [ 'baseTaxRate' => $estimated_tax_rate ] 189 ); 190 } 170 191 } 171 192 … … 203 224 */ 204 225 public function render_wapf_pricing_hint( $original_output, $product, $amount, $type, $field = null, $option = null ) { 205 if ( $this->is_in_cart_or_checkout() ) {226 if ( $this->is_in_cart_or_checkout() && ! $this->should_switch_in_mini_cart() ) { 206 227 return $original_output; 207 228 } … … 294 315 } 295 316 317 /** 318 * Filters FacetWP slider facet render arguments to add VAT label text to price sliders 319 * 320 * @param array $args Facet render arguments containing facet settings 321 * 322 * @return array Modified render arguments with VAT label text added to suffix 323 * @since 1.6.0 324 */ 325 public function filter_facetwp_slider_label( $args ) { 326 // Only process slider facets 327 if ( ! isset( $args['facet']['type'] ) || $args['facet']['type'] !== 'slider' ) { 328 return $args; 329 } 330 331 // Only process WooCommerce price-related sources 332 $price_sources = [ 'woo/price', 'woo/sale_price', 'woo/regular_price' ]; 333 if ( ! isset( $args['facet']['source'] ) || ! in_array( $args['facet']['source'], $price_sources ) ) { 334 return $args; 335 } 336 337 $shop_prices_include_tax = $this->shop_displays_price_including_tax_by_default(); 338 339 // Get VAT text options 340 $incl_vat_text = $this->get_option_text( 'wdevs_tax_switch_incl_vat', __( 'Incl. VAT', 'tax-switch-for-woocommerce' ) ); 341 $excl_vat_text = $this->get_option_text( 'wdevs_tax_switch_excl_vat', __( 'Excl. VAT', 'tax-switch-for-woocommerce' ) ); 342 343 if ( $shop_prices_include_tax ) { 344 $vat_text = $incl_vat_text; 345 $alternate_vat_text = $excl_vat_text; 346 } else { 347 $vat_text = $excl_vat_text; 348 $alternate_vat_text = $incl_vat_text; 349 } 350 351 // Get current suffix (may be empty) 352 $current_suffix = isset( $args['facet']['suffix'] ) ? $args['facet']['suffix'] : ''; 353 354 // Wrap the suffix with VAT label text 355 $args['facet']['suffix'] = $this->wrap_price_displays( 356 $current_suffix, 357 $shop_prices_include_tax, 358 $vat_text, 359 $alternate_vat_text 360 ); 361 362 return $args; 363 } 364 365 /** 366 * Enable dynamic price loading for FiboSearch to ensure tax-inclusive/exclusive prices are calculated based on the current customer. Normally, The price is saved in the search index statically. 367 * 368 * @param bool $loadDynamically Current dynamic loading state. 369 * @return bool Always true to force dynamic price loading. 370 * @since 1.6.0 371 */ 372 public function enable_ajax_search_for_woocommerce_dynamic_prices($loadDynamically){ 373 return true; 374 } 375 296 376 } -
tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch-woocommerce.php
r3332349 r3384402 151 151 if ( ! empty( $this->current_section ) ) { 152 152 add_action( 'woocommerce_update_options_wdevs_tax_switch_' . $this->current_section, array( 153 $this,154 'update_settings'153 $this, 154 'update_settings' 155 155 ) ); 156 156 } else { … … 167 167 public function get_sections() { 168 168 return array( 169 '' => __( 'Settings', 'tax-switch-for-woocommerce' ),170 'shortcode' => __( 'Shortcode', 'tax-switch-for-woocommerce' ),169 '' => __( 'Settings', 'tax-switch-for-woocommerce' ), 170 'shortcode' => __( 'Shortcode', 'tax-switch-for-woocommerce' ), 171 171 ); 172 172 } … … 225 225 $text = sprintf( 226 226 /* translators: %s: Link to author site. */ 227 __( 'Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.', 'tax-switch-for-woocommerce' ),228 '<a href="https://products.wijnberg.dev" target="_blank" rel="noopener">Wijnberg Developments</a>'227 __( 'Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.', 'tax-switch-for-woocommerce' ), 228 '<a href="https://products.wijnberg.dev" target="_blank" rel="noopener">Wijnberg Developments</a>' 229 229 ); 230 230 … … 240 240 private function get_main_settings() { 241 241 $settings = array( 242 array(243 'name' => __( 'Tax switch settings', 'tax-switch-for-woocommerce' ),244 'type' => 'title',245 'desc' => __( 'Customize the tax switch settings.', 'tax-switch-for-woocommerce' ),246 'id' => 'wdevs_tax_switch_section_title'247 ),248 array(249 'name' => __( 'Including VAT text', 'tax-switch-for-woocommerce' ),250 'type' => 'text',251 'desc' => __( 'Text to append to prices including VAT.', 'tax-switch-for-woocommerce' ),252 'id' => 'wdevs_tax_switch_incl_vat',253 'placeholder' => __( 'Incl. VAT', 'tax-switch-for-woocommerce' )254 ),255 array(256 'name' => __( 'Excluding VAT text', 'tax-switch-for-woocommerce' ),257 'type' => 'text',258 'desc' => __( 'Text to append to prices excluding VAT.', 'tax-switch-for-woocommerce' ),259 'id' => 'wdevs_tax_switch_excl_vat',260 'placeholder' => __( 'Excl. VAT', 'tax-switch-for-woocommerce' )261 ),242 array( 243 'name' => __( 'Tax switch settings', 'tax-switch-for-woocommerce' ), 244 'type' => 'title', 245 'desc' => __( 'Customize the tax switch settings.', 'tax-switch-for-woocommerce' ), 246 'id' => 'wdevs_tax_switch_section_title' 247 ), 248 array( 249 'name' => __( 'Including VAT text', 'tax-switch-for-woocommerce' ), 250 'type' => 'text', 251 'desc' => __( 'Text to append to prices including VAT.', 'tax-switch-for-woocommerce' ), 252 'id' => 'wdevs_tax_switch_incl_vat', 253 'placeholder' => __( 'Incl. VAT', 'tax-switch-for-woocommerce' ) 254 ), 255 array( 256 'name' => __( 'Excluding VAT text', 'tax-switch-for-woocommerce' ), 257 'type' => 'text', 258 'desc' => __( 'Text to append to prices excluding VAT.', 'tax-switch-for-woocommerce' ), 259 'id' => 'wdevs_tax_switch_excl_vat', 260 'placeholder' => __( 'Excl. VAT', 'tax-switch-for-woocommerce' ) 261 ), 262 262 // Added in 1.5.1, removed in 1.5.2 263 263 // array( … … 268 268 // 'default' => 'no' 269 269 // ), 270 array( 271 'title' => __( 'Where enabled', 'tax-switch-for-woocommerce' ), 272 'type' => 'radio', 273 'id' => 'wdevs_tax_switch_location', 274 'default' => 'all', 275 'options' => array( 276 'all' => __( 'On all pages', 'tax-switch-for-woocommerce' ), 277 'woocommerce' => __( 'Only on WooCommerce pages', 'tax-switch-for-woocommerce' ), 278 'prices' => __( 'Only on pages displaying prices', 'tax-switch-for-woocommerce' ), 279 ), 280 'desc_tip' => __( 'WooCommerce pages include: product archives/categories, single product pages and account pages.', 'tax-switch-for-woocommerce' ), 281 'desc' => '<strong>' . __( 'On all pages', 'tax-switch-for-woocommerce' ) . ':</strong> ' . __( 'On all pages where a Tax Switch block/shortcode is placed.', 'tax-switch-for-woocommerce' ) . '<br/>' . 282 '<strong>' . __( 'Only on WooCommerce pages', 'tax-switch-for-woocommerce' ) . ':</strong> ' . __( 'Hidden on pages that are not part of the store. Stops rendering completely.', 'tax-switch-for-woocommerce' ) . '<br/>' . 283 '<strong>' . __( 'Only on pages displaying prices', 'tax-switch-for-woocommerce' ) . ':</strong> ' . __( 'Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).', 'tax-switch-for-woocommerce' ) . '<br/><br/>' . 284 '<strong>' . __( 'Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.', 'tax-switch-for-woocommerce' ) . '</strong>', 285 'desc_at_end' => true, 270 array( 271 'title' => __( 'Where enabled', 'tax-switch-for-woocommerce' ), 272 'type' => 'radio', 273 'id' => 'wdevs_tax_switch_location', 274 'default' => 'all', 275 'options' => array( 276 'all' => __( 'On all pages', 'tax-switch-for-woocommerce' ), 277 'woocommerce' => __( 'Only on WooCommerce pages', 'tax-switch-for-woocommerce' ), 278 'prices' => __( 'Only on pages displaying prices', 'tax-switch-for-woocommerce' ), 286 279 ), 287 array( 288 'type' => 'sectionend', 289 'id' => 'wdevs_tax_switch_section_end' 290 ), 280 'desc_tip' => __( 'WooCommerce pages include: product archives/categories, single product pages and account pages.', 'tax-switch-for-woocommerce' ), 281 'desc' => '<strong>' . __( 'On all pages', 'tax-switch-for-woocommerce' ) . ':</strong> ' . __( 'On all pages where a Tax Switch block/shortcode is placed.', 'tax-switch-for-woocommerce' ) . '<br/>' . 282 '<strong>' . __( 'Only on WooCommerce pages', 'tax-switch-for-woocommerce' ) . ':</strong> ' . __( 'Hidden on pages that are not part of the store. Stops rendering completely.', 'tax-switch-for-woocommerce' ) . '<br/>' . 283 '<strong>' . __( 'Only on pages displaying prices', 'tax-switch-for-woocommerce' ) . ':</strong> ' . __( 'Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).', 'tax-switch-for-woocommerce' ) . '<br/><br/>' . 284 '<strong>' . __( 'Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.', 'tax-switch-for-woocommerce' ) . '</strong>', 285 'desc_at_end' => true, 286 ), 287 array( 288 //added in 1.6.0 289 'name' => __( 'Price switching in mini cart', 'tax-switch-for-woocommerce' ), 290 'type' => 'checkbox', 291 'desc' => __( 'Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.', 'tax-switch-for-woocommerce' ), 292 'desc_tip' => __( 'By default, price switching is disabled in the mini cart to keep cart totals consistent.', 'tax-switch-for-woocommerce' ), 293 'id' => 'wdevs_tax_switch_enable_mini_cart', 294 'default' => 'no' 295 ), 296 array( 297 'type' => 'sectionend', 298 'id' => 'wdevs_tax_switch_section_end' 299 ), 291 300 ); 292 301 … … 302 311 private function get_shortcode_settings() { 303 312 $settings = array( 304 array(305 'name' => __( 'Shortcode settings', 'tax-switch-for-woocommerce' ),306 'type' => 'title',307 'desc' => __( 'Generate a tax switch shortcode.', 'tax-switch-for-woocommerce' ),308 'id' => 'wdevs_tax_switch_section_title'309 ),310 array(311 'type' => 'sectionend',312 'id' => 'wdevs_tax_switch_section_end'313 ),313 array( 314 'name' => __( 'Shortcode settings', 'tax-switch-for-woocommerce' ), 315 'type' => 'title', 316 'desc' => __( 'Generate a tax switch shortcode.', 'tax-switch-for-woocommerce' ), 317 'id' => 'wdevs_tax_switch_section_title' 318 ), 319 array( 320 'type' => 'sectionend', 321 'id' => 'wdevs_tax_switch_section_end' 322 ), 314 323 ); 315 324 -
tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch.php
r3348796 r3384402 236 236 $this->loader->add_filter( 'woocommerce_settings_tabs_array', $plugin_woocommerce, 'add_settings_tab', 50 ); 237 237 $this->loader->add_action( 'woocommerce_settings_tabs_wdevs_tax_switch', $plugin_woocommerce, 'settings_tab' ); 238 $this->loader->add_action( 'woocommerce_after_settings_wdevs_tax_switch', $plugin_woocommerce, 'render_footer_info');238 $this->loader->add_action( 'woocommerce_after_settings_wdevs_tax_switch', $plugin_woocommerce, 'render_footer_info' ); 239 239 } 240 240 } … … 324 324 } 325 325 326 // Product Extras for Woocommerce (WooCommerce Product Add-Ons Ultimate)326 // Product Extras for Woocommerce (WooCommerce Product Add-Ons Ultimate) 327 327 if ( $this->is_plugin_active( 'product-extras-for-woocommerce/product-extras-for-woocommerce.php' ) ) { 328 328 $this->loader->add_filter( … … 334 334 ); 335 335 } 336 337 // FacetWP - Add VAT label to price sliders 338 if ( $this->is_plugin_active( 'facetwp/index.php' ) ) { 339 $this->loader->add_filter( 340 'facetwp_facet_render_args', 341 $plugin_compatibility, 342 'filter_facetwp_slider_label', 343 10, 344 1 345 ); 346 } 347 348 //FiboSearch - AJAX Search for WooCommerce Pro 349 if ( $this->is_plugin_active( 'ajax-search-for-woocommerce-premium/ajax-search-for-woocommerce.php' ) ) { 350 $this->loader->add_filter( 'dgwt/wcas/tnt/dynamic_prices', $plugin_compatibility, 'enable_ajax_search_for_woocommerce_dynamic_prices', 10, 1 ); 351 } 336 352 } 337 353 } … … 475 491 */ 476 492 private function is_doing_ajax() { 477 478 493 if ( function_exists( 'wp_doing_ajax' ) ) { 479 494 return wp_doing_ajax(); 480 } else {481 return ( defined( 'DOING_AJAX' ) && DOING_AJAX ); 482 }495 } 496 497 return ( defined( 'DOING_AJAX' ) && DOING_AJAX ); 483 498 } 484 499 -
tax-switch-for-woocommerce/trunk/includes/trait-wdevs-tax-switch-helper.php
r3374836 r3384402 114 114 115 115 return $tax_rate; 116 } 117 118 /** 119 * Estimate the tax rate without a specific product context 120 * Creates a temporary product with the given tax class to calculate the applicable tax rate 121 * Uses customer location if available, otherwise falls back to shop base location 122 * 123 * @param string $tax_class Tax class (empty string for standard rate) 124 * 125 * @return float Tax rate as percentage (e.g., 21.0 for 21%) 126 * @since 1.6.0 127 */ 128 public function estimate_tax_rate( $tax_class = 'standard' ) { 129 $calculator = new WC_Product_Simple(); 130 $calculator->set_price( 100 ); 131 132 if ( ! empty( $tax_class ) ) { 133 $calculator->set_tax_class( $tax_class ); 134 } 135 136 return $this->get_product_tax_rate( $calculator ); 116 137 } 117 138 … … 271 292 */ 272 293 public function should_hide_on_current_page() { 273 if ( $this->should_hide_on_non_wc_pages() ) { 294 $should_hide = false; 295 296 // During AJAX requests, conditional tags like is_woocommerce() and is_account_page() 297 // don't work reliably because there's no global $post context. 298 // Always allow rendering during AJAX, let JavaScript handle visibility. 299 if ( $this->is_doing_ajax() ) { 300 $should_hide = false; 301 } elseif ( $this->should_hide_on_non_wc_pages() ) { 274 302 if ( ! is_woocommerce() && ! is_account_page() ) { 275 303 //Already always disabled on cart and checkout: && ! is_cart() && ! is_checkout() 276 returntrue;304 $should_hide = true; 277 305 } 278 306 } 279 307 280 return false; 308 /** 309 * Filter whether to hide the tax switch/label on the current page 310 * 311 * Allows developers to override the default visibility logic. 312 * 313 * Use cases: 314 * - Hide on specific pages (e.g., homepage even during AJAX) 315 * - Show on custom post types 316 * - Complex conditional logic based on user roles, etc. 317 * 318 * @since 1.6.0 319 * @param bool $should_hide Whether to hide the component. Default is based on plugin settings. 320 * @return bool True to hide the component, false to show it. 321 */ 322 return apply_filters( 'wdevs_tax_switch_should_hide_on_current_page', $should_hide ); 281 323 } 282 324 … … 347 389 } 348 390 391 /** 392 * Check for AJAX requests. 393 * 394 * @link https://gist.github.com/zitrusblau/58124d4b2c56d06b070573a99f33b9ed#file-lazy-load-responsive-images-php-L193 395 * @since 1.6.0 396 */ 397 public function is_doing_ajax() { 398 if ( function_exists( 'wp_doing_ajax' ) ) { 399 return wp_doing_ajax(); 400 } 401 402 return ( defined( 'DOING_AJAX' ) && DOING_AJAX ); 403 } 404 405 /** 406 * Check if price switching should be allowed in the mini cart. 407 * 408 * @return bool True if we're in mini cart and the setting is enabled, false otherwise. 409 * @since 1.6.0 410 */ 411 public function should_switch_in_mini_cart() { 412 if ( ! Wdevs_Tax_Switch_Mini_Cart_Context::is_in_mini_cart() ) { 413 return false; 414 } 415 416 return get_option( 'wdevs_tax_switch_enable_mini_cart', 'no' ) === 'yes'; 417 } 418 349 419 } -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US-43dcd1c557291b1a502cbd2ea4d36beb.json
r3313868 r3384402 1 {"translation-revision-date": "2025- 06-18 14:43+0200", "generator": "Poedit 3.6", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Labels": ["Labels"], "Label colors": ["Label colors"], "Label excluding VAT color": ["Label excluding VAT color"], "Label including VAT color": ["Label including VAT color"]}}}1 {"translation-revision-date": "2025-10-14 08:01+0200", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Labels": ["Labels"], "Label colors": ["Label colors"], "Label excluding VAT color": ["Label excluding VAT color"], "Label including VAT color": ["Label including VAT color"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US-a7d03486c29d1d1d1553c783663175ae.json
r3313868 r3384402 1 {"translation-revision-date": "2025- 06-18 14:43+0200", "generator": "Poedit 3.6", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Switch type"], "Toggle switch": ["Toggle switch"], "Buttons": ["Buttons"], "Switch color": ["Switch color"], "Switch color checked": ["Switch color checked"], "Background color": ["Background color"], "Background color checked": ["Background color checked"], "Text color": ["Text color"], "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Display options": ["Display options"], "Switch colors": ["Switch colors"], "Switch labels": ["Switch labels"]}}}1 {"translation-revision-date": "2025-10-14 08:01+0200", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "en_US", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Switch type"], "Toggle switch": ["Toggle switch"], "Buttons": ["Buttons"], "Switch color": ["Switch color"], "Switch color checked": ["Switch color checked"], "Background color": ["Background color"], "Background color checked": ["Background color checked"], "Text color": ["Text color"], "Including VAT label": ["Including VAT label"], "Excluding VAT label": ["Excluding VAT label"], "Display options": ["Display options"], "Switch colors": ["Switch colors"], "Switch labels": ["Switch labels"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US.l10n.php
r3313868 r3384402 1 1 <?php 2 2 // generated by Poedit from tax-switch-for-woocommerce-en_US.po, do not edit directly 3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_US','pot-creation-date'=>'2025- 06-18 14:40+0200','po-revision-date'=>'2025-06-18 14:43+0200','translation-revision-date'=>'2025-06-18 14:43+0200','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.6','messages'=>['Settings'=>'Settings','Tax switch shortcode'=>'Tax switch shortcode','Configure shortcode'=>'Configure shortcode','Copy shortcode'=>'Copy shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Copy this shortcode and paste it where you want the tax switch to appear.','Close modal'=>'Close modal','Switch type'=>'Switch type','Toggle switch'=>'Toggle switch','Buttons'=>'Buttons','Switch style'=>'Switch style','Default style'=>'Default style','Inline style'=>'Inline style','Switch color'=>'Switch color','Default'=>'Default','Switch color checked'=>'Switch color checked','Background color'=>'Background color','Background color checked'=>'Background color checked','Text color'=>'Text color','Including VAT label'=>'Including VAT label','Incl. VAT'=>'Incl. VAT','Excluding VAT label'=>'Excluding VAT label','Excl. VAT'=>'Excl. VAT','CSS classes'=>'CSS classes','Options: is-style-default, is-style-inline or/and custom classes'=>'Options: is-style-default, is-style-inline or/and custom classes','Preview'=>'Preview','This is a preview. The actual style depends on your theme.'=>'This is a preview. De daadwerkelijke stijl hangt af van uw thema.','Generate shortcode'=>'Generate shortcode','Copied'=>'Copied','Labels'=>'Labels','Label colors'=>'Label colors','Label excluding VAT color'=>'Label excluding VAT color','Label including VAT color'=>'Label including VAT color','Display options'=>'Display options','Switch colors'=>'Switch colors','Switch labels'=>'Switch labels','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.','Tax switch'=>'Tax switch','Shortcode'=>'Shortcode','Documentation'=>'Documentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.','Tax switch settings'=>'Tax switch settings','Customize the tax switch settings.'=>'Customize the tax switch settings.','Including VAT text'=>'Including VAT text','Text to append to prices including VAT.'=>'Text to append to prices including VAT.','Excluding VAT text'=>'Excluding VAT text','Text to append to prices excluding VAT.'=>'Text to append to prices excluding VAT.','Where enabled'=>'Where enabled','On all pages'=>'On all pages','Only on WooCommerce pages'=>'Only on WooCommerce pages','Only on pages displaying prices'=>'Only on pages displaying prices','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce pages include: product archives/categories, single product pages and account pages.','On all pages where a Tax Switch block/shortcode is placed.'=>'On all pages where a Tax Switch block/shortcode is placed.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Hidden on pages that are not part of the store. Stops rendering completely.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.','Shortcode settings'=>'Shortcode settings','Generate a tax switch shortcode.'=>'Generate a tax switch shortcode.','Tax Switch for WooCommerce'=>'Tax Switch for WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'en_US','pot-creation-date'=>'2025-10-14 08:01+0200','po-revision-date'=>'2025-10-14 08:01+0200','translation-revision-date'=>'2025-10-14 08:01+0200','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Settings','Tax switch shortcode'=>'Tax switch shortcode','Configure shortcode'=>'Configure shortcode','Copy shortcode'=>'Copy shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Copy this shortcode and paste it where you want the tax switch to appear.','Close modal'=>'Close modal','Switch type'=>'Switch type','Toggle switch'=>'Toggle switch','Buttons'=>'Buttons','Switch style'=>'Switch style','Default style'=>'Default style','Inline style'=>'Inline style','Switch color'=>'Switch color','Default'=>'Default','Switch color checked'=>'Switch color checked','Background color'=>'Background color','Background color checked'=>'Background color checked','Text color'=>'Text color','Including VAT label'=>'Including VAT label','Incl. VAT'=>'Incl. VAT','Excluding VAT label'=>'Excluding VAT label','Excl. VAT'=>'Excl. VAT','CSS classes'=>'CSS classes','Options: is-style-default, is-style-inline or/and custom classes'=>'Options: is-style-default, is-style-inline or/and custom classes','Preview'=>'Preview','This is a preview. The actual style depends on your theme.'=>'This is a preview. De daadwerkelijke stijl hangt af van uw thema.','Generate shortcode'=>'Generate shortcode','Copied'=>'Copied','Labels'=>'Labels','Label colors'=>'Label colors','Label excluding VAT color'=>'Label excluding VAT color','Label including VAT color'=>'Label including VAT color','Display options'=>'Display options','Switch colors'=>'Switch colors','Switch labels'=>'Switch labels','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.','Tax switch'=>'Tax switch','Shortcode'=>'Shortcode','Documentation'=>'Documentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.','Tax switch settings'=>'Tax switch settings','Customize the tax switch settings.'=>'Customize the tax switch settings.','Including VAT text'=>'Including VAT text','Text to append to prices including VAT.'=>'Text to append to prices including VAT.','Excluding VAT text'=>'Excluding VAT text','Text to append to prices excluding VAT.'=>'Text to append to prices excluding VAT.','Where enabled'=>'Where enabled','On all pages'=>'On all pages','Only on WooCommerce pages'=>'Only on WooCommerce pages','Only on pages displaying prices'=>'Only on pages displaying prices','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce pages include: product archives/categories, single product pages and account pages.','On all pages where a Tax Switch block/shortcode is placed.'=>'On all pages where a Tax Switch block/shortcode is placed.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Hidden on pages that are not part of the store. Stops rendering completely.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.','Price switching in mini cart'=>'Price switching in mini cart','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.','By default, price switching is disabled in the mini cart to keep cart totals consistent.'=>'By default, price switching is disabled in the mini cart to keep cart totals consistent.','Shortcode settings'=>'Shortcode settings','Generate a tax switch shortcode.'=>'Generate a tax switch shortcode.','Tax Switch for WooCommerce'=>'Tax Switch for WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']]; -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-en_US.po
r3313868 r3384402 2 2 msgstr "" 3 3 "Project-Id-Version: Tax Switch for WooCommerce\n" 4 "POT-Creation-Date: 2025- 06-18 14:40+0200\n"5 "PO-Revision-Date: 2025- 06-18 14:43+0200\n"4 "POT-Creation-Date: 2025-10-14 08:01+0200\n" 5 "PO-Revision-Date: 2025-10-14 08:01+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "X-Generator: Poedit 3. 6\n"12 "X-Generator: Poedit 3.7\n" 13 13 "X-Poedit-Basepath: ..\n" 14 14 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 119 119 #: includes/class-wdevs-tax-switch-block-label.php:64 120 120 #: includes/class-wdevs-tax-switch-block-label.php:82 121 #: includes/class-wdevs-tax-switch-woocommerce.php:25 5121 #: includes/class-wdevs-tax-switch-woocommerce.php:253 122 122 #: public/class-wdevs-tax-switch-public.php:146 123 123 msgid "Incl. VAT" … … 132 132 #: includes/class-wdevs-tax-switch-block-label.php:65 133 133 #: includes/class-wdevs-tax-switch-block-label.php:83 134 #: includes/class-wdevs-tax-switch-woocommerce.php:26 2134 #: includes/class-wdevs-tax-switch-woocommerce.php:260 135 135 #: public/class-wdevs-tax-switch-public.php:147 136 136 msgid "Excl. VAT" … … 205 205 msgstr "Shortcode" 206 206 207 #: includes/class-wdevs-tax-switch-woocommerce.php:20 4207 #: includes/class-wdevs-tax-switch-woocommerce.php:201 208 208 msgid "Documentation" 209 209 msgstr "Documentation" 210 210 211 211 #. translators: %s: Link to author site. 212 #: includes/class-wdevs-tax-switch-woocommerce.php:22 9212 #: includes/class-wdevs-tax-switch-woocommerce.php:227 213 213 #, php-format 214 214 msgid "" … … 219 219 "WooCommerce plugin partner from the Netherlands." 220 220 221 #: includes/class-wdevs-tax-switch-woocommerce.php:24 5221 #: includes/class-wdevs-tax-switch-woocommerce.php:243 222 222 msgid "Tax switch settings" 223 223 msgstr "Tax switch settings" 224 224 225 #: includes/class-wdevs-tax-switch-woocommerce.php:24 7225 #: includes/class-wdevs-tax-switch-woocommerce.php:245 226 226 msgid "Customize the tax switch settings." 227 227 msgstr "Customize the tax switch settings." 228 228 229 #: includes/class-wdevs-tax-switch-woocommerce.php:2 51229 #: includes/class-wdevs-tax-switch-woocommerce.php:249 230 230 msgid "Including VAT text" 231 231 msgstr "Including VAT text" 232 232 233 #: includes/class-wdevs-tax-switch-woocommerce.php:25 3233 #: includes/class-wdevs-tax-switch-woocommerce.php:251 234 234 msgid "Text to append to prices including VAT." 235 235 msgstr "Text to append to prices including VAT." 236 236 237 #: includes/class-wdevs-tax-switch-woocommerce.php:25 8237 #: includes/class-wdevs-tax-switch-woocommerce.php:256 238 238 msgid "Excluding VAT text" 239 239 msgstr "Excluding VAT text" 240 240 241 #: includes/class-wdevs-tax-switch-woocommerce.php:2 60241 #: includes/class-wdevs-tax-switch-woocommerce.php:258 242 242 msgid "Text to append to prices excluding VAT." 243 243 msgstr "Text to append to prices excluding VAT." 244 244 245 #: includes/class-wdevs-tax-switch-woocommerce.php:27 3245 #: includes/class-wdevs-tax-switch-woocommerce.php:271 246 246 msgid "Where enabled" 247 247 msgstr "Where enabled" 248 248 249 #: includes/class-wdevs-tax-switch-woocommerce.php:276 250 #: includes/class-wdevs-tax-switch-woocommerce.php:281 251 msgid "On all pages" 252 msgstr "On all pages" 253 254 #: includes/class-wdevs-tax-switch-woocommerce.php:277 255 #: includes/class-wdevs-tax-switch-woocommerce.php:282 256 msgid "Only on WooCommerce pages" 257 msgstr "Only on WooCommerce pages" 258 249 259 #: includes/class-wdevs-tax-switch-woocommerce.php:278 250 260 #: includes/class-wdevs-tax-switch-woocommerce.php:283 251 msgid "On all pages"252 msgstr "On all pages"253 254 #: includes/class-wdevs-tax-switch-woocommerce.php:279255 #: includes/class-wdevs-tax-switch-woocommerce.php:284256 msgid "Only on WooCommerce pages"257 msgstr "Only on WooCommerce pages"258 259 #: includes/class-wdevs-tax-switch-woocommerce.php:280260 #: includes/class-wdevs-tax-switch-woocommerce.php:285261 261 msgid "Only on pages displaying prices" 262 262 msgstr "Only on pages displaying prices" 263 263 264 #: includes/class-wdevs-tax-switch-woocommerce.php:28 2264 #: includes/class-wdevs-tax-switch-woocommerce.php:280 265 265 msgid "" 266 266 "WooCommerce pages include: product archives/categories, single product pages " … … 270 270 "and account pages." 271 271 272 #: includes/class-wdevs-tax-switch-woocommerce.php:28 3272 #: includes/class-wdevs-tax-switch-woocommerce.php:281 273 273 msgid "On all pages where a Tax Switch block/shortcode is placed." 274 274 msgstr "On all pages where a Tax Switch block/shortcode is placed." 275 275 276 #: includes/class-wdevs-tax-switch-woocommerce.php:28 4276 #: includes/class-wdevs-tax-switch-woocommerce.php:282 277 277 msgid "" 278 278 "Hidden on pages that are not part of the store. Stops rendering completely." … … 280 280 "Hidden on pages that are not part of the store. Stops rendering completely." 281 281 282 #: includes/class-wdevs-tax-switch-woocommerce.php:28 5282 #: includes/class-wdevs-tax-switch-woocommerce.php:283 283 283 msgid "" 284 284 "Hidden on pages that do not display any prices. Renders, but hides the " … … 288 288 "components (slightly slower)." 289 289 290 #: includes/class-wdevs-tax-switch-woocommerce.php:28 6290 #: includes/class-wdevs-tax-switch-woocommerce.php:284 291 291 msgid "" 292 292 "Tax Switch blocks/shortcodes are always hidden on the cart and checkout " … … 296 296 "pages." 297 297 298 #: includes/class-wdevs-tax-switch-woocommerce.php:307 298 #: includes/class-wdevs-tax-switch-woocommerce.php:289 299 msgid "Price switching in mini cart" 300 msgstr "Price switching in mini cart" 301 302 #: includes/class-wdevs-tax-switch-woocommerce.php:291 303 msgid "" 304 "Allow customers to switch between prices including and excluding VAT in the " 305 "default WooCommerce mini cart." 306 msgstr "" 307 "Allow customers to switch between prices including and excluding VAT in the " 308 "default WooCommerce mini cart." 309 310 #: includes/class-wdevs-tax-switch-woocommerce.php:292 311 msgid "" 312 "By default, price switching is disabled in the mini cart to keep cart totals " 313 "consistent." 314 msgstr "" 315 "By default, price switching is disabled in the mini cart to keep cart totals " 316 "consistent." 317 318 #: includes/class-wdevs-tax-switch-woocommerce.php:314 299 319 msgid "Shortcode settings" 300 320 msgstr "Shortcode settings" 301 321 302 #: includes/class-wdevs-tax-switch-woocommerce.php:3 09322 #: includes/class-wdevs-tax-switch-woocommerce.php:316 303 323 msgid "Generate a tax switch shortcode." 304 324 msgstr "Generate a tax switch shortcode." -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL-43dcd1c557291b1a502cbd2ea4d36beb.json
r3313868 r3384402 1 {"translation-revision-date": "2025- 06-18 14:50+0200", "generator": "Poedit 3.6", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Labels": ["Labels"], "Label colors": ["Labelkleuren"], "Label excluding VAT color": ["Label exclusief btw kleur"], "Label including VAT color": ["Label inclusief btw kleur"]}}}1 {"translation-revision-date": "2025-10-14 08:06+0200", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Labels": ["Labels"], "Label colors": ["Labelkleuren"], "Label excluding VAT color": ["Label exclusief btw kleur"], "Label including VAT color": ["Label inclusief btw kleur"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL-a7d03486c29d1d1d1553c783663175ae.json
r3313868 r3384402 1 {"translation-revision-date": "2025- 06-18 14:50+0200", "generator": "Poedit 3.6", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Type schakelaar"], "Toggle switch": ["Schakelaar"], "Buttons": ["Knoppen"], "Switch color": ["Schakelaarkleur"], "Switch color checked": ["Schakelaarkleur ingeschakeld"], "Background color": ["Achtergrondkleur"], "Background color checked": ["Achtergrondkleur ingeschakeld"], "Text color": ["Tekstkleur"], "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Display options": ["Weergave opties"], "Switch colors": ["Schakelaarkleuren"], "Switch labels": ["Schakelaar labels"]}}}1 {"translation-revision-date": "2025-10-14 08:06+0200", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "nl_NL", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Type schakelaar"], "Toggle switch": ["Schakelaar"], "Buttons": ["Knoppen"], "Switch color": ["Schakelaarkleur"], "Switch color checked": ["Schakelaarkleur ingeschakeld"], "Background color": ["Achtergrondkleur"], "Background color checked": ["Achtergrondkleur ingeschakeld"], "Text color": ["Tekstkleur"], "Including VAT label": ["Label inclusief btw"], "Excluding VAT label": ["Label exclusief btw"], "Display options": ["Weergave opties"], "Switch colors": ["Schakelaarkleuren"], "Switch labels": ["Schakelaar labels"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL.l10n.php
r3313868 r3384402 1 1 <?php 2 2 // generated by Poedit from tax-switch-for-woocommerce-nl_NL.po, do not edit directly 3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'nl_NL','pot-creation-date'=>'2025- 06-18 14:43+0200','po-revision-date'=>'2025-06-18 14:50+0200','translation-revision-date'=>'2025-06-18 14:50+0200','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.6','messages'=>['Settings'=>'Instellingen','Tax switch shortcode'=>'Btw-schakelaar shortcode','Configure shortcode'=>'Shortcode configureren','Copy shortcode'=>'Shortcode kopiëren','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopieer de gegenereerde shortcode en plak het waar u de schakelaar wilt weergeven.','Close modal'=>'Popup sluiten','Switch type'=>'Type schakelaar','Toggle switch'=>'Schakelaar','Buttons'=>'Knoppen','Switch style'=>'Stijl schakelaar','Default style'=>'Standaard stijl','Inline style'=>'Inline stijl','Switch color'=>'Schakelaarkleur','Default'=>'Standaard','Switch color checked'=>'Schakelaarkleur ingeschakeld','Background color'=>'Achtergrondkleur','Background color checked'=>'Achtergrondkleur ingeschakeld','Text color'=>'Tekstkleur','Including VAT label'=>'Label inclusief btw','Incl. VAT'=>'Incl. btw','Excluding VAT label'=>'Label exclusief btw','Excl. VAT'=>'Excl. btw','CSS classes'=>'CSS klassen','Options: is-style-default, is-style-inline or/and custom classes'=>'Opties: is-style-default, is-style-inline of/en eigen klassen','Preview'=>'Voorvertoning','This is a preview. The actual style depends on your theme.'=>'Dit is een voorvertoning. De daadwerkelijke stijl wordt door uw thema bepaald.','Generate shortcode'=>'Shortcode genereren','Copied'=>'Gekopieerd','Labels'=>'Labels','Label colors'=>'Labelkleuren','Label excluding VAT color'=>'Label exclusief btw kleur','Label including VAT color'=>'Label inclusief btw kleur','Display options'=>'Weergave opties','Switch colors'=>'Schakelaarkleuren','Switch labels'=>'Schakelaar labels','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Deze plugin vereist WooCommerce. Installeer en activeer WooCommerce voordat u deze plugin activeert.','Tax switch'=>'Btw-schakelaar','Shortcode'=>'Shortcode','Documentation'=>'Documentatie','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Btw-schakelaar voor Woocommerce is ontwikkeld door %s. Uw betrouwbare WordPress & WooCommerce pluginpartner uit Nederland.','Tax switch settings'=>'Btw-schakelaar instellingen','Customize the tax switch settings.'=>'Pas de instellingen van de btw-schakelaar aan.','Including VAT text'=>'Tekst inclusief btw','Text to append to prices including VAT.'=>'Tekst om toe te voegen aan prijzen inclusief btw.','Excluding VAT text'=>'Tekst exclusief btw','Text to append to prices excluding VAT.'=>'Tekst om toe te voegen aan prijzen exclusief btw.','Where enabled'=>'Waar ingeschakeld','On all pages'=>'Op alle pagina\'s','Only on WooCommerce pages'=>'Alleen op WooCommerce-pagina\'s','Only on pages displaying prices'=>'Alleen op pagina\'s met prijzen','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-pagina\'s zijn: productarchieven/categorieën, individuele productpagina\'s en accountpagina\'s.','On all pages where a Tax Switch block/shortcode is placed.'=>'Op elke pagina waar een btw-schakelaar block/shortcode is geplaatst.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Verborgen op pagina\'s die niet onderdeel zijn van de webshop. Stopt het renderen volledig.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Verborgen op pagina\'s die geen prijzen weergeven. Wordt gerenderd, maar verborgen (iets langzamer).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>' Btw-schakelaar blocks/shortcodes zijn altijd verborgen op de winkelwagen- en afrekenpagina\'s.','Shortcode settings'=>'Shortcode instellingen','Generate a tax switch shortcode.'=>'Genereer een btw-schakelaar shortcode.','Tax Switch for WooCommerce'=>'Btw-schakelaar voor Woocommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Laat klanten schakelen tussen prijzen inclusief en exclusief btw in uw WooCommerce webshop.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'nl_NL','pot-creation-date'=>'2025-10-14 08:02+0200','po-revision-date'=>'2025-10-14 08:06+0200','translation-revision-date'=>'2025-10-14 08:06+0200','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Instellingen','Tax switch shortcode'=>'Btw-schakelaar shortcode','Configure shortcode'=>'Shortcode configureren','Copy shortcode'=>'Shortcode kopiëren','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopieer de gegenereerde shortcode en plak het waar u de schakelaar wilt weergeven.','Close modal'=>'Popup sluiten','Switch type'=>'Type schakelaar','Toggle switch'=>'Schakelaar','Buttons'=>'Knoppen','Switch style'=>'Stijl schakelaar','Default style'=>'Standaard stijl','Inline style'=>'Inline stijl','Switch color'=>'Schakelaarkleur','Default'=>'Standaard','Switch color checked'=>'Schakelaarkleur ingeschakeld','Background color'=>'Achtergrondkleur','Background color checked'=>'Achtergrondkleur ingeschakeld','Text color'=>'Tekstkleur','Including VAT label'=>'Label inclusief btw','Incl. VAT'=>'Incl. btw','Excluding VAT label'=>'Label exclusief btw','Excl. VAT'=>'Excl. btw','CSS classes'=>'CSS klassen','Options: is-style-default, is-style-inline or/and custom classes'=>'Opties: is-style-default, is-style-inline of/en eigen klassen','Preview'=>'Voorvertoning','This is a preview. The actual style depends on your theme.'=>'Dit is een voorvertoning. De daadwerkelijke stijl wordt door uw thema bepaald.','Generate shortcode'=>'Shortcode genereren','Copied'=>'Gekopieerd','Labels'=>'Labels','Label colors'=>'Labelkleuren','Label excluding VAT color'=>'Label exclusief btw kleur','Label including VAT color'=>'Label inclusief btw kleur','Display options'=>'Weergave opties','Switch colors'=>'Schakelaarkleuren','Switch labels'=>'Schakelaar labels','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Deze plugin vereist WooCommerce. Installeer en activeer WooCommerce voordat u deze plugin activeert.','Tax switch'=>'Btw-schakelaar','Shortcode'=>'Shortcode','Documentation'=>'Documentatie','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Btw-schakelaar voor Woocommerce is ontwikkeld door %s. Uw betrouwbare WordPress & WooCommerce pluginpartner uit Nederland.','Tax switch settings'=>'Btw-schakelaar instellingen','Customize the tax switch settings.'=>'Pas de instellingen van de btw-schakelaar aan.','Including VAT text'=>'Tekst inclusief btw','Text to append to prices including VAT.'=>'Tekst om toe te voegen aan prijzen inclusief btw.','Excluding VAT text'=>'Tekst exclusief btw','Text to append to prices excluding VAT.'=>'Tekst om toe te voegen aan prijzen exclusief btw.','Where enabled'=>'Waar ingeschakeld','On all pages'=>'Op alle pagina\'s','Only on WooCommerce pages'=>'Alleen op WooCommerce-pagina\'s','Only on pages displaying prices'=>'Alleen op pagina\'s met prijzen','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-pagina\'s zijn: productarchieven/categorieën, individuele productpagina\'s en accountpagina\'s.','On all pages where a Tax Switch block/shortcode is placed.'=>'Op elke pagina waar een btw-schakelaar block/shortcode is geplaatst.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Verborgen op pagina\'s die niet onderdeel zijn van de webshop. Stopt het renderen volledig.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Verborgen op pagina\'s die geen prijzen weergeven. Wordt gerenderd, maar verborgen (iets langzamer).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>' Btw-schakelaar blocks/shortcodes zijn altijd verborgen op de winkelwagen- en afrekenpagina\'s.','Price switching in mini cart'=>'Prijs aanpassingen in de mini winkelwagen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'Geef klanten de mogelijkheid om te wisselen tussen prijzen inclusief en exclusief btw in de standaard WooCommerce mini-winkelwagen.','By default, price switching is disabled in the mini cart to keep cart totals consistent.'=>'Standaard is het omwisselen van prijzen in de mini winkelwagen uitgeschakeld om de winkelwagentotalen consistent te houden.','Shortcode settings'=>'Shortcode instellingen','Generate a tax switch shortcode.'=>'Genereer een btw-schakelaar shortcode.','Tax Switch for WooCommerce'=>'Btw-schakelaar voor Woocommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Laat klanten schakelen tussen prijzen inclusief en exclusief btw in uw WooCommerce webshop.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']]; -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-nl_NL.po
r3313868 r3384402 3 3 "Project-Id-Version: Tax Switch for WooCommerce\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2025- 06-18 14:43+0200\n"6 "PO-Revision-Date: 2025- 06-18 14:50+0200\n"5 "POT-Creation-Date: 2025-10-14 08:02+0200\n" 6 "PO-Revision-Date: 2025-10-14 08:06+0200\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: \n" … … 11 11 "Content-Type: text/plain; charset=UTF-8\n" 12 12 "Content-Transfer-Encoding: 8bit\n" 13 "X-Generator: Poedit 3. 6\n"13 "X-Generator: Poedit 3.7\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 121 121 #: includes/class-wdevs-tax-switch-block-label.php:64 122 122 #: includes/class-wdevs-tax-switch-block-label.php:82 123 #: includes/class-wdevs-tax-switch-woocommerce.php:25 5123 #: includes/class-wdevs-tax-switch-woocommerce.php:253 124 124 #: public/class-wdevs-tax-switch-public.php:146 125 125 msgid "Incl. VAT" … … 134 134 #: includes/class-wdevs-tax-switch-block-label.php:65 135 135 #: includes/class-wdevs-tax-switch-block-label.php:83 136 #: includes/class-wdevs-tax-switch-woocommerce.php:26 2136 #: includes/class-wdevs-tax-switch-woocommerce.php:260 137 137 #: public/class-wdevs-tax-switch-public.php:147 138 138 msgid "Excl. VAT" … … 209 209 msgstr "Shortcode" 210 210 211 #: includes/class-wdevs-tax-switch-woocommerce.php:20 4211 #: includes/class-wdevs-tax-switch-woocommerce.php:201 212 212 msgid "Documentation" 213 213 msgstr "Documentatie" 214 214 215 215 #. translators: %s: Link to author site. 216 #: includes/class-wdevs-tax-switch-woocommerce.php:22 9216 #: includes/class-wdevs-tax-switch-woocommerce.php:227 217 217 #, php-format 218 218 msgid "" … … 223 223 "WordPress & WooCommerce pluginpartner uit Nederland." 224 224 225 #: includes/class-wdevs-tax-switch-woocommerce.php:24 5225 #: includes/class-wdevs-tax-switch-woocommerce.php:243 226 226 msgid "Tax switch settings" 227 227 msgstr "Btw-schakelaar instellingen" 228 228 229 #: includes/class-wdevs-tax-switch-woocommerce.php:24 7229 #: includes/class-wdevs-tax-switch-woocommerce.php:245 230 230 msgid "Customize the tax switch settings." 231 231 msgstr "Pas de instellingen van de btw-schakelaar aan." 232 232 233 #: includes/class-wdevs-tax-switch-woocommerce.php:2 51233 #: includes/class-wdevs-tax-switch-woocommerce.php:249 234 234 msgid "Including VAT text" 235 235 msgstr "Tekst inclusief btw" 236 236 237 #: includes/class-wdevs-tax-switch-woocommerce.php:25 3237 #: includes/class-wdevs-tax-switch-woocommerce.php:251 238 238 msgid "Text to append to prices including VAT." 239 239 msgstr "Tekst om toe te voegen aan prijzen inclusief btw." 240 240 241 #: includes/class-wdevs-tax-switch-woocommerce.php:25 8241 #: includes/class-wdevs-tax-switch-woocommerce.php:256 242 242 msgid "Excluding VAT text" 243 243 msgstr "Tekst exclusief btw" 244 244 245 #: includes/class-wdevs-tax-switch-woocommerce.php:2 60245 #: includes/class-wdevs-tax-switch-woocommerce.php:258 246 246 msgid "Text to append to prices excluding VAT." 247 247 msgstr "Tekst om toe te voegen aan prijzen exclusief btw." 248 248 249 #: includes/class-wdevs-tax-switch-woocommerce.php:27 3249 #: includes/class-wdevs-tax-switch-woocommerce.php:271 250 250 msgid "Where enabled" 251 251 msgstr "Waar ingeschakeld" 252 252 253 #: includes/class-wdevs-tax-switch-woocommerce.php:276 254 #: includes/class-wdevs-tax-switch-woocommerce.php:281 255 msgid "On all pages" 256 msgstr "Op alle pagina's" 257 258 #: includes/class-wdevs-tax-switch-woocommerce.php:277 259 #: includes/class-wdevs-tax-switch-woocommerce.php:282 260 msgid "Only on WooCommerce pages" 261 msgstr "Alleen op WooCommerce-pagina's" 262 253 263 #: includes/class-wdevs-tax-switch-woocommerce.php:278 254 264 #: includes/class-wdevs-tax-switch-woocommerce.php:283 255 msgid "On all pages"256 msgstr "Op alle pagina's"257 258 #: includes/class-wdevs-tax-switch-woocommerce.php:279259 #: includes/class-wdevs-tax-switch-woocommerce.php:284260 msgid "Only on WooCommerce pages"261 msgstr "Alleen op WooCommerce-pagina's"262 263 #: includes/class-wdevs-tax-switch-woocommerce.php:280264 #: includes/class-wdevs-tax-switch-woocommerce.php:285265 265 msgid "Only on pages displaying prices" 266 266 msgstr "Alleen op pagina's met prijzen" 267 267 268 #: includes/class-wdevs-tax-switch-woocommerce.php:28 2268 #: includes/class-wdevs-tax-switch-woocommerce.php:280 269 269 msgid "" 270 270 "WooCommerce pages include: product archives/categories, single product pages " … … 274 274 "productpagina's en accountpagina's." 275 275 276 #: includes/class-wdevs-tax-switch-woocommerce.php:28 3276 #: includes/class-wdevs-tax-switch-woocommerce.php:281 277 277 msgid "On all pages where a Tax Switch block/shortcode is placed." 278 278 msgstr "Op elke pagina waar een btw-schakelaar block/shortcode is geplaatst." 279 279 280 #: includes/class-wdevs-tax-switch-woocommerce.php:28 4280 #: includes/class-wdevs-tax-switch-woocommerce.php:282 281 281 msgid "" 282 282 "Hidden on pages that are not part of the store. Stops rendering completely." … … 285 285 "renderen volledig." 286 286 287 #: includes/class-wdevs-tax-switch-woocommerce.php:28 5287 #: includes/class-wdevs-tax-switch-woocommerce.php:283 288 288 msgid "" 289 289 "Hidden on pages that do not display any prices. Renders, but hides the " … … 293 293 "verborgen (iets langzamer)." 294 294 295 #: includes/class-wdevs-tax-switch-woocommerce.php:28 6295 #: includes/class-wdevs-tax-switch-woocommerce.php:284 296 296 msgid "" 297 297 "Tax Switch blocks/shortcodes are always hidden on the cart and checkout " … … 301 301 "en afrekenpagina's." 302 302 303 #: includes/class-wdevs-tax-switch-woocommerce.php:307 303 #: includes/class-wdevs-tax-switch-woocommerce.php:289 304 msgid "Price switching in mini cart" 305 msgstr "Prijs aanpassingen in de mini winkelwagen" 306 307 #: includes/class-wdevs-tax-switch-woocommerce.php:291 308 msgid "" 309 "Allow customers to switch between prices including and excluding VAT in the " 310 "default WooCommerce mini cart." 311 msgstr "" 312 "Geef klanten de mogelijkheid om te wisselen tussen prijzen inclusief en " 313 "exclusief btw in de standaard WooCommerce mini-winkelwagen." 314 315 #: includes/class-wdevs-tax-switch-woocommerce.php:292 316 msgid "" 317 "By default, price switching is disabled in the mini cart to keep cart totals " 318 "consistent." 319 msgstr "" 320 "Standaard is het omwisselen van prijzen in de mini winkelwagen uitgeschakeld " 321 "om de winkelwagentotalen consistent te houden." 322 323 #: includes/class-wdevs-tax-switch-woocommerce.php:314 304 324 msgid "Shortcode settings" 305 325 msgstr "Shortcode instellingen" 306 326 307 #: includes/class-wdevs-tax-switch-woocommerce.php:3 09327 #: includes/class-wdevs-tax-switch-woocommerce.php:316 308 328 msgid "Generate a tax switch shortcode." 309 329 msgstr "Genereer een btw-schakelaar shortcode." -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE-43dcd1c557291b1a502cbd2ea4d36beb.json
r3313868 r3384402 1 {"translation-revision-date": "2025- 06-18 14:57+0200", "generator": "Poedit 3.6", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Labels": ["Etiketter"], "Label colors": ["Etikett f\u00e4rger"], "Label excluding VAT color": ["Etikett f\u00e4rg exklusive moms"], "Label including VAT color": ["Etikett f\u00e4rg inklusive moms"]}}}1 {"translation-revision-date": "2025-10-14 08:09+0200", "generator": "Poedit 3.7", "source": "block/src/label/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Labels": ["Etiketter"], "Label colors": ["Etikett f\u00e4rger"], "Label excluding VAT color": ["Etikett f\u00e4rg exklusive moms"], "Label including VAT color": ["Etikett f\u00e4rg inklusive moms"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE-a7d03486c29d1d1d1553c783663175ae.json
r3313868 r3384402 1 {"translation-revision-date": "2025- 06-18 14:57+0200", "generator": "Poedit 3.6", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Byt typ"], "Toggle switch": ["Switch"], "Buttons": ["Knappar"], "Switch color": ["Byt f\u00e4rg"], "Switch color checked": ["Byt f\u00e4rg markerad"], "Background color": ["Bakgrundsf\u00e4rg"], "Background color checked": ["Bakgrundsf\u00e4rg markerad"], "Text color": ["Textf\u00e4rg"], "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Display options": ["Visningsalternativ"], "Switch colors": ["Byt f\u00e4rger"], "Switch labels": ["Byt etiketter"]}}}1 {"translation-revision-date": "2025-10-14 08:09+0200", "generator": "Poedit 3.7", "source": "block/src/switch/edit.js", "domain": "messages", "locale_data": {"messages": {"": {"domain": "messages", "lang": "sv_SE", "plural-forms": "nplurals=2; plural=(n != 1);"}, "Switch type": ["Byt typ"], "Toggle switch": ["Switch"], "Buttons": ["Knappar"], "Switch color": ["Byt f\u00e4rg"], "Switch color checked": ["Byt f\u00e4rg markerad"], "Background color": ["Bakgrundsf\u00e4rg"], "Background color checked": ["Bakgrundsf\u00e4rg markerad"], "Text color": ["Textf\u00e4rg"], "Including VAT label": ["Inkl. moms etikett"], "Excluding VAT label": ["Exkl. moms etikett"], "Display options": ["Visningsalternativ"], "Switch colors": ["Byt f\u00e4rger"], "Switch labels": ["Byt etiketter"]}}} -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE.l10n.php
r3313868 r3384402 1 1 <?php 2 2 // generated by Poedit from tax-switch-for-woocommerce-sv_SE.po, do not edit directly 3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'sv_SE','pot-creation-date'=>'2025- 06-18 14:54+0200','po-revision-date'=>'2025-06-18 14:57+0200','translation-revision-date'=>'2025-06-18 14:57+0200','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.6','messages'=>['Settings'=>'Inställningar','Tax switch shortcode'=>'Momsswitch shortcode','Configure shortcode'=>'Konfigurera shortcode','Copy shortcode'=>'Kopiera shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopiera den genererade shortcoden och klistra in den där du vill att momsswitchen ska visas.','Close modal'=>'Stäng modal','Switch type'=>'Byt typ','Toggle switch'=>'Switch','Buttons'=>'Knappar','Switch style'=>'Byt stil','Default style'=>'Standard-stil','Inline style'=>'Inline-stil','Switch color'=>'Byt färg','Default'=>'Standard','Switch color checked'=>'Byt färg markerad','Background color'=>'Bakgrundsfärg','Background color checked'=>'Bakgrundsfärg markerad','Text color'=>'Textfärg','Including VAT label'=>'Inkl. moms etikett','Incl. VAT'=>'Inkl. moms','Excluding VAT label'=>'Exkl. moms etikett','Excl. VAT'=>'Exkl. moms','CSS classes'=>'CSS-klasser','Options: is-style-default, is-style-inline or/and custom classes'=>'Alternativ: is-style-default, is-style-inline och/eller anpassade klasser','Preview'=>'Förhandsvisning','This is a preview. The actual style depends on your theme.'=>'Detta är en förhandsvisning. Den faktiska stilen beror på ditt tema.','Generate shortcode'=>'Generera shortcode','Copied'=>'Kopierad','Labels'=>'Etiketter','Label colors'=>'Etikett färger','Label excluding VAT color'=>'Etikett färg exklusive moms','Label including VAT color'=>'Etikett färg inklusive moms','Display options'=>'Visningsalternativ','Switch colors'=>'Byt färger','Switch labels'=>'Byt etiketter','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Det här tillägget kräver WooCommerce. Installera och aktivera WooCommerce innan du aktiverar detta tillägg.','Tax switch'=>'Momsswitch','Shortcode'=>'Shortcode','Documentation'=>'Dokumentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Momsswitch för WooCommerce är utvecklad av %s. Din betrodda WordPress- och WooCommerce-pluginpartner från Nederländerna.','Tax switch settings'=>'Inställningar för momsswitch','Customize the tax switch settings.'=>'Anpassa inställningarna för momsswitch.','Including VAT text'=>'Text för inklusive moms','Text to append to prices including VAT.'=>'Text som läggs till på priser inklusive moms.','Excluding VAT text'=>'Text för exklusive moms','Text to append to prices excluding VAT.'=>'Text som läggs till på priser exklusive moms.','Where enabled'=>'Där aktiverat','On all pages'=>'På alla sidor','Only on WooCommerce pages'=>'Endast på WooCommerce-sidor','Only on pages displaying prices'=>'Endast på sidor som visar priser','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-sidor inkluderar: produktarkiv/kategorier, enskilda produktsidor och kontosidor.','On all pages where a Tax Switch block/shortcode is placed.'=>'På alla sidor där ett Tax Switch-block/shortcode är placerat.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Döljs på sidor som inte är en del av butiken. Slutar rendera helt.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Döljs på sidor som inte visar några priser. Renderar fortfarande men döljer komponenterna (något långsammare).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Momsswitch för WooCommerce block/kortkoder är alltid dolda på varukorgen och kassasidorna.','Shortcode settings'=>'Shortcode-inställningar','Generate a tax switch shortcode.'=>'Generera en momsswitch shortcode.','Tax Switch for WooCommerce'=>'Momsswitch för WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Låt kunder växla mellan priser inklusive och exklusive moms i din WooCommerce-butik.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']];3 return ['domain'=>NULL,'plural-forms'=>'nplurals=2; plural=(n != 1);','language'=>'sv_SE','pot-creation-date'=>'2025-10-14 08:06+0200','po-revision-date'=>'2025-10-14 08:09+0200','translation-revision-date'=>'2025-10-14 08:09+0200','project-id-version'=>'Tax Switch for WooCommerce','x-generator'=>'Poedit 3.7','messages'=>['Settings'=>'Inställningar','Tax switch shortcode'=>'Momsswitch shortcode','Configure shortcode'=>'Konfigurera shortcode','Copy shortcode'=>'Kopiera shortcode','Copy the generated shortcode and paste it where you want the tax switch to appear.'=>'Kopiera den genererade shortcoden och klistra in den där du vill att momsswitchen ska visas.','Close modal'=>'Stäng modal','Switch type'=>'Byt typ','Toggle switch'=>'Switch','Buttons'=>'Knappar','Switch style'=>'Byt stil','Default style'=>'Standard-stil','Inline style'=>'Inline-stil','Switch color'=>'Byt färg','Default'=>'Standard','Switch color checked'=>'Byt färg markerad','Background color'=>'Bakgrundsfärg','Background color checked'=>'Bakgrundsfärg markerad','Text color'=>'Textfärg','Including VAT label'=>'Inkl. moms etikett','Incl. VAT'=>'Inkl. moms','Excluding VAT label'=>'Exkl. moms etikett','Excl. VAT'=>'Exkl. moms','CSS classes'=>'CSS-klasser','Options: is-style-default, is-style-inline or/and custom classes'=>'Alternativ: is-style-default, is-style-inline och/eller anpassade klasser','Preview'=>'Förhandsvisning','This is a preview. The actual style depends on your theme.'=>'Detta är en förhandsvisning. Den faktiska stilen beror på ditt tema.','Generate shortcode'=>'Generera shortcode','Copied'=>'Kopierad','Labels'=>'Etiketter','Label colors'=>'Etikett färger','Label excluding VAT color'=>'Etikett färg exklusive moms','Label including VAT color'=>'Etikett färg inklusive moms','Display options'=>'Visningsalternativ','Switch colors'=>'Byt färger','Switch labels'=>'Byt etiketter','This plugin requires WooCommerce. Please install and activate WooCommerce before activating this plugin.'=>'Det här tillägget kräver WooCommerce. Installera och aktivera WooCommerce innan du aktiverar detta tillägg.','Tax switch'=>'Momsswitch','Shortcode'=>'Shortcode','Documentation'=>'Dokumentation','Tax Switch for WooCommerce is developed by %s. Your trusted WordPress & WooCommerce plugin partner from the Netherlands.'=>'Momsswitch för WooCommerce är utvecklad av %s. Din betrodda WordPress- och WooCommerce-pluginpartner från Nederländerna.','Tax switch settings'=>'Inställningar för momsswitch','Customize the tax switch settings.'=>'Anpassa inställningarna för momsswitch.','Including VAT text'=>'Text för inklusive moms','Text to append to prices including VAT.'=>'Text som läggs till på priser inklusive moms.','Excluding VAT text'=>'Text för exklusive moms','Text to append to prices excluding VAT.'=>'Text som läggs till på priser exklusive moms.','Where enabled'=>'Där aktiverat','On all pages'=>'På alla sidor','Only on WooCommerce pages'=>'Endast på WooCommerce-sidor','Only on pages displaying prices'=>'Endast på sidor som visar priser','WooCommerce pages include: product archives/categories, single product pages and account pages.'=>'WooCommerce-sidor inkluderar: produktarkiv/kategorier, enskilda produktsidor och kontosidor.','On all pages where a Tax Switch block/shortcode is placed.'=>'På alla sidor där ett Tax Switch-block/shortcode är placerat.','Hidden on pages that are not part of the store. Stops rendering completely.'=>'Döljs på sidor som inte är en del av butiken. Slutar rendera helt.','Hidden on pages that do not display any prices. Renders, but hides the components (slightly slower).'=>'Döljs på sidor som inte visar några priser. Renderar fortfarande men döljer komponenterna (något långsammare).','Tax Switch blocks/shortcodes are always hidden on the cart and checkout pages.'=>'Momsswitch för WooCommerce block/kortkoder är alltid dolda på varukorgen och kassasidorna.','Price switching in mini cart'=>'ditnogdoen','Allow customers to switch between prices including and excluding VAT in the default WooCommerce mini cart.'=>'ditnogdoen','By default, price switching is disabled in the mini cart to keep cart totals consistent.'=>'ditnogdoen','Shortcode settings'=>'Shortcode-inställningar','Generate a tax switch shortcode.'=>'Generera en momsswitch shortcode.','Tax Switch for WooCommerce'=>'Momsswitch för WooCommerce','https://wijnberg.dev'=>'https://wijnberg.dev','Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.'=>'Låt kunder växla mellan priser inklusive och exklusive moms i din WooCommerce-butik.','Wijnberg Developments'=>'Wijnberg Developments','https://wijnberg.dev/'=>'https://wijnberg.dev/']]; -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce-sv_SE.po
r3313868 r3384402 3 3 "Project-Id-Version: Tax Switch for WooCommerce\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2025- 06-18 14:54+0200\n"6 "PO-Revision-Date: 2025- 06-18 14:57+0200\n"5 "POT-Creation-Date: 2025-10-14 08:06+0200\n" 6 "PO-Revision-Date: 2025-10-14 08:09+0200\n" 7 7 "Last-Translator: \n" 8 8 "Language-Team: \n" … … 11 11 "Content-Type: text/plain; charset=UTF-8\n" 12 12 "Content-Transfer-Encoding: 8bit\n" 13 "X-Generator: Poedit 3. 6\n"13 "X-Generator: Poedit 3.7\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 121 121 #: includes/class-wdevs-tax-switch-block-label.php:64 122 122 #: includes/class-wdevs-tax-switch-block-label.php:82 123 #: includes/class-wdevs-tax-switch-woocommerce.php:25 5123 #: includes/class-wdevs-tax-switch-woocommerce.php:253 124 124 #: public/class-wdevs-tax-switch-public.php:146 125 125 msgid "Incl. VAT" … … 134 134 #: includes/class-wdevs-tax-switch-block-label.php:65 135 135 #: includes/class-wdevs-tax-switch-block-label.php:83 136 #: includes/class-wdevs-tax-switch-woocommerce.php:26 2136 #: includes/class-wdevs-tax-switch-woocommerce.php:260 137 137 #: public/class-wdevs-tax-switch-public.php:147 138 138 msgid "Excl. VAT" … … 208 208 msgstr "Shortcode" 209 209 210 #: includes/class-wdevs-tax-switch-woocommerce.php:20 4210 #: includes/class-wdevs-tax-switch-woocommerce.php:201 211 211 msgid "Documentation" 212 212 msgstr "Dokumentation" 213 213 214 214 #. translators: %s: Link to author site. 215 #: includes/class-wdevs-tax-switch-woocommerce.php:22 9215 #: includes/class-wdevs-tax-switch-woocommerce.php:227 216 216 #, php-format 217 217 msgid "" … … 222 222 "WooCommerce-pluginpartner från Nederländerna." 223 223 224 #: includes/class-wdevs-tax-switch-woocommerce.php:24 5224 #: includes/class-wdevs-tax-switch-woocommerce.php:243 225 225 msgid "Tax switch settings" 226 226 msgstr "Inställningar för momsswitch" 227 227 228 #: includes/class-wdevs-tax-switch-woocommerce.php:24 7228 #: includes/class-wdevs-tax-switch-woocommerce.php:245 229 229 msgid "Customize the tax switch settings." 230 230 msgstr "Anpassa inställningarna för momsswitch." 231 231 232 #: includes/class-wdevs-tax-switch-woocommerce.php:2 51232 #: includes/class-wdevs-tax-switch-woocommerce.php:249 233 233 msgid "Including VAT text" 234 234 msgstr "Text för inklusive moms" 235 235 236 #: includes/class-wdevs-tax-switch-woocommerce.php:25 3236 #: includes/class-wdevs-tax-switch-woocommerce.php:251 237 237 msgid "Text to append to prices including VAT." 238 238 msgstr "Text som läggs till på priser inklusive moms." 239 239 240 #: includes/class-wdevs-tax-switch-woocommerce.php:25 8240 #: includes/class-wdevs-tax-switch-woocommerce.php:256 241 241 msgid "Excluding VAT text" 242 242 msgstr "Text för exklusive moms" 243 243 244 #: includes/class-wdevs-tax-switch-woocommerce.php:2 60244 #: includes/class-wdevs-tax-switch-woocommerce.php:258 245 245 msgid "Text to append to prices excluding VAT." 246 246 msgstr "Text som läggs till på priser exklusive moms." 247 247 248 #: includes/class-wdevs-tax-switch-woocommerce.php:27 3248 #: includes/class-wdevs-tax-switch-woocommerce.php:271 249 249 msgid "Where enabled" 250 250 msgstr "Där aktiverat" 251 251 252 #: includes/class-wdevs-tax-switch-woocommerce.php:276 253 #: includes/class-wdevs-tax-switch-woocommerce.php:281 254 msgid "On all pages" 255 msgstr "På alla sidor" 256 257 #: includes/class-wdevs-tax-switch-woocommerce.php:277 258 #: includes/class-wdevs-tax-switch-woocommerce.php:282 259 msgid "Only on WooCommerce pages" 260 msgstr "Endast på WooCommerce-sidor" 261 252 262 #: includes/class-wdevs-tax-switch-woocommerce.php:278 253 263 #: includes/class-wdevs-tax-switch-woocommerce.php:283 254 msgid "On all pages"255 msgstr "På alla sidor"256 257 #: includes/class-wdevs-tax-switch-woocommerce.php:279258 #: includes/class-wdevs-tax-switch-woocommerce.php:284259 msgid "Only on WooCommerce pages"260 msgstr "Endast på WooCommerce-sidor"261 262 #: includes/class-wdevs-tax-switch-woocommerce.php:280263 #: includes/class-wdevs-tax-switch-woocommerce.php:285264 264 msgid "Only on pages displaying prices" 265 265 msgstr "Endast på sidor som visar priser" 266 266 267 #: includes/class-wdevs-tax-switch-woocommerce.php:28 2267 #: includes/class-wdevs-tax-switch-woocommerce.php:280 268 268 msgid "" 269 269 "WooCommerce pages include: product archives/categories, single product pages " … … 273 273 "och kontosidor." 274 274 275 #: includes/class-wdevs-tax-switch-woocommerce.php:28 3275 #: includes/class-wdevs-tax-switch-woocommerce.php:281 276 276 msgid "On all pages where a Tax Switch block/shortcode is placed." 277 277 msgstr "På alla sidor där ett Tax Switch-block/shortcode är placerat." 278 278 279 #: includes/class-wdevs-tax-switch-woocommerce.php:28 4279 #: includes/class-wdevs-tax-switch-woocommerce.php:282 280 280 msgid "" 281 281 "Hidden on pages that are not part of the store. Stops rendering completely." 282 282 msgstr "Döljs på sidor som inte är en del av butiken. Slutar rendera helt." 283 283 284 #: includes/class-wdevs-tax-switch-woocommerce.php:28 5284 #: includes/class-wdevs-tax-switch-woocommerce.php:283 285 285 msgid "" 286 286 "Hidden on pages that do not display any prices. Renders, but hides the " … … 290 290 "komponenterna (något långsammare)." 291 291 292 #: includes/class-wdevs-tax-switch-woocommerce.php:28 6292 #: includes/class-wdevs-tax-switch-woocommerce.php:284 293 293 msgid "" 294 294 "Tax Switch blocks/shortcodes are always hidden on the cart and checkout " … … 298 298 "kassasidorna." 299 299 300 #: includes/class-wdevs-tax-switch-woocommerce.php:307 300 #: includes/class-wdevs-tax-switch-woocommerce.php:289 301 msgid "Price switching in mini cart" 302 msgstr "Prisväxling i minivarukorgen" 303 304 #: includes/class-wdevs-tax-switch-woocommerce.php:291 305 msgid "" 306 "Allow customers to switch between prices including and excluding VAT in the " 307 "default WooCommerce mini cart." 308 msgstr "" 309 "Tillåt kunder att växla mellan priser inklusive och exklusive moms i " 310 "WooCommerce standardminivarukorg." 311 312 #: includes/class-wdevs-tax-switch-woocommerce.php:292 313 msgid "" 314 "By default, price switching is disabled in the mini cart to keep cart totals " 315 "consistent." 316 msgstr "" 317 "Som standard är prisväxling inaktiverad i minivarukorgen för att hålla " 318 "varukorgens totalsummor konsekventa." 319 320 #: includes/class-wdevs-tax-switch-woocommerce.php:314 301 321 msgid "Shortcode settings" 302 322 msgstr "Shortcode-inställningar" 303 323 304 #: includes/class-wdevs-tax-switch-woocommerce.php:3 09324 #: includes/class-wdevs-tax-switch-woocommerce.php:316 305 325 msgid "Generate a tax switch shortcode." 306 326 msgstr "Generera en momsswitch shortcode." -
tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce.pot
r3313868 r3384402 3 3 msgstr "" 4 4 "Project-Id-Version: Tax Switch for WooCommerce\n" 5 "POT-Creation-Date: 2025- 06-18 14:39+0200\n"5 "POT-Creation-Date: 2025-10-14 08:01+0200\n" 6 6 "PO-Revision-Date: 2024-09-16 10:21+0200\n" 7 7 "Last-Translator: \n" … … 11 11 "Content-Transfer-Encoding: 8bit\n" 12 12 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 13 "X-Generator: Poedit 3. 6\n"13 "X-Generator: Poedit 3.7\n" 14 14 "X-Poedit-Basepath: ..\n" 15 15 "X-Poedit-Flags-xgettext: --add-comments=translators:\n" … … 119 119 #: includes/class-wdevs-tax-switch-block-label.php:64 120 120 #: includes/class-wdevs-tax-switch-block-label.php:82 121 #: includes/class-wdevs-tax-switch-woocommerce.php:25 5121 #: includes/class-wdevs-tax-switch-woocommerce.php:253 122 122 #: public/class-wdevs-tax-switch-public.php:146 123 123 msgid "Incl. VAT" … … 132 132 #: includes/class-wdevs-tax-switch-block-label.php:65 133 133 #: includes/class-wdevs-tax-switch-block-label.php:83 134 #: includes/class-wdevs-tax-switch-woocommerce.php:26 2134 #: includes/class-wdevs-tax-switch-woocommerce.php:260 135 135 #: public/class-wdevs-tax-switch-public.php:147 136 136 msgid "Excl. VAT" … … 203 203 msgstr "" 204 204 205 #: includes/class-wdevs-tax-switch-woocommerce.php:20 4205 #: includes/class-wdevs-tax-switch-woocommerce.php:201 206 206 msgid "Documentation" 207 207 msgstr "" 208 208 209 209 #. translators: %s: Link to author site. 210 #: includes/class-wdevs-tax-switch-woocommerce.php:22 9210 #: includes/class-wdevs-tax-switch-woocommerce.php:227 211 211 #, php-format 212 212 msgid "" … … 215 215 msgstr "" 216 216 217 #: includes/class-wdevs-tax-switch-woocommerce.php:243 218 msgid "Tax switch settings" 219 msgstr "" 220 217 221 #: includes/class-wdevs-tax-switch-woocommerce.php:245 218 msgid "Tax switch settings"219 msgstr ""220 221 #: includes/class-wdevs-tax-switch-woocommerce.php:247222 222 msgid "Customize the tax switch settings." 223 223 msgstr "" 224 224 225 #: includes/class-wdevs-tax-switch-woocommerce.php:249 226 msgid "Including VAT text" 227 msgstr "" 228 225 229 #: includes/class-wdevs-tax-switch-woocommerce.php:251 226 msgid "Including VAT text"227 msgstr ""228 229 #: includes/class-wdevs-tax-switch-woocommerce.php:253230 230 msgid "Text to append to prices including VAT." 231 231 msgstr "" 232 232 233 #: includes/class-wdevs-tax-switch-woocommerce.php:256 234 msgid "Excluding VAT text" 235 msgstr "" 236 233 237 #: includes/class-wdevs-tax-switch-woocommerce.php:258 234 msgid "Excluding VAT text"235 msgstr ""236 237 #: includes/class-wdevs-tax-switch-woocommerce.php:260238 238 msgid "Text to append to prices excluding VAT." 239 239 msgstr "" 240 240 241 #: includes/class-wdevs-tax-switch-woocommerce.php:27 3241 #: includes/class-wdevs-tax-switch-woocommerce.php:271 242 242 msgid "Where enabled" 243 msgstr "" 244 245 #: includes/class-wdevs-tax-switch-woocommerce.php:276 246 #: includes/class-wdevs-tax-switch-woocommerce.php:281 247 msgid "On all pages" 248 msgstr "" 249 250 #: includes/class-wdevs-tax-switch-woocommerce.php:277 251 #: includes/class-wdevs-tax-switch-woocommerce.php:282 252 msgid "Only on WooCommerce pages" 243 253 msgstr "" 244 254 245 255 #: includes/class-wdevs-tax-switch-woocommerce.php:278 246 256 #: includes/class-wdevs-tax-switch-woocommerce.php:283 247 msgid "On all pages" 248 msgstr "" 249 250 #: includes/class-wdevs-tax-switch-woocommerce.php:279 251 #: includes/class-wdevs-tax-switch-woocommerce.php:284 252 msgid "Only on WooCommerce pages" 257 msgid "Only on pages displaying prices" 253 258 msgstr "" 254 259 255 260 #: includes/class-wdevs-tax-switch-woocommerce.php:280 256 #: includes/class-wdevs-tax-switch-woocommerce.php:285257 msgid "Only on pages displaying prices"258 msgstr ""259 260 #: includes/class-wdevs-tax-switch-woocommerce.php:282261 261 msgid "" 262 262 "WooCommerce pages include: product archives/categories, single product " … … 264 264 msgstr "" 265 265 266 #: includes/class-wdevs-tax-switch-woocommerce.php:281 267 msgid "On all pages where a Tax Switch block/shortcode is placed." 268 msgstr "" 269 270 #: includes/class-wdevs-tax-switch-woocommerce.php:282 271 msgid "" 272 "Hidden on pages that are not part of the store. Stops rendering completely." 273 msgstr "" 274 266 275 #: includes/class-wdevs-tax-switch-woocommerce.php:283 267 msgid "On all pages where a Tax Switch block/shortcode is placed."268 msgstr ""269 270 #: includes/class-wdevs-tax-switch-woocommerce.php:284271 msgid ""272 "Hidden on pages that are not part of the store. Stops rendering completely."273 msgstr ""274 275 #: includes/class-wdevs-tax-switch-woocommerce.php:285276 276 msgid "" 277 277 "Hidden on pages that do not display any prices. Renders, but hides the " … … 279 279 msgstr "" 280 280 281 #: includes/class-wdevs-tax-switch-woocommerce.php:28 6281 #: includes/class-wdevs-tax-switch-woocommerce.php:284 282 282 msgid "" 283 283 "Tax Switch blocks/shortcodes are always hidden on the cart and checkout " … … 285 285 msgstr "" 286 286 287 #: includes/class-wdevs-tax-switch-woocommerce.php:307 287 #: includes/class-wdevs-tax-switch-woocommerce.php:289 288 msgid "Price switching in mini cart" 289 msgstr "" 290 291 #: includes/class-wdevs-tax-switch-woocommerce.php:291 292 msgid "" 293 "Allow customers to switch between prices including and excluding VAT in " 294 "the default WooCommerce mini cart." 295 msgstr "" 296 297 #: includes/class-wdevs-tax-switch-woocommerce.php:292 298 msgid "" 299 "By default, price switching is disabled in the mini cart to keep cart " 300 "totals consistent." 301 msgstr "" 302 303 #: includes/class-wdevs-tax-switch-woocommerce.php:314 288 304 msgid "Shortcode settings" 289 305 msgstr "" 290 306 291 #: includes/class-wdevs-tax-switch-woocommerce.php:3 09307 #: includes/class-wdevs-tax-switch-woocommerce.php:316 292 308 msgid "Generate a tax switch shortcode." 293 309 msgstr "" -
tax-switch-for-woocommerce/trunk/public/class-wdevs-tax-switch-public.php
r3293400 r3384402 68 68 public function wrap_wc_price( $return, $price, $args, $unformatted_price, $original_price ) { 69 69 70 if ( $this->is_in_cart_or_checkout() ) {70 if ( $this->is_in_cart_or_checkout() && ! $this->should_switch_in_mini_cart() ) { 71 71 return $return; 72 72 } -
tax-switch-for-woocommerce/trunk/public/css/wdevs-tax-switch-public.css
r3307210 r3384402 8 8 font-size: 100%; 9 9 } 10 11 .wdevs-tax-switch-checkbox:disabled ~ .wdevs-tax-switch-slider { 12 opacity: 0.6; 13 cursor: not-allowed; 14 } 15 16 .wdevs-tax-switch-checkbox:disabled { 17 cursor: not-allowed; 18 } 19 20 .wdevs-tax-button:disabled { 21 opacity: 0.6; 22 cursor: not-allowed; 23 } 24 25 .wdevs-tax-switch-label:has(.wdevs-tax-switch-checkbox:disabled) { 26 cursor: not-allowed; 27 } -
tax-switch-for-woocommerce/trunk/wdevs-tax-switch.php
r3375917 r3384402 17 17 * Plugin URI: https://wijnberg.dev 18 18 * Description: Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store. 19 * Version: 1. 5.1919 * Version: 1.6.0 20 20 * Author: Wijnberg Developments 21 21 * Author URI: https://wijnberg.dev/ … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define( 'WDEVS_TAX_SWITCH_VERSION', '1. 5.19' );43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.6.0' ); 44 44 45 45 /** … … 93 93 94 94 wdevs_tax_switch_run(); 95 96
Note: See TracChangeset
for help on using the changeset viewer.