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

Different prices are in product and cart

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.

Hello,

I have a problem with variable products. Looks like prices do rounding before converting in my currency (UAH). For example:

4€ – 4.49€ = 4€

4.5€ – 4.99€ = 5€

As a result prices with cents don't work corretly and customers see a price for variable product 4.49€  like a 4€, but then customers see correct price in cart. Prices are displayed correctly in simple products and cart. Incorrect prices for variable products are displayed everywhere except for the cart.

 

Hello

Cents are hiding just for the front.

You  can  try  this  option -  https://c2n.me/45exFkw.png

Prices in EUR have woocs_decimals = 2, but nothing changes. I see the price 4.49 € like a 4.00€, then 4.00€ convert to incorrect price in UAH.

Hello

Ок!  If this is not suitable for you.

Use these hooks to round the price according to your logic - https://currency-switcher.com/hook/woocs_raw_woocommerce_price/  AND  https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/

I tried these hooks before, but they don't round prices to the nearest 50 cents. I still have different prices on product page and cart.

For example, hook"How to round prices to 500" rounded prices on not variable products and prices in cart, but no effect for variable products.

Hello

Please read these articles again.  For variable products use the second hook

Good day, I tried this hook https://currency-switcher.com/hook/woocs_woocommerce_variation_prices/ . Hook make rounding of converted price UAH, but problem is with rounding my prices in first currency EUR. Where prices are rounding in the original currency EUR, before converting in UAH? I want to remove any rounding of my prices.

Hello

Check  current  currency - https://currency-switcher.com/function/woocs-current_currency/  and if it is EUR do not round the prices

Hello,

global $WOOCS;
echo $WOOCS->current_currency;
This code prints"UAH". If I do default_currency, the result is"EUR".

Hello

Yes!  So add  in  code  something  like:

global $WOOCS;

if($WOOCS->current_currency=='UAH'){

//round  price

}