Code

Discussion on WooCommerce Tax Toggle

Discussion on WooCommerce Tax Toggle

By
Cart 1,277 sales

ymmv supports this item

Supported

This author's response time can be up to 1 business day.

384 comments found.

Hello. we’ve been using your plugin for some time now. We are trying to make a popup when entering the site which would ask the customer wether they are shopping privately or shopping through a business. The choice they make here will toggle tax on/off for the whole website. Would be great if we could have some assistance on the matter as we’re not really sure how to start this process. We currently have a button on the pages to toggle taxes, but it’s just not visible enough and therefore we need a popup whenever entering the site. Thanks!

Is there a way to change this into a toggle switch rather than a button?

Hey, in a way there is – it still needs to be a button to be accessible, but we can still change that to a Toggle style with some CSS and JS – you or your developer should be able to use what we provide to exactly customise it how you want – here is the code and instructions https://gist.github.com/thetwopct/646e8b627f81961575fa74b55c5ab04d – this code produces an iOS-style toggle. Hope this helps!

Your plugin breaks the pricing of the Yith Woocommerce Product Bundles plugin. Bundle prices get changed to zero in the minicart.

This is a bug. Could you fix this please?

Hi Matt, this is not a bug on our side and our plugin does not break WooCommerce. It’s a bug on the plugins side as they do not use standard WooCommerce markup to insert prices in to the page, therefore the price manipulations that Tax Toggle uses do not display. The plugin likely uses JavaScript on page to manipulate pricing, so unless YITH explicitly make their plugin compatible with Tax Toggle the prices data does not exist for our plugin to manipulate. YITH unfortunately do not make plugins that easily customisable, so using hooks, filters to manipulate their plugin is not possible (last time we checked). This is not my fault, this is YITHs fault. Product Bundles are not too hard to program, so if this was my store / custom theme, I would create my own solution, which could then use standard WooCommerce output and of which Tax Toggle would then work with. Any reasonably competent WordPress developer should be able to make this custom solution. Thanks

Would you be able to provide paid help in order to customize the Yith Product Bundles plugin in such a way that prices will be processed correctly by your Tax Toggle plugin?

I am unable to offer any customisations at this time. I would recommend forking YITH code and inserting the exc/inc price in to their code output. YITH by default does not offer any hooks or filters, so customising it is pretty difficult. Alternatively, other plugins should be explored.

I would like to have the VAT percentage be displayed with the toggle. So eg. inc. 21% VAT/Exc 9% VAT etc, depending on the actual tax rate of the products.

How could I achieve this?

Any support???

Hi Matt, sorry for the delay, this is not a feature we support out of the box and would require custom development. Any WordPress developer can do this for you and hook in to our code and display the % tax per product. It’s a nice feature though, so I will add it to the plugins roadmap ideas. Thanks.

Two extra questions:

1. Lets say I have hard-coded some numbers in a piece text, which should represent a price (eg. Free shipping threshold). How can I get this to change with the toggle as well? Any classes that I could add to the text for it to be recognized by the toggle as a price which needs to be changed with the toggle? Hope this makes sense

2. https://wordpress.org/plugins/advanced-dynamic-pricing-for-woocommerce/ Prices in the discount table from this plugin don’t change with the toggle. Is this something that you could perhaps fix?

Thanks in advance. The plugin is very useful.

Any support?

Hi Matt, sorry for the delay in coming back to you. For your questions:

1) If the price is not going through the WooCommerce\Product class then the Toggle would not know how to apply any changes to it. A workaround is in your markup to include the tax include and exclude price of the text, one is hidden and one is not, and then toggle its display along with the Tax toggles status. Any developer can build this for you (simple JS), either using their own code or adapting the plugins code (the plugin sets the status of the toggle on page load as a JS variable).

2) This is not an issue with our plugin, but an issue with plugins manipulating prices using JavaScript and non-standard WooCommerce functions. We are working on a new version of Tax Toggle which will introduce a way for our plugin to be compatible with all plugins by changing the way we change the prices on the page (would require hard refresh on toggle), however with the fast pace of change WooCommerce is seeing with block support, the development is quite slow as every few weeks the development landscape changes and there is no release date for it. Developers have used custom code to alter other plugins markup, and this may be possible for you with ADP, but it depends on how they made their plugin and what hooks and filters are available. Again, any WordPress developer should understand this and be able to make it work using that plugin – but its not something I can possibly offer under support for this plugin (because the changes are required on ADP’s side, not Tax Toggles, and would require 2-16 hours work). Thanks

Thanks for the solution on the first issue, that should do it!

Hi, I would like the prices of the products in my cart to also get changed with the toggle. Now this doesn’t work.

Could you solve this for me?

Just opened a ticket. Hope you can help me soon :) Thanks in advance

Oh I’m sorry, I misunderstood. I assumed you meant the minicart. We changed the way the toggle works on the Cart to exactly how you described – instead of changing individual prices we just hide or show total tax based on the setting. This was to prevent confusion as the cart and checkout is part of buying process where your stores tax settings or customers tax settings should be prominent. There is nothing wrong with the plugin or your theme, this is expected behaviour of the plugin as per plugin description.

To get what you want requires custom work. Building this change/feature is not something I am able to offer right now due to personal reasons, but any developer can hook in to the plugins code and build this functionality for you if you wanted using the plugins code as a basis. I would estimate it would take a developer maybe 1 hour, 2 hours max. They would provide a function you would add to your functions.php file, and then cart would follow the tax toggle. I recommend Codeable to hire a freelancer as they vet each of their freelancers before allowing them to bid for jobs.

I will also add this option to a future version of the plugin, it’s not often it’s asked for but to do it as part of a plugin refactor makes sense.

Thanks for using Tax Toggle.

Thanks for the reply. I actually just managed to solve it myself!

It was actually quite easy to do with some copied code from ./includes/minicart.php manipulating $price_html on the woocommerce_cart_item_price hook.

Hi there,

We have been using this great plugin on our website https://www.filtersdirect.uk/ but yesterday noticed that it isn’t showing up anymore.

We’ve unsure why this would be. Is it possible to take a quick look and see what the issue may be?

Many thanks Will

Hi James, I hope you are well.

I’ve tried opening a ticket on your twopercent website but haven’t hear back as yet.

I have used your Tax Toggle plugin to create a website for a client of mine. The client is saying that the variable product prices are not updating when you toggle, and I see what he means now.

For example, if you visit this link: http://darnelltradeprices-co-uk.stackstaging.com/product/timber-2/ – and select a variable option, then press the toggle to turn off VAT, it doesn’t update the price to reflect this.

Are you able to take a look for me and see if it is working properly for us?

Best wishes,

Barney

Hello I have sent you a ticket on your site asking for the latest version of the plugin but I’ve had no response? The current version I have does not work with WooCommerce.

Hello, i recently updated some plugins on my site, including woocommerce and VAT plugin does not work anymore. Please see clip here: https://cln.sh/NJh4mMxp

Hi there, is this toggle compatible with WPC Composite Products please? I tried another plugin but it didn’t work. Thank you so much :)

Issue 1: Basket summary total right-side header always displayed price excluding VAT (Tax) irrespective of toggle settings.

Issue 2: In cart https://staging.kebur.co.uk/cart/ Basket Total disappears when toggle is set to price excluding VAT”

Please can you advise? I can give developer access if necessary.

Hey Jo! Thanks for purchasing Tax Toggle and sorry you’re having problems. I think your site is password protected as all I see is a holding page. 1) Should toggle with the toggle 2) The total and tax total on the cart disappears with the toggle, this is default behaviour. How do you want it to work? If you want to open a ticket with me to give me access I can check out the issues – https://desk.thetwopercent.co.uk/index.php?a=add&category=2

Hi there, thanks for a great plugin. Is it possible to have it work like a toggle, like this image? https://ibb.co/N1r16Gh

The usability for my client is not very clear how the wording does not change, only the red background and tick is added. It seems like when it says ‘Show GST’ that it is showing GST, but that is actually the off state which only becomes clear when you click it. In the least, it would help to be able to change the wording for when it is off and on, if possible.

Any help appreciated.

Thanks Kitty

Hi Kitty! Thanks for purchasing Tax Toggle! Yes we have a few different themes you can install for version <1.3.6. Check out this this Github link for an iOS toggle style – https://gist.github.com/thetwopct/646e8b627f81961575fa74b55c5ab04d For anything else please open a ticket with us at https://desk.thetwopercent.co.uk/index.php?a=add&category=2 or get your developer to customise the toggle to meet your requirements. Hope that helps James

I have just purchased the tax toggle plugin. It works on the shop page, as you can see here: https://shadowwindows.com/velux/

But it doesn’t work on my single product page: https://shadowwindows.com/velux/velux-duogardiner-2-i-1/ and https://shadowwindows.com/rullegardiner/sunbell-test/

The first product is with variations, the second one is one I am setting up with custom price calculation, can this be the reason?

Hey Shadow! Thanks for purchasing Tax Toggle! I checked out your site, and I think you must be using another price manipulation plugin, possibly called Shop Engine? When two price manipulation plugins are used together they very often have issues talking to each other. We have a beta of version 2 of Tax Toggle that may fix this, if you want to try it out please open a supper ticket with me and I can send it to you https://desk.thetwopercent.co.uk/index.php?a=add&category=2 Thanks James

The tax toggle works on the main price but we have ‘product options’ which are not being updated and still showing ex VAT pricing. Is this something you can help with?

Hey Remlap3! Thanks for purchasing Tax Toggle. I’m not aware of Product Options in WooCommerce, so if this is from a 3rd party plugin it may not be compatible with Tax Toggle. But I’d need to know more details about the plugin before confirming. Can you open a support ticket with me including your WordPress Site Health report and I can advise. Thanks!

Hi, i can not get tax toggle to work on my website the prices just seem to stay the same can you help?

www.natural-angle.co.uk

Hi i have opened a ticket as i have checked all tax setting and still not working :( Ticket ID: WUJ-BTM-MEHV

Hi i am still awaiting a reply this is the only thing stopping my website from going live – Thanks :)

Hi Daniel, I checked out your site and your taxes are not setup properly (the toggle is working as the Inc/Exc text changes – this means your Inc/Exc price is exactly the same because taxes are not setup correctly). Please confirm you have followed the 5 steps in this article https://desk.thetwopercent.co.uk/knowledgebase.php?article=2 and if the Tax Toggle is still not working please send me screenshots of each of the 5 steps. I have already updated your ticket – by opening multiple tickets asking the same question you delayed any response.

Hello, I requested support on Jan 27. But I still didn’t get an answer. Could you pls reply back? Thanks! Ticket tracking ID: G9H-8RX-Q69S

Hey Tolga, I am sorry for the delay, I have been sick and its just me in the company :) Anyway, here is a link to a customised Tax Toggle that should display how you want https://gist.github.com/thetwopct/fad96282d0557476deffe6935e2db537 Having a modal intro is a good idea and if there are enough requests for it I will integrate that in to the plugin. Thanks for your support and apologies again. James

Hi, I am looking to buy this and wonder if your plugin can do the toggle like the button on the header of this site https://www.agcequipment.com.au/coucou-4-piece-bowl-set-matte-black?

Hey Ozwds, thanks for your question! Out of the box, the plugin is not styled like this. But many developers customise the Tax Toggle to exactly fit their needs, including designs like this. As part of the next Tax Toggle release, I have designed and developed a few toggles similar to this. Due to a few recent requests I have back ported a few of them to this current version. I can send you the code snippets that you can install alongside the plugin if you open a support ticket with me – https://desk.thetwopercent.co.uk/index.php?a=add&category=2

Hi – as per the roadmap from late last year, just querying if there is an ETA on this point?

Optional Inc/Exc Tax Button view (a real toggle to embed in your header / menus)

Hey u3recr! Thanks for purchasing Tax Toggle! Yes I am currently working on updating the Tax Toggle, but its not quite ready for release yet. I can send you some customisation code if you can open a support ticket with me – if you want to let me know what you want the toggle to say (i.e. On / Off, Inclusive/Exclusive) etc I can help make sure that works https://desk.thetwopercent.co.uk/index.php?a=add&category=2

Hello, You plugin not working on my website : https://pidev.fr/product/panneau-alveolaire/

Please select options and look the price. Not working.

Please help

Hey Pidevweb, sorry to hear you’re having issues. I’ve checked the link and cannot see the plugin installed. Have you followed the simple setup guide? https://desk.thetwopercent.co.uk/knowledgebase.php?article=1 After you’ve finished setup, if the toggle is still not working please open a support ticket with me so I can debug your site and get this working for you https://desk.thetwopercent.co.uk/index.php?a=add&category=2

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey