Questions tagged [tax]

a financial charge or other levy imposed upon a taxpayer (an individual or legal entity) by a state or the functional equivalent of a state to fund various public expenditures.

A Tax is a financial charge or other levy imposed upon a taxpayer (an individual or legal entity) by a state or the functional equivalent of a state to fund various public expenditures.

286 questions
3
votes
1 answer

Get tax rate used in an order for one product and for shipping in WooCommerce

In woocomerce, how to get the tax rate used in an order for one product ? And the tax rate For shipping ?
Cedric
  • 5,135
  • 11
  • 42
  • 61
3
votes
2 answers

Hide VAT for specific user roles in WooCommerce

In WooCommerce I have some custom code to hide VAT for specific user roles, and it is working perfectly for all roles except for one called Platinum, where it doesn't hide the VAT but remains as all default user roles. What I need is for this code…
eMikkelsen
  • 407
  • 2
  • 13
  • 27
3
votes
1 answer

Ruby - How to calculate subtotal of items in a grocery list

I want to create a program where a user basically "creates" a grocery list where the user inputs item and price until they want to quit. If the user enters ’q’ or ’Q’, then the program should stop prompting the user and instead should calculate the…
Lily Rubio
  • 33
  • 4
3
votes
3 answers

Customize Tax amount in "woocommerce_package_rates" hook

I recently tried to modify all my shipping rates with hook to apply discount. Here's my code : add_filter( 'woocommerce_package_rates', 'woocommerce_package_rates' ); function woocommerce_package_rates( $rates ) { $user_id =…
Jean R.
  • 476
  • 4
  • 16
  • 44
3
votes
1 answer

Adding Tax to Shipping in Opencart

How do you add tax to a shipping amount on Opencart? I obtain the following checkout summary on my site: Sub-Total: £332.50 Delivery Zone 1: £49.99 VAT (20%): £66.50 Total: £448.99 Delivery is £49.99 inclusive of VAT so it needs to read as…
user2083899
  • 71
  • 1
  • 6
2
votes
1 answer

Bulk change the tax status from all products in WooCommerce

I am changing my business type, which will not permit me to collect tax on products - ie, all products must be without tax. So, with over 1200 products, how can I change the status from 'taxable' to not taxable ? I have seen that the posts_meta…
Simon
  • 2,208
  • 4
  • 32
  • 47
2
votes
1 answer

How to retain taxes collected in Platform Account - Stripe Connect

I am using Stripe Connect for my platform. My platform is responsible to ensure the appropriate amount of tax is charged, collected and paid out to the relevant tax authority. My problem is Stripe calculates the tax correctly, charges it to the…
Kevin K
  • 121
  • 10
2
votes
1 answer

WooCommerce custom shipping costs for min required subtotal with tax calculations

I have set some Shipping methods with taxable option enabled in WooCommerce. I use this code to set up different shipping cost if spend over X amount: // Extra discount on shipping for orders of values of above 150 or 100. function…
2
votes
2 answers

Remove all taxes in WooCommerce for a min cart total and specific countries

we need to charge 0 VAT for UK orders that are greater than 150 euro including shipping and payment gateway fees but excluding the 20% normal VAT. So if a British residential address orders something at 130 and shipping and payment gateway fees are…
Joe
  • 49
  • 1
  • 1
  • 8
2
votes
1 answer

WooCommerce: Get discount total only for items from a specific tax class

I want to export only the coupon totals from items with reduced tax rate (the totals you can see in the image below). With the totals of these items I do the same. A great answer helped me to export only the totals of order items with reduced tax…
Cray
  • 5,307
  • 11
  • 70
  • 166
2
votes
1 answer

Add "VAT REVERSE CHARGE" when company is from EU in WooCommerce

I have a B2B webshop with Wordpress and WooCommerce using WooCommerce Subscriptions. As I am selling digital goods I need to do add special VAT rules to my orders for companies within the EU. My store is based in the Netherlands. I am using this…
2
votes
1 answer

Using WC_Tax::get_tax_classes() to get all WooCommerce tax-classes

I try to get the active tax-classes in Woocommerce in my custom plugin. When I use the WC_Tax::get_tax_classes(), I get a empty array. How does WC_tax class work without order details and run by itself?
2
votes
2 answers

Increase WooCommerce tax calculations precision and keep displayed prices with two decimals

In Woocommerce settings, I have set 6 decimals in order to get more accurate tax calculation. However, I need all prices and amounts to be displayed with only 2 decimals in frontend, emails etc. I found two functions add_filter('wc_price_args',…
fredrik
  • 85
  • 2
  • 11
2
votes
1 answer

WooCommerce: Get order export with tax lines

I want to export all my orders with the tax lines separated by tax rate. For example: An order could have the tax rates 7% and 19%. If the order has products with both tax rates, I only get one combined tax amount. Let's say the order has two…
Cray
  • 5,307
  • 11
  • 70
  • 166
2
votes
1 answer

Show single product prices with and without VAT in WooCommerce

I'm trying to show price with and without VAT on every Single Product page in a WooCommerce store. I already done it for variable products with the script below, thanks to the WooCommerce_available_variation hook: add_filter(…
user29780
  • 35
  • 1
  • 5
1
2
3
19 20