We've a webshop built in Woocommerce and we accept crypto payments (Bitcoin, ETH etc).
Since we're based in the EU we need to calculate tax on our prices.
So every customer that's inside the EU needs to pay tax.
We've displayed the prices including tax (0.1 BTC for example). The customer pays 0.1 BTC and there is already a 0.02 TAX calculated within that price.
But what if we get a customer from without the EU? We want them to pay 0.1 BTC as well but then without the TAX rate.
Is this possible within woocommerce?
Thanks in advance!
Mand
Been searching high and low for a solution to this problem. Actually found it just 5 min ago.
Add this to your functions.php
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
Read more, https://github.com/woocommerce/woocommerce/wiki/How-Taxes-Work-in-WooCommerce#prices-including-tax---experimental-behavior
Related
I am building my website by using woocommerce, but i faced the problem of calculating the total amount of the order.
There is a shipping method which is 15% additional fee of the order, and there is a coupon offers $10 discount.
But woocommerce seems like apply the coupon before calculate shipping fee.
For example, the order total amount is $100, the expected result should be (100*1.15) - 10 = 105, but when i tested in the checkout page, the total amount is (100-10) * 1.15 = 103.5.
May I know how to apply the coupon after calculate the shipping fee?
Thank you.
I want to calculate amount correctly in woocommerce, which is apply coupon after calculate the shipping fee.
I use the API to set the prices on my site and its configured to accept inclusive prices.
I have set up the standard rate for the VAT for my country.
I now need to allow a neighbouring country to be able to purchase from my store. However, I want them to buy at the inclusive price but with no VAT.
I tried adding the country to the standard rates at 0% but that just deducts the local VAT from the price. So if the price is $15 normally, now will show as $12. I need the price to be the same as the local inclusive price but with 0% VAT.
So if I sell something for $15, the VAT may be $3 locally. On my local orders this what will show. Now if my foreign customer wants to buy something, it need to still show it at $15 but the VAT is 0%.
I just can't find a way to get the system configured that way.
Found the answer
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' );
On my Woocommerce shop I have a percentage based shipping cost. The percentage is set to 5 ([fee percent="5"]) which returns a wrong calculation, but interestingly enough it seems to be the separator that is placed wrong (see attached example). 5% in the example is 14.5 GBP, but Woocommerce returns the calculation as 1.45.
Any suggestions?
THANKS
I have a very big problem, I need some products do not specify the discount to be applied to the product or the difference in amount, but to directly specify the selling price including tax, I'll explain:
Sales price without discount -> 30.00
Sales price I wanted -> 12:56
12:56 I want to write directly without having to do subtractions and / or calculations of percentages, can you tell me how can I do? Thank you very much.
I will try to explain what I need:
By default woocommerce allows to handle just 1 scheduled sale price per product, I need the possibility to add another one (for simple and variable products).
In other words, for each product I need to have 3 different prices, depending on the date the purchase is made.
Also, in the product page I need to show ALWAYS the 3 prices and their relative scheduled period of time (even if it's in the past or future).
Example:
Product #1
from 01-01-2014 to 01-31-2014 you pay € 100 (this is what I need)
from 02-01-2014 to 02-28-2014 you pay € 200 (scheduled woocommerce
sale price) from 03-01-2014 and after you pay € 300 (regular woocommerce price)
Product #2
from 01-01-2014 to 01-31-2014 you pay € 150 (this is what I need)
from 02-01-2014 to 02-28-2014 you pay € 280 (scheduled woocommerce sale price)
from 03-01-2014 and after you pay € 330 (regular woocommerce price)
etc...
Any suggestion on how to add this feature in a new plugin?
You can easily customized these conditions using inner code on WooCoomerce. No need to use any extra plugin for the same. Following is the idea, how you can do that.. Hope this helps.
Having a look at the Product abstract class in WooCommerce the following php code gets whether or not the product is on sale:
return ($this->sale_price != $this->regular_price && $this->sale_price == $this->price);
Which seems to indicate that the _price has to be the same as the sale_price in order for it to be classed as on sale. So just
update_post_meta($id, '_price', 'new sale price here too');
you can edit this code as per your required conditions.