Count other prices from price incl tax - woocommerce

we need to solve problem with prices and taxes based on country:
In EU countries we need 21% tax. For non-EU countries we need 0% tax.
We need to have always price $89 incl. Tax.
When I set up in Woocommerce Price incl. tax and put there $89 - it's counting that this is the price incl. tax, but realculating price:
For 0 % VAT
from 21 % as $89 - 0.21*$89 = price for non EU countries.
We need:
Price for EU:
$ 89 % incl tax, 21% tax, $73,6 without Tax
Price for non EU:
$ 89 % incl tax, 0% tax, $0 without Tax
Any ideas how to manage this?
Thank you a lot!

There are plugins available, I have used Aelia Price by Country in the past.
There is also this, experimental, official option:
A common feature request is to charge the same amount everywhere and
absorb the differences in taxes. To enable this feature in 2.5 you
would use the code:
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' )
More Details here.

Related

Increase price of all products after every sale (WOOCOMMERCE)

I would like to increase the price by $20 of all products after every new sell in woocommerce
Exemple:
Starting prices $50
First order : all products prices become $70
Second order : all products prices become $90
Third : all products prices become $110
and so...
I believe this plugin should give you what you want it is a bit outdated so use at your own caution
https://wordpress.org/plugins/raise-prices-with-sales-for-woocommerce/

Woocommerce recalculating tax on completed orders ignores that VAT is included in product

Problem: When setting up a site I forgot to activate taxes. My accountant asked me to correct it so I tried the Woocommerce recalculating button on completed (older) orders. Unfortunately, it ignores the setting that VAT is included in the product price and adds tax to product price (increasing the total order amount incorrectly)
Activated taxes for new orders
Now when placing a new order, the tax (21%) gets show correctly on checkout and invoice. The tax is included in the price & order total.
Product price 14,95
Tax 3,14 (product price excl. tax 12,35)
Total: 14,95
Recalculating old orders
For older orders when tax was not enabled however it is a different story:
Woocommerce offers the ability to recalculate orders. If I do this for an old order: the tax is added to the product price instead of shown to be included in the product price.
Product price 14,95
Tax 3,14
Total: 18,09
As you can see recalculation ignores the setting that the product price includes VAT.
Have you seen this behaviour, or do you have an idea how to solve this problem?

Woocommerce - Save and display product previous sales prices

In our country,under the new law, the display of discounted product prices will change.
We have to display:
Regular Price
Sales Price
Lowest sales price in the last 30 days.
And the % discount should be calculated with a new logic.
e.g. if in the last 30 days there was a 20% discount from the regular price, and later we give a 25% percent, the appeared % discount wouldnt be 25%, that would be only 5% (because this is the difference between new and past sales prices)
Could you give me an idea how could we do this?

Woo commerce customer see custom product price

Please provide some solution on this conditions.
Retailer adds a price x, admin has added a commission of 10% so the customer will see x+10% price. But when the product is sold the 10% deduction id done on the total price.
For example:
Retailer price - 500
Admin commission 10% - 50
Customer purchase price is - 550
When distribution of price is done it is 55 to admin (10% of the customer purchase price) and retailer 495 (remaining amount)
need a solution so as retailer gets the price entered of 500
Please show some code. This must be a wrong mathematical calculation. If you add 10% to the product and then you want to subtract that 10% you added you just can't subtract 10% because it wont be the results you are expecting.
The approach I would taken as multiplying the retailers price by 1.1 is the same as adding 10%. You can the divide the total amount by 1.1
Like this:
500 * 1.1 = 550
550 / 1.1 = 500
Hope this works!

Add flat rate shipping fees in Woocommerce?

Hi , I am working in Woocommerce and I want to add shipping fees $7 on
the total order that less than $50 .
Could you please help me on this issue ?
Advanced Costs option under WC settings
The Cost field allows you to charge a flat rate per item, a percentage based cost or a minimum fee.
Available placeholders:
[qty] – Number of products in the cart
[fee] – An additional fee. This fee has two optional arguments.
percent – A percentage based on total order cost.
min_fee – A minimum amount. Useful when using percentages.
Examples
10 + ( 2 * [qty] ) – A base shipping cost of $10 plus $2 for each item in the cart.
20 + [fee percent="10" min_fee="4"] – A base shipping cost of $20 plus 10% of the order total, which is at least $4.
Check here

Resources