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

Problem with fixed Prices/ Geo Pricing and Sale prices.

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'am currently facing in issue regarding the sale price for the default language. I have a product with a standard price of 80€ and a sale price of 0€. I have added Geo fixed pricing wich works fine for the regular price, but does not switch the sales price in different currencys expect for my second languauge. It seems like the sale price 0.00 is not accpeted as a value, because it always switches back to"auto". I thought"auto" means that the price fill be fetched from the main currency sale price, but it doesn't. Instead the regular price is displayed.

If I put in a price like 0.01 everything is working fine.

Thank your for any suggestions.

I am not a PHP developer, but I had a look inside the product_price_data.php and found following line:

echo($value_sale > 0 ? $value_sale : '') ?>

Is this maybe something where $value_sale needs a value higher than 0? Couldn't I switch it to echo($value_sale >= 0 ? $value_sale : '')?

Okay, I fixed it. I will post the solution if anyone needs it.

The problem is in the fixed_price.php

if (is_array($_POST['woocs_sale_price'][$post_id])) {
foreach ($_POST['woocs_sale_price'][$post_id] as $code => $price) {

$price= $this->prepare_float_val($price);
if ($price > 0) {
update_post_meta($post_id, '_woocs_sale_price_' . $code, $price);
} else {
update_post_meta($post_id, '_woocs_sale_price_' . $code, -1);
}
}

simply witch the part : if ($price > 0) to if ($price >= 0)  and the sales input field for fixed prices will accept 0 as a normal value.

Hello

Great!  Thank you  for  cooperation!