Plugin Directory

Changeset 3384402


Ignore:
Timestamp:
10/25/2025 10:19:59 AM (3 months ago)
Author:
wijnbergdevelopments
Message:
  • Added option to enable price switching in the mini cart
  • Added compatibility for FiboSearch - AJAX Search for WooCommerce (+ Pro)
  • Added FacetWP slider price switching
Location:
tax-switch-for-woocommerce
Files:
106 added
30 edited

Legend:

Unmodified
Added
Removed
  • tax-switch-for-woocommerce/trunk/README.txt

    r3375917 r3384402  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.5.19
     6Stable tag: 1.6.0
    77Requires PHP: 7.2
    88License: GPL-2.0+
     
    198198* FiboFilters
    199199* Extra Product Options & Add-Ons for WooCommerce
     200* FiboSearch – Ajax Search for WooCommerce (+ Pro)
    200201
    201202If 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.
     
    234235
    235236== 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
    236246= 1.5.19 =
    237247* Added PJAX compatibility for themes using jquery-pjax (e.g. WoodMart theme)
  • tax-switch-for-woocommerce/trunk/build/label/block.json

    r3375917 r3384402  
    33  "apiVersion": 3,
    44  "name": "wdevs/tax-switch-label",
    5   "version": "1.5.19",
     5  "version": "1.6.0",
    66  "title": "Tax Switch text label",
    77  "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  
    33  "apiVersion": 3,
    44  "name": "wdevs/tax-switch",
    5   "version": "1.5.19",
     5  "version": "1.6.0",
    66  "title": "Tax Switch for WooCommerce",
    77  "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  
    168168            $ffilters_asset = $this->enqueue_script($ffilters_handle, 'switch', 'fibofilters', [ 'fibofilters' ]);
    169169        }
     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        }
    170191    }
    171192
     
    203224     */
    204225    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() ) {
    206227            return $original_output;
    207228        }
     
    294315    }
    295316
     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
    296376}
  • tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch-woocommerce.php

    r3332349 r3384402  
    151151        if ( ! empty( $this->current_section ) ) {
    152152            add_action( 'woocommerce_update_options_wdevs_tax_switch_' . $this->current_section, array(
    153                     $this,
    154                     'update_settings'
     153                $this,
     154                'update_settings'
    155155            ) );
    156156        } else {
     
    167167    public function get_sections() {
    168168        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' ),
    171171        );
    172172    }
     
    225225        $text = sprintf(
    226226        /* 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>'
    229229        );
    230230
     
    240240    private function get_main_settings() {
    241241        $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            ),
    262262//          Added in 1.5.1, removed in 1.5.2
    263263//          array(
     
    268268//              'default' => 'no'
    269269//          ),
    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' ),
    286279                ),
    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            ),
    291300        );
    292301
     
    302311    private function get_shortcode_settings() {
    303312        $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            ),
    314323        );
    315324
  • tax-switch-for-woocommerce/trunk/includes/class-wdevs-tax-switch.php

    r3348796 r3384402  
    236236            $this->loader->add_filter( 'woocommerce_settings_tabs_array', $plugin_woocommerce, 'add_settings_tab', 50 );
    237237            $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' );
    239239        }
    240240    }
     
    324324            }
    325325
    326             // Product Extras for Woocommerce  (WooCommerce Product Add-Ons Ultimate)
     326            // Product Extras for Woocommerce (WooCommerce Product Add-Ons Ultimate)
    327327            if ( $this->is_plugin_active( 'product-extras-for-woocommerce/product-extras-for-woocommerce.php' ) ) {
    328328                $this->loader->add_filter(
     
    334334                );
    335335            }
     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            }
    336352        }
    337353    }
     
    475491     */
    476492    private function is_doing_ajax() {
    477 
    478493        if ( function_exists( 'wp_doing_ajax' ) ) {
    479494            return wp_doing_ajax();
    480         } else {
    481             return ( defined( 'DOING_AJAX' ) && DOING_AJAX );
    482         }
     495        }
     496
     497        return ( defined( 'DOING_AJAX' ) && DOING_AJAX );
    483498    }
    484499
  • tax-switch-for-woocommerce/trunk/includes/trait-wdevs-tax-switch-helper.php

    r3374836 r3384402  
    114114
    115115        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 );
    116137    }
    117138
     
    271292     */
    272293    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() ) {
    274302            if ( ! is_woocommerce() && ! is_account_page() ) {
    275303                //Already always disabled on cart and checkout: && ! is_cart() && ! is_checkout()
    276                 return true;
     304                $should_hide = true;
    277305            }
    278306        }
    279307
    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 );
    281323    }
    282324
     
    347389    }
    348390
     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
    349419}
  • 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  
    11<?php
    22// 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/']];
     3return ['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  
    22msgstr ""
    33"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"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "X-Generator: Poedit 3.6\n"
     12"X-Generator: Poedit 3.7\n"
    1313"X-Poedit-Basepath: ..\n"
    1414"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    119119#: includes/class-wdevs-tax-switch-block-label.php:64
    120120#: includes/class-wdevs-tax-switch-block-label.php:82
    121 #: includes/class-wdevs-tax-switch-woocommerce.php:255
     121#: includes/class-wdevs-tax-switch-woocommerce.php:253
    122122#: public/class-wdevs-tax-switch-public.php:146
    123123msgid "Incl. VAT"
     
    132132#: includes/class-wdevs-tax-switch-block-label.php:65
    133133#: includes/class-wdevs-tax-switch-block-label.php:83
    134 #: includes/class-wdevs-tax-switch-woocommerce.php:262
     134#: includes/class-wdevs-tax-switch-woocommerce.php:260
    135135#: public/class-wdevs-tax-switch-public.php:147
    136136msgid "Excl. VAT"
     
    205205msgstr "Shortcode"
    206206
    207 #: includes/class-wdevs-tax-switch-woocommerce.php:204
     207#: includes/class-wdevs-tax-switch-woocommerce.php:201
    208208msgid "Documentation"
    209209msgstr "Documentation"
    210210
    211211#. translators: %s: Link to author site.
    212 #: includes/class-wdevs-tax-switch-woocommerce.php:229
     212#: includes/class-wdevs-tax-switch-woocommerce.php:227
    213213#, php-format
    214214msgid ""
     
    219219"WooCommerce plugin partner from the Netherlands."
    220220
    221 #: includes/class-wdevs-tax-switch-woocommerce.php:245
     221#: includes/class-wdevs-tax-switch-woocommerce.php:243
    222222msgid "Tax switch settings"
    223223msgstr "Tax switch settings"
    224224
    225 #: includes/class-wdevs-tax-switch-woocommerce.php:247
     225#: includes/class-wdevs-tax-switch-woocommerce.php:245
    226226msgid "Customize the tax switch settings."
    227227msgstr "Customize the tax switch settings."
    228228
    229 #: includes/class-wdevs-tax-switch-woocommerce.php:251
     229#: includes/class-wdevs-tax-switch-woocommerce.php:249
    230230msgid "Including VAT text"
    231231msgstr "Including VAT text"
    232232
    233 #: includes/class-wdevs-tax-switch-woocommerce.php:253
     233#: includes/class-wdevs-tax-switch-woocommerce.php:251
    234234msgid "Text to append to prices including VAT."
    235235msgstr "Text to append to prices including VAT."
    236236
    237 #: includes/class-wdevs-tax-switch-woocommerce.php:258
     237#: includes/class-wdevs-tax-switch-woocommerce.php:256
    238238msgid "Excluding VAT text"
    239239msgstr "Excluding VAT text"
    240240
    241 #: includes/class-wdevs-tax-switch-woocommerce.php:260
     241#: includes/class-wdevs-tax-switch-woocommerce.php:258
    242242msgid "Text to append to prices excluding VAT."
    243243msgstr "Text to append to prices excluding VAT."
    244244
    245 #: includes/class-wdevs-tax-switch-woocommerce.php:273
     245#: includes/class-wdevs-tax-switch-woocommerce.php:271
    246246msgid "Where enabled"
    247247msgstr "Where enabled"
    248248
     249#: includes/class-wdevs-tax-switch-woocommerce.php:276
     250#: includes/class-wdevs-tax-switch-woocommerce.php:281
     251msgid "On all pages"
     252msgstr "On all pages"
     253
     254#: includes/class-wdevs-tax-switch-woocommerce.php:277
     255#: includes/class-wdevs-tax-switch-woocommerce.php:282
     256msgid "Only on WooCommerce pages"
     257msgstr "Only on WooCommerce pages"
     258
    249259#: includes/class-wdevs-tax-switch-woocommerce.php:278
    250260#: 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:279
    255 #: includes/class-wdevs-tax-switch-woocommerce.php:284
    256 msgid "Only on WooCommerce pages"
    257 msgstr "Only on WooCommerce pages"
    258 
    259 #: includes/class-wdevs-tax-switch-woocommerce.php:280
    260 #: includes/class-wdevs-tax-switch-woocommerce.php:285
    261261msgid "Only on pages displaying prices"
    262262msgstr "Only on pages displaying prices"
    263263
    264 #: includes/class-wdevs-tax-switch-woocommerce.php:282
     264#: includes/class-wdevs-tax-switch-woocommerce.php:280
    265265msgid ""
    266266"WooCommerce pages include: product archives/categories, single product pages "
     
    270270"and account pages."
    271271
    272 #: includes/class-wdevs-tax-switch-woocommerce.php:283
     272#: includes/class-wdevs-tax-switch-woocommerce.php:281
    273273msgid "On all pages where a Tax Switch block/shortcode is placed."
    274274msgstr "On all pages where a Tax Switch block/shortcode is placed."
    275275
    276 #: includes/class-wdevs-tax-switch-woocommerce.php:284
     276#: includes/class-wdevs-tax-switch-woocommerce.php:282
    277277msgid ""
    278278"Hidden on pages that are not part of the store. Stops rendering completely."
     
    280280"Hidden on pages that are not part of the store. Stops rendering completely."
    281281
    282 #: includes/class-wdevs-tax-switch-woocommerce.php:285
     282#: includes/class-wdevs-tax-switch-woocommerce.php:283
    283283msgid ""
    284284"Hidden on pages that do not display any prices. Renders, but hides the "
     
    288288"components (slightly slower)."
    289289
    290 #: includes/class-wdevs-tax-switch-woocommerce.php:286
     290#: includes/class-wdevs-tax-switch-woocommerce.php:284
    291291msgid ""
    292292"Tax Switch blocks/shortcodes are always hidden on the cart and checkout "
     
    296296"pages."
    297297
    298 #: includes/class-wdevs-tax-switch-woocommerce.php:307
     298#: includes/class-wdevs-tax-switch-woocommerce.php:289
     299msgid "Price switching in mini cart"
     300msgstr "Price switching in mini cart"
     301
     302#: includes/class-wdevs-tax-switch-woocommerce.php:291
     303msgid ""
     304"Allow customers to switch between prices including and excluding VAT in the "
     305"default WooCommerce mini cart."
     306msgstr ""
     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
     311msgid ""
     312"By default, price switching is disabled in the mini cart to keep cart totals "
     313"consistent."
     314msgstr ""
     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
    299319msgid "Shortcode settings"
    300320msgstr "Shortcode settings"
    301321
    302 #: includes/class-wdevs-tax-switch-woocommerce.php:309
     322#: includes/class-wdevs-tax-switch-woocommerce.php:316
    303323msgid "Generate a tax switch shortcode."
    304324msgstr "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  
    11<?php
    22// 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/']];
     3return ['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  
    33"Project-Id-Version: Tax Switch for WooCommerce\n"
    44"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"
    77"Last-Translator: \n"
    88"Language-Team: \n"
     
    1111"Content-Type: text/plain; charset=UTF-8\n"
    1212"Content-Transfer-Encoding: 8bit\n"
    13 "X-Generator: Poedit 3.6\n"
     13"X-Generator: Poedit 3.7\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    121121#: includes/class-wdevs-tax-switch-block-label.php:64
    122122#: includes/class-wdevs-tax-switch-block-label.php:82
    123 #: includes/class-wdevs-tax-switch-woocommerce.php:255
     123#: includes/class-wdevs-tax-switch-woocommerce.php:253
    124124#: public/class-wdevs-tax-switch-public.php:146
    125125msgid "Incl. VAT"
     
    134134#: includes/class-wdevs-tax-switch-block-label.php:65
    135135#: includes/class-wdevs-tax-switch-block-label.php:83
    136 #: includes/class-wdevs-tax-switch-woocommerce.php:262
     136#: includes/class-wdevs-tax-switch-woocommerce.php:260
    137137#: public/class-wdevs-tax-switch-public.php:147
    138138msgid "Excl. VAT"
     
    209209msgstr "Shortcode"
    210210
    211 #: includes/class-wdevs-tax-switch-woocommerce.php:204
     211#: includes/class-wdevs-tax-switch-woocommerce.php:201
    212212msgid "Documentation"
    213213msgstr "Documentatie"
    214214
    215215#. translators: %s: Link to author site.
    216 #: includes/class-wdevs-tax-switch-woocommerce.php:229
     216#: includes/class-wdevs-tax-switch-woocommerce.php:227
    217217#, php-format
    218218msgid ""
     
    223223"WordPress & WooCommerce pluginpartner uit Nederland."
    224224
    225 #: includes/class-wdevs-tax-switch-woocommerce.php:245
     225#: includes/class-wdevs-tax-switch-woocommerce.php:243
    226226msgid "Tax switch settings"
    227227msgstr "Btw-schakelaar instellingen"
    228228
    229 #: includes/class-wdevs-tax-switch-woocommerce.php:247
     229#: includes/class-wdevs-tax-switch-woocommerce.php:245
    230230msgid "Customize the tax switch settings."
    231231msgstr "Pas de instellingen van de btw-schakelaar aan."
    232232
    233 #: includes/class-wdevs-tax-switch-woocommerce.php:251
     233#: includes/class-wdevs-tax-switch-woocommerce.php:249
    234234msgid "Including VAT text"
    235235msgstr "Tekst inclusief btw"
    236236
    237 #: includes/class-wdevs-tax-switch-woocommerce.php:253
     237#: includes/class-wdevs-tax-switch-woocommerce.php:251
    238238msgid "Text to append to prices including VAT."
    239239msgstr "Tekst om toe te voegen aan prijzen inclusief btw."
    240240
    241 #: includes/class-wdevs-tax-switch-woocommerce.php:258
     241#: includes/class-wdevs-tax-switch-woocommerce.php:256
    242242msgid "Excluding VAT text"
    243243msgstr "Tekst exclusief btw"
    244244
    245 #: includes/class-wdevs-tax-switch-woocommerce.php:260
     245#: includes/class-wdevs-tax-switch-woocommerce.php:258
    246246msgid "Text to append to prices excluding VAT."
    247247msgstr "Tekst om toe te voegen aan prijzen exclusief btw."
    248248
    249 #: includes/class-wdevs-tax-switch-woocommerce.php:273
     249#: includes/class-wdevs-tax-switch-woocommerce.php:271
    250250msgid "Where enabled"
    251251msgstr "Waar ingeschakeld"
    252252
     253#: includes/class-wdevs-tax-switch-woocommerce.php:276
     254#: includes/class-wdevs-tax-switch-woocommerce.php:281
     255msgid "On all pages"
     256msgstr "Op alle pagina's"
     257
     258#: includes/class-wdevs-tax-switch-woocommerce.php:277
     259#: includes/class-wdevs-tax-switch-woocommerce.php:282
     260msgid "Only on WooCommerce pages"
     261msgstr "Alleen op WooCommerce-pagina's"
     262
    253263#: includes/class-wdevs-tax-switch-woocommerce.php:278
    254264#: 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:279
    259 #: includes/class-wdevs-tax-switch-woocommerce.php:284
    260 msgid "Only on WooCommerce pages"
    261 msgstr "Alleen op WooCommerce-pagina's"
    262 
    263 #: includes/class-wdevs-tax-switch-woocommerce.php:280
    264 #: includes/class-wdevs-tax-switch-woocommerce.php:285
    265265msgid "Only on pages displaying prices"
    266266msgstr "Alleen op pagina's met prijzen"
    267267
    268 #: includes/class-wdevs-tax-switch-woocommerce.php:282
     268#: includes/class-wdevs-tax-switch-woocommerce.php:280
    269269msgid ""
    270270"WooCommerce pages include: product archives/categories, single product pages "
     
    274274"productpagina's en accountpagina's."
    275275
    276 #: includes/class-wdevs-tax-switch-woocommerce.php:283
     276#: includes/class-wdevs-tax-switch-woocommerce.php:281
    277277msgid "On all pages where a Tax Switch block/shortcode is placed."
    278278msgstr "Op elke pagina waar een btw-schakelaar block/shortcode is geplaatst."
    279279
    280 #: includes/class-wdevs-tax-switch-woocommerce.php:284
     280#: includes/class-wdevs-tax-switch-woocommerce.php:282
    281281msgid ""
    282282"Hidden on pages that are not part of the store. Stops rendering completely."
     
    285285"renderen volledig."
    286286
    287 #: includes/class-wdevs-tax-switch-woocommerce.php:285
     287#: includes/class-wdevs-tax-switch-woocommerce.php:283
    288288msgid ""
    289289"Hidden on pages that do not display any prices. Renders, but hides the "
     
    293293"verborgen (iets langzamer)."
    294294
    295 #: includes/class-wdevs-tax-switch-woocommerce.php:286
     295#: includes/class-wdevs-tax-switch-woocommerce.php:284
    296296msgid ""
    297297"Tax Switch blocks/shortcodes are always hidden on the cart and checkout "
     
    301301"en afrekenpagina's."
    302302
    303 #: includes/class-wdevs-tax-switch-woocommerce.php:307
     303#: includes/class-wdevs-tax-switch-woocommerce.php:289
     304msgid "Price switching in mini cart"
     305msgstr "Prijs aanpassingen in de mini winkelwagen"
     306
     307#: includes/class-wdevs-tax-switch-woocommerce.php:291
     308msgid ""
     309"Allow customers to switch between prices including and excluding VAT in the "
     310"default WooCommerce mini cart."
     311msgstr ""
     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
     316msgid ""
     317"By default, price switching is disabled in the mini cart to keep cart totals "
     318"consistent."
     319msgstr ""
     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
    304324msgid "Shortcode settings"
    305325msgstr "Shortcode instellingen"
    306326
    307 #: includes/class-wdevs-tax-switch-woocommerce.php:309
     327#: includes/class-wdevs-tax-switch-woocommerce.php:316
    308328msgid "Generate a tax switch shortcode."
    309329msgstr "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  
    11<?php
    22// 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/']];
     3return ['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  
    33"Project-Id-Version: Tax Switch for WooCommerce\n"
    44"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"
    77"Last-Translator: \n"
    88"Language-Team: \n"
     
    1111"Content-Type: text/plain; charset=UTF-8\n"
    1212"Content-Transfer-Encoding: 8bit\n"
    13 "X-Generator: Poedit 3.6\n"
     13"X-Generator: Poedit 3.7\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    121121#: includes/class-wdevs-tax-switch-block-label.php:64
    122122#: includes/class-wdevs-tax-switch-block-label.php:82
    123 #: includes/class-wdevs-tax-switch-woocommerce.php:255
     123#: includes/class-wdevs-tax-switch-woocommerce.php:253
    124124#: public/class-wdevs-tax-switch-public.php:146
    125125msgid "Incl. VAT"
     
    134134#: includes/class-wdevs-tax-switch-block-label.php:65
    135135#: includes/class-wdevs-tax-switch-block-label.php:83
    136 #: includes/class-wdevs-tax-switch-woocommerce.php:262
     136#: includes/class-wdevs-tax-switch-woocommerce.php:260
    137137#: public/class-wdevs-tax-switch-public.php:147
    138138msgid "Excl. VAT"
     
    208208msgstr "Shortcode"
    209209
    210 #: includes/class-wdevs-tax-switch-woocommerce.php:204
     210#: includes/class-wdevs-tax-switch-woocommerce.php:201
    211211msgid "Documentation"
    212212msgstr "Dokumentation"
    213213
    214214#. translators: %s: Link to author site.
    215 #: includes/class-wdevs-tax-switch-woocommerce.php:229
     215#: includes/class-wdevs-tax-switch-woocommerce.php:227
    216216#, php-format
    217217msgid ""
     
    222222"WooCommerce-pluginpartner från Nederländerna."
    223223
    224 #: includes/class-wdevs-tax-switch-woocommerce.php:245
     224#: includes/class-wdevs-tax-switch-woocommerce.php:243
    225225msgid "Tax switch settings"
    226226msgstr "Inställningar för momsswitch"
    227227
    228 #: includes/class-wdevs-tax-switch-woocommerce.php:247
     228#: includes/class-wdevs-tax-switch-woocommerce.php:245
    229229msgid "Customize the tax switch settings."
    230230msgstr "Anpassa inställningarna för momsswitch."
    231231
    232 #: includes/class-wdevs-tax-switch-woocommerce.php:251
     232#: includes/class-wdevs-tax-switch-woocommerce.php:249
    233233msgid "Including VAT text"
    234234msgstr "Text för inklusive moms"
    235235
    236 #: includes/class-wdevs-tax-switch-woocommerce.php:253
     236#: includes/class-wdevs-tax-switch-woocommerce.php:251
    237237msgid "Text to append to prices including VAT."
    238238msgstr "Text som läggs till på priser inklusive moms."
    239239
    240 #: includes/class-wdevs-tax-switch-woocommerce.php:258
     240#: includes/class-wdevs-tax-switch-woocommerce.php:256
    241241msgid "Excluding VAT text"
    242242msgstr "Text för exklusive moms"
    243243
    244 #: includes/class-wdevs-tax-switch-woocommerce.php:260
     244#: includes/class-wdevs-tax-switch-woocommerce.php:258
    245245msgid "Text to append to prices excluding VAT."
    246246msgstr "Text som läggs till på priser exklusive moms."
    247247
    248 #: includes/class-wdevs-tax-switch-woocommerce.php:273
     248#: includes/class-wdevs-tax-switch-woocommerce.php:271
    249249msgid "Where enabled"
    250250msgstr "Där aktiverat"
    251251
     252#: includes/class-wdevs-tax-switch-woocommerce.php:276
     253#: includes/class-wdevs-tax-switch-woocommerce.php:281
     254msgid "On all pages"
     255msgstr "På alla sidor"
     256
     257#: includes/class-wdevs-tax-switch-woocommerce.php:277
     258#: includes/class-wdevs-tax-switch-woocommerce.php:282
     259msgid "Only on WooCommerce pages"
     260msgstr "Endast på WooCommerce-sidor"
     261
    252262#: includes/class-wdevs-tax-switch-woocommerce.php:278
    253263#: 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:279
    258 #: includes/class-wdevs-tax-switch-woocommerce.php:284
    259 msgid "Only on WooCommerce pages"
    260 msgstr "Endast på WooCommerce-sidor"
    261 
    262 #: includes/class-wdevs-tax-switch-woocommerce.php:280
    263 #: includes/class-wdevs-tax-switch-woocommerce.php:285
    264264msgid "Only on pages displaying prices"
    265265msgstr "Endast på sidor som visar priser"
    266266
    267 #: includes/class-wdevs-tax-switch-woocommerce.php:282
     267#: includes/class-wdevs-tax-switch-woocommerce.php:280
    268268msgid ""
    269269"WooCommerce pages include: product archives/categories, single product pages "
     
    273273"och kontosidor."
    274274
    275 #: includes/class-wdevs-tax-switch-woocommerce.php:283
     275#: includes/class-wdevs-tax-switch-woocommerce.php:281
    276276msgid "On all pages where a Tax Switch block/shortcode is placed."
    277277msgstr "På alla sidor där ett Tax Switch-block/shortcode är placerat."
    278278
    279 #: includes/class-wdevs-tax-switch-woocommerce.php:284
     279#: includes/class-wdevs-tax-switch-woocommerce.php:282
    280280msgid ""
    281281"Hidden on pages that are not part of the store. Stops rendering completely."
    282282msgstr "Döljs på sidor som inte är en del av butiken. Slutar rendera helt."
    283283
    284 #: includes/class-wdevs-tax-switch-woocommerce.php:285
     284#: includes/class-wdevs-tax-switch-woocommerce.php:283
    285285msgid ""
    286286"Hidden on pages that do not display any prices. Renders, but hides the "
     
    290290"komponenterna (något långsammare)."
    291291
    292 #: includes/class-wdevs-tax-switch-woocommerce.php:286
     292#: includes/class-wdevs-tax-switch-woocommerce.php:284
    293293msgid ""
    294294"Tax Switch blocks/shortcodes are always hidden on the cart and checkout "
     
    298298"kassasidorna."
    299299
    300 #: includes/class-wdevs-tax-switch-woocommerce.php:307
     300#: includes/class-wdevs-tax-switch-woocommerce.php:289
     301msgid "Price switching in mini cart"
     302msgstr "Prisväxling i minivarukorgen"
     303
     304#: includes/class-wdevs-tax-switch-woocommerce.php:291
     305msgid ""
     306"Allow customers to switch between prices including and excluding VAT in the "
     307"default WooCommerce mini cart."
     308msgstr ""
     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
     313msgid ""
     314"By default, price switching is disabled in the mini cart to keep cart totals "
     315"consistent."
     316msgstr ""
     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
    301321msgid "Shortcode settings"
    302322msgstr "Shortcode-inställningar"
    303323
    304 #: includes/class-wdevs-tax-switch-woocommerce.php:309
     324#: includes/class-wdevs-tax-switch-woocommerce.php:316
    305325msgid "Generate a tax switch shortcode."
    306326msgstr "Generera en momsswitch shortcode."
  • tax-switch-for-woocommerce/trunk/languages/tax-switch-for-woocommerce.pot

    r3313868 r3384402  
    33msgstr ""
    44"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"
    66"PO-Revision-Date: 2024-09-16 10:21+0200\n"
    77"Last-Translator: \n"
     
    1111"Content-Transfer-Encoding: 8bit\n"
    1212"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    13 "X-Generator: Poedit 3.6\n"
     13"X-Generator: Poedit 3.7\n"
    1414"X-Poedit-Basepath: ..\n"
    1515"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
     
    119119#: includes/class-wdevs-tax-switch-block-label.php:64
    120120#: includes/class-wdevs-tax-switch-block-label.php:82
    121 #: includes/class-wdevs-tax-switch-woocommerce.php:255
     121#: includes/class-wdevs-tax-switch-woocommerce.php:253
    122122#: public/class-wdevs-tax-switch-public.php:146
    123123msgid "Incl. VAT"
     
    132132#: includes/class-wdevs-tax-switch-block-label.php:65
    133133#: includes/class-wdevs-tax-switch-block-label.php:83
    134 #: includes/class-wdevs-tax-switch-woocommerce.php:262
     134#: includes/class-wdevs-tax-switch-woocommerce.php:260
    135135#: public/class-wdevs-tax-switch-public.php:147
    136136msgid "Excl. VAT"
     
    203203msgstr ""
    204204
    205 #: includes/class-wdevs-tax-switch-woocommerce.php:204
     205#: includes/class-wdevs-tax-switch-woocommerce.php:201
    206206msgid "Documentation"
    207207msgstr ""
    208208
    209209#. translators: %s: Link to author site.
    210 #: includes/class-wdevs-tax-switch-woocommerce.php:229
     210#: includes/class-wdevs-tax-switch-woocommerce.php:227
    211211#, php-format
    212212msgid ""
     
    215215msgstr ""
    216216
     217#: includes/class-wdevs-tax-switch-woocommerce.php:243
     218msgid "Tax switch settings"
     219msgstr ""
     220
    217221#: includes/class-wdevs-tax-switch-woocommerce.php:245
    218 msgid "Tax switch settings"
    219 msgstr ""
    220 
    221 #: includes/class-wdevs-tax-switch-woocommerce.php:247
    222222msgid "Customize the tax switch settings."
    223223msgstr ""
    224224
     225#: includes/class-wdevs-tax-switch-woocommerce.php:249
     226msgid "Including VAT text"
     227msgstr ""
     228
    225229#: includes/class-wdevs-tax-switch-woocommerce.php:251
    226 msgid "Including VAT text"
    227 msgstr ""
    228 
    229 #: includes/class-wdevs-tax-switch-woocommerce.php:253
    230230msgid "Text to append to prices including VAT."
    231231msgstr ""
    232232
     233#: includes/class-wdevs-tax-switch-woocommerce.php:256
     234msgid "Excluding VAT text"
     235msgstr ""
     236
    233237#: includes/class-wdevs-tax-switch-woocommerce.php:258
    234 msgid "Excluding VAT text"
    235 msgstr ""
    236 
    237 #: includes/class-wdevs-tax-switch-woocommerce.php:260
    238238msgid "Text to append to prices excluding VAT."
    239239msgstr ""
    240240
    241 #: includes/class-wdevs-tax-switch-woocommerce.php:273
     241#: includes/class-wdevs-tax-switch-woocommerce.php:271
    242242msgid "Where enabled"
     243msgstr ""
     244
     245#: includes/class-wdevs-tax-switch-woocommerce.php:276
     246#: includes/class-wdevs-tax-switch-woocommerce.php:281
     247msgid "On all pages"
     248msgstr ""
     249
     250#: includes/class-wdevs-tax-switch-woocommerce.php:277
     251#: includes/class-wdevs-tax-switch-woocommerce.php:282
     252msgid "Only on WooCommerce pages"
    243253msgstr ""
    244254
    245255#: includes/class-wdevs-tax-switch-woocommerce.php:278
    246256#: 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"
     257msgid "Only on pages displaying prices"
    253258msgstr ""
    254259
    255260#: includes/class-wdevs-tax-switch-woocommerce.php:280
    256 #: includes/class-wdevs-tax-switch-woocommerce.php:285
    257 msgid "Only on pages displaying prices"
    258 msgstr ""
    259 
    260 #: includes/class-wdevs-tax-switch-woocommerce.php:282
    261261msgid ""
    262262"WooCommerce pages include: product archives/categories, single product "
     
    264264msgstr ""
    265265
     266#: includes/class-wdevs-tax-switch-woocommerce.php:281
     267msgid "On all pages where a Tax Switch block/shortcode is placed."
     268msgstr ""
     269
     270#: includes/class-wdevs-tax-switch-woocommerce.php:282
     271msgid ""
     272"Hidden on pages that are not part of the store. Stops rendering completely."
     273msgstr ""
     274
    266275#: 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:284
    271 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:285
    276276msgid ""
    277277"Hidden on pages that do not display any prices. Renders, but hides the "
     
    279279msgstr ""
    280280
    281 #: includes/class-wdevs-tax-switch-woocommerce.php:286
     281#: includes/class-wdevs-tax-switch-woocommerce.php:284
    282282msgid ""
    283283"Tax Switch blocks/shortcodes are always hidden on the cart and checkout "
     
    285285msgstr ""
    286286
    287 #: includes/class-wdevs-tax-switch-woocommerce.php:307
     287#: includes/class-wdevs-tax-switch-woocommerce.php:289
     288msgid "Price switching in mini cart"
     289msgstr ""
     290
     291#: includes/class-wdevs-tax-switch-woocommerce.php:291
     292msgid ""
     293"Allow customers to switch between prices including and excluding VAT in "
     294"the default WooCommerce mini cart."
     295msgstr ""
     296
     297#: includes/class-wdevs-tax-switch-woocommerce.php:292
     298msgid ""
     299"By default, price switching is disabled in the mini cart to keep cart "
     300"totals consistent."
     301msgstr ""
     302
     303#: includes/class-wdevs-tax-switch-woocommerce.php:314
    288304msgid "Shortcode settings"
    289305msgstr ""
    290306
    291 #: includes/class-wdevs-tax-switch-woocommerce.php:309
     307#: includes/class-wdevs-tax-switch-woocommerce.php:316
    292308msgid "Generate a tax switch shortcode."
    293309msgstr ""
  • tax-switch-for-woocommerce/trunk/public/class-wdevs-tax-switch-public.php

    r3293400 r3384402  
    6868    public function wrap_wc_price( $return, $price, $args, $unformatted_price, $original_price ) {
    6969
    70         if ( $this->is_in_cart_or_checkout() ) {
     70        if ( $this->is_in_cart_or_checkout() && ! $this->should_switch_in_mini_cart() ) {
    7171            return $return;
    7272        }
  • tax-switch-for-woocommerce/trunk/public/css/wdevs-tax-switch-public.css

    r3307210 r3384402  
    88    font-size: 100%;
    99}
     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  
    1717 * Plugin URI:           https://wijnberg.dev
    1818 * Description:          Let customers toggle between inclusive and exclusive VAT pricing in your WooCommerce store.
    19  * Version:              1.5.19
     19 * Version:              1.6.0
    2020 * Author:               Wijnberg Developments
    2121 * Author URI:           https://wijnberg.dev/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'WDEVS_TAX_SWITCH_VERSION', '1.5.19' );
     43define( 'WDEVS_TAX_SWITCH_VERSION', '1.6.0' );
    4444
    4545/**
     
    9393
    9494wdevs_tax_switch_run();
     95
     96
Note: See TracChangeset for help on using the changeset viewer.