Support

Content of the article

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

Error currency after update 2.9

(new from 01-07-2019)
12

Hi after the update to 2.9, all my site is showing in USD, i dont change anything in the site or in the config of your plugin.

 

Hello

Paste your lisense here - https://clip2net.com/s/42Aqbg6  and  wp-admin access - https://c2n.me/42BAoj4.png

I will check  it

Hola Pablo te adjunte un video de lo que sucede. todo comenzo desde la actualizacion 1.2.9, intente buscar la 1.2.8.2, pero solo encontre las versiones 2.*.*.*

Te agradeceria la ayuda.

 

Saludos

Ok, por lo que puedo entender y analizar, si borro todas las cookies y todo vuelvo a ver el sitio en la moneda correcta, al loguearse con mi usuario, ahi es cuando los importes se vuelven a pasar a dolares.

 

Cierro la sesion de usuario y vuelve a verse en la moneda correcta.

No se que es lo que esta haciendo eso.

 

Probe desactivar el plugin de cahce y hace lo mismo.

Gracias

Hello

 

Ok!  Please  drop me FTP access - https://c2n.me/42BAoj4.png

Can  I deactivate  plugins/theme to test?

Did you customize  a code?

Already send

Yo can disabe the plugins.

I dont customize the code

Hi Pablo i install again the version 1.2.8.2 and now work fine the site.

So the problem is something in the last update when the user ares logged in.

If you need to test it, do it.

Thanks

 

 

 

 

Hi Pablo i see you work today but you leave both the WOOCS - WooCommerce Currency Switcher and WOOCS - WooCommerce Currency Switcher OLD, deactivated.

 

I can activate the OLD version to see the site in my currency???

Yes. Sorry!

tomorrow I will continue to work

Hi Pablo no problem, i already clone the site to a dev sit if you need to touch and try anithing i leave de details on the private data.

 

Thanks

Hello

 

FTP   access  to test site?

 

Hi Pablo i already add to the private data.

 

Thanks

Hello

 

I fix  it  on test  site!  You can do test

In file- \plugins\woocommerce-currency-switcher\classes\woocs_after_33.php  comment/delete  this line - https://c2n.me/42FRYYT.png

Do you want me to fix it on the original site?

In the original site you left the version 2.2.9, I uninstalled it and installed version 1.2.9 ????

Version 1.2.8 OLD I'll leave for anything.

I wait your answer.
Thank you

I take and I make the last conusulta, I was looking at the faqs, and did not understand for example I have the price of a product in dollars at $ 1.33, the system multiplies it by $ 48, so it appears at $ 63.84

If I want to round up that number to be numberless numbers I can do it, what I did not find is if there is a way to round the values to multiples of 5 or 10, and always upwards never downwards.

In that case if it were multiplo of 5 it would be $ 65
If it were multiples of 10 $ 70

Thank you for all of your help

Hi Pablo another question for when you reply this.

in future updates i need to to the same change to this file????

 

Thanks

Pablo i see you already update the plugin, thanks for all the last question i have is, I was looking at the faqs, and did not understand for example I have the price of a product in dollars at $ 1.33, the system multiplies it by $ 48, so it appears at $ 63.84

If I want to round up that number to be numberless numbers I can do it, what I did not find is if there is a way to round the values to multiples of 5 or 10, and always upwards never downwards.

In that case if it were multiplo of 5 it would be $ 65
If it were multiples of 10 $ 70

Thank you for all of your help

Hello

You can  delete  version 2.2.9.  you helped me solve the problem - I can give you a paid version as a gift (without a license)

All fixes are included in the new version.

read   this please - https://currency-switcher.com/hook/woocs_raw_woocommerce_price/

try

return(ceil($price)%5 === 0) ? ceil($price) : round(($price+5/2)/5)*5;

Hello Pablo, I have already uninstalled it, and I have left version 1.2.9.1.

About the gift is much appreciated.

Now I ask you the last question since I do not want to abuse your help.

I use the "WooCommerce Dynamic Pricing & Discounts" plugin

In the private part I leave a link to a video of an error that occurs to me.

If you know if your plugin is 100% compatible with some of the Dynamic Pricing plugin, you let me know.

I leave everything on the dev site. so you can try it if you want.

Hi Pablo i add this to the functions.php

 

add_filter('woocs_raw_woocommerce_price', function($price) {
return(ceil($price)%5 === 0) ? ceil($price) : round(($price+5/2)/5)*5;
});

It fulfills the function of rounding up, but rounds without cents, but at least it serves me thank you very much.

Hello

Please  read  this - https://currency-switcher.com/woocs-labs/

It fulfills the function of rounding up, but rounds without cents - I'm not sure I understood you correctly. My test - https://c2n.me/42Ix7lv.png

To  get  the  gift - Please  write me  here  realhelp777@gmail.com paste  FTP username  in message

12