
Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 2, 2021, 11:16
Hello
I am forced to use a base currency of ZAR - What do you use for this behavior?
Hello
I am forced to use a base currency of ZAR - What do you use for this behavior?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 3, 2021, 10:22
Hello
I am forced to use a base currency of ZAR - What do you use for this behavior? - Do uoy use this settings - https://share.pluginus.net/image/i20210603111949.png OR https://currency-switcher.com/force-currency-on-checkout-page/ ?
Hello
I am forced to use a base currency of ZAR - What do you use for this behavior? - Do uoy use this settings - https://share.pluginus.net/image/i20210603111949.png OR https://currency-switcher.com/force-currency-on-checkout-page/ ?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 3, 2021, 13:01
Ok! You need code customization. An example:
add_filter('wp_head',function(){
if (class_exists('WOOCS')){
global $WOOCS;
if(is_checkout()){
$WOOCS->storage->set_val('woocs_current_currency_tmp',$WOOCS->current_currency);
$WOOCS->reset_currency();
}else{
$curr_c = $WOOCS->storage->get_val('woocs_current_currency_tmp');
if($curr_c){
$WOOCS->set_currency($curr_c);
$WOOCS->storage->set_val('woocs_current_currency_tmp',false);
}
}
}
});
Ok! You need code customization. An example:
add_filter('wp_head',function(){
if (class_exists('WOOCS')){
global $WOOCS;
if(is_checkout()){
$WOOCS->storage->set_val('woocs_current_currency_tmp',$WOOCS->current_currency);
$WOOCS->reset_currency();
}else{
$curr_c = $WOOCS->storage->get_val('woocs_current_currency_tmp');
if($curr_c){
$WOOCS->set_currency($curr_c);
$WOOCS->storage->set_val('woocs_current_currency_tmp',false);
}
}
}
});

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 4, 2021, 11:02
Hello
Welcome;)
Hello
Welcome;)