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

Rounded 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.

Hello

Need your asistenace, and I don't find where create a Ticket and for that reason, I use this form.

We need to rount our price (cents), e.g.: If in the prices, the cents ar from $01 to $49 'round' the cents to $.50 and if the prices is from $.51 to $.98, then 'round' price to $.99

We try this:

// WOO WOOCS ROUND CENTS
"add_filter('woocs_raw_woocommerce_price', function ($price) {
global $WOOCS;

// Definir las monedas a las que se aplicará la lógica
$currencies = ['USD', 'CAD', 'MXN'];

if (in_array($WOOCS->current_currency, $currencies)) {
// Extraer la parte decimal del precio
$cents = fmod($price, 1);

if ($cents > 0.00 && $cents < 0.50) {
$price = floor($price) + 0.50;
} elseif ($cents > 0.50 && $cents < 0.99) {
$price = floor($price) + 0.99;
}
}

return $price;
});"

But doesn't work.

Can you help us with this?

Thank you a lot and God Bless you All

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png

Unfortunately, fixing and creating custom code is not included in support

Describe in more detail what exactly is not working.  The filter doesn't work and the prices don't change?  OR  Is your custom code not rounding prices correctly?

 

I send license !

Hello

Unfortunately the license key is not valid.

Describe in more detail what exactly is not working.

Hi Pablo.

I guess you have some confusion regarding license, because IT IS valid.

PRIVATE DATA!

And please FORGET about my request. I resolved.

Thank you and God Bless you All.

By the way, if we have a problem like my license is invalid, then please solve it, because we paid for the plugin, if the license is as you say, NOT valid, then we will ask for a refund via envato, we don't want to have any problems with license issues, as it leads to misunderstandings.

Thanks again

Thank you.

Hello

Yes, you are right, there were problems with the envato service. I checked it today - the key is valid