Display discount price also on price without tax - wordpress

I set discout percentage on 5% and it's ok it works fine but only for regular price with tax.
I also displaying prices with no tax included.
It looks like:
First price is with 5% discount.
second price is the price without tax.
How can I also display it like above?
Old price crossed and correct price next to.
Second price is counted by sufix {price_excluding_tax}

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?

Two different prices for the one product on the checkout page (bug)

The correct price for the product is €38 and VAT is included to the price #23%
In the products page the price 30.89 plus 23% = 30.894*1.23 = 37.99962
But when I add a product and go tho the cart, the total price and the cart prices are out by a cent
the cart is €38 but the check out is €38.01
I tried every combination possible to get both prices correct and I can get €37.99 and €40.01 but I can't get €40 in both carts.
I'm not sure how they could be different I thought they would be going by the same calculation but obviously not.
It looks like a rounding issue. Try increasing the number of decimals in WooCommerce > Settings > General

Disable Variable Product Price When Select a Variable of Woocommerce Products

i want to display price when user select a variable of product one time,but woocommerce shows price twice.
if prices between variables different replace variable price to product price and dosnt show price of a selected variable ,if not shows price difference also in product price.
some body help me

Resources