Woocommerce: Customize recalculate button to absorb taxes into total price - woocommerce

When creating manual orders, usually you have to set a custom price for the product. When clicking on "Recalculate", it calculates the taxes and adds them to it
Since I already have "Load prices by country" to get the system price and taxes,
Would it be possible for manual pricing to just calculate the tax according to the price set without adding the result to the total?
I'm seeing that the button has a calculate-action class:
Maybe if I find the function that that class triggers I can modify it for my purpose?

I think you should define tax and shipping country wise
Go to woocommerce -> settings -> Tax -> Standard rates and define taxes country wise
Go to woocommerce -> settings -> shipping and define shipping country wise
Reference URL : https://docs.woocommerce.com/document/setting-up-taxes-in-woocommerce/

Related

WooCommerce: tax price filter not being applied in admin

I've implemented a filter as per this WooCommerce article on taxes:
add_filter('woocommerce_adjust_non_base_location_prices', '__return_false');
This effectively 'ignores' tax rates on checkout: an €8,99 product (where prices are added inclusive of tax) being sold from a UK store will cost €8,99 to a German customer, a French customer or an ROI customer. This all works fine on the front end.
However, I just created an order in the backend for a German customer, and that €8,99 product is being added to the order at €7,49 with no tax. I understand from a tax perspective why this is happening (a UK store selling in Germany shouldn't apply tax, so 8.99 - 20% UK VAT = 7.49), however this seems to be ignoring my woocommerce_adjust_non_base_location_prices filter.
At the moment my filter call is just a single line in a custom plugin, so being implemented at plugins_loaded, I guess. There's no condition for it (e.g. if (!is_admin()) {}), so I'm wondering if I need some other kind of condition to ensure it is applied to admin orders, or if I'm looking at a bug?

WooCommerce : set TAX on product page

I'd like to set a specific Tax on each product.
I see i can create tax classes, but i'm going to have many different taxes, one per product, on more than 300 products.
Is it possible to set the tax % on the product page when i create it ?
Do you know a plugin for that ?
What want to do is to calculate Tax Based On SKU and not shipping address.
So i need to have a field on product page where i can enter a TVA number, manually.
Do you think it's possible ?
OR an other way maybe :
- have one taxe class
- in the tax class add many taxes rates with all the same country code, and no zip code
- create a field in the product page to assign the right tax rate for the product (instead of assign a class rate)
What do you think about that ?

Woocommerce: Use Stock Management for different attributes

I would like to use the Stock Management in Woocommerce. I have some products which use variing attributes (sizes in my case), however, the stock management only lets me enter a anmount for the whole product (eg 11 running Shirts instead of 11 running shirts in size L). Is there any way to use stock management on attributes?
Thank you for your help.
From the variable product documentation:
Each variation may be assigned:[...]
Stock quantity – Stock for the specific variation, or left blank to use the product’s stock settings.
So, set your product as variable product and check "used for variation" for your size attribute like this:
Then go on the variation tab and generate a variation for each attribute value. On each variation, you have a checkbox to activate the stock management for this attribute value - if it's not checked, it will use the general product inventory in the inventory tab.

Overriding global tax settings in woocommerce

I've set a global tax on the service fee's, however I need to override those service fees on some products. When I attempt to change the tax settings on the item itself I get the global service fee's and the new one's I changed on the product.
To override tax calcs for single product the easiest way is to just set up a new tax class for all of the tax rates you need in WooCommerce -> Settings -> Tax and then just assign that individual product to the necessary tax rate in the edit product screen

Woocommerce single product tax status trumps WooTax, and Tax Cloud

I signed up for Tax Cloud and use Woo Tax to calculate tax. I am trying to only collect sales tax when shipping to WA. Some of my products' tax status is set to none while some is set to taxable. When I changed my shipping address on the taxable products the sales tax still showed up, even if the state I chose was listed as states without sales tax in tax cloud. When I chose products tax status none then I got no sales tax, even if I was shipping to WA.
My question is two-fold: 1) Does tax status taxable mean it will add sales tax no matter what?, and 2) what can I do to make sure any and all products get sales tax when shipping to WA?
When using WooTax and TaxCloud, you should leave the WooCommerce "Tax Status" property as "Taxable" (regardless of your local laws - I will explain).
This is because TaxCloud automatically determines the taxable status of what you are selling based upon the Taxability Information Code (TIC) selected (drop-down menu right below the main edit product panel). The TIC along with your orders' origin and destination addresses, and your TaxCloud configuration control where you collect sales tax, and how much sales tax is due and collected.
This way, if you are selling clothing or prewritten software, or any of the other categories of goods options possible, you do not have to know if the item is taxable, exempt, or partially exempt in the jurisdiction of your customer - just select the TIC category, and TaxCloud will handle it correctly for each transaction's unique fact pattern (including sales tax holidays).
So, to answer your questions:
Be sure the product Tax Status is set to Taxable, to ensure
WooCommerce doesn't try to hide the item from TaxCloud for
calculation.
Be sure to set the appropriate TIC code for the
product (review all the options).
Within TaxCloud, in the "Tax States" area, configure where
you want to collect sales tax.
One more thing... Review your WooCommerce --> Settings --> Tax area to be sure everything is configured correctly:
Enable Taxes: True (Checked)
Prices Entered With Tax: No
Calculate Tax Based On: Customer Shipping Address
Shipping Tax Class: Based upon cart items
Rounding: Unchecked
Additional Tax Classes: [irrelevant - overridden by TaxCloud TIC for each product]
Display Prices in the Shop: Excluding Tax
Display Prices During Cart and Checkout: Excluding Tax
Display Tax Totals:: Itemized
That's all there is to it. Please feel free to call or email TaxCloud customer service if we can help in any way.
Thanks!

Resources