PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Issue with: woocs_raw_woocommerce_price

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

SHOP has Denmark as default country with DKK as default currency.

This is the config of WooCommerce tax setup.

Plugin: WooCommerce Shipping & Tax (Author: WooCommerce) To handle different tax rates.

  • Yes, I will enter prices inclusive of tax.
  • Display prices in the shop (Including Tax)
  • Display prices during cart and checkout (Including Tax)
  • Display tax totals (As single Total)

The price rounding issue.

Normal price: 385,00 DKK (incl 25% vat)

  • DK = Checkout > Billing Information > Country/Region > Denmark.
  • DE = Checkout > Billing Information > Country/Region > Germany.
  • DK: raw_woocommerce_price (Function Price: 385) incl 25% vat -> DISPLAYED PRICE: 385,00
  • DK: woocs_raw_woocommerce_price (Function Price: 385.00) incl 25% vat -> DISPLAYED PRICE: 385,00
  • 385.00 DKK – 25% VAT = 308.00 DKK
  • 308.00 DKK + 19% VAT = 366.52 DKK
  • DE: raw_woocommerce_price (Function Price: 366.52) incl 19% vat -> DISPLAYED PRICE: 366,52
  • DE: woocs_raw_woocommerce_price (Function Price: 385.00) incl 19% vat -> DISPLAYED PRICE: 366,52

So the last line is the issue, as I can’t round the price.

is it safe to use “raw_woocommerce_price” with you plugin, as I can see “woocs_raw_woocommerce_price” do not handle the tax the same way?

https://codecanyon.net/comments/29622311

Hello

please describe in more detail why you want to use this hook  woocs_raw_woocommerce_price

So no matter what currency or country vat percentage, I will always have the possibility to make pretty prices (,05 / ,10 / ,50 / , 95 etc).

Hello

This hook works before taxes are calculated, so in your case you should find another rounding hook.