fanchcelesta
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Hello,
here is the code they gave me.
Thanks
add_filter( 'xoo_wsc_bar_checkpoints', function( $points ) {
if ( function_exists( 'get_woocommerce_currency' ) ) {
// Fetch country and currency
$currency = get_woocommerce_currency();
if (!$currency) return $points;
foreach ( $points as $index => $point ) {
if( $index == 0 ){ //for 1st checkpoint
// Check conditions based on currency
if ( $currency === 'PLN' ) { // Polish Zloty
$amount = 400;
}
elseif ( $currency === 'EUR' ) {// Euro
$amount = 500;
}
}
if( $index == 1 ){ //for 2nd checkpoint
// Check conditions based on currency
if ( $currency === 'PLN' ) { // Polish Zloty
$amount = 400;
}
elseif ( $currency === 'EUR' ) {// Euro
$amount = 500;
}
}
$points[$index]['amount'] = $amount;
}
}
return $points;
});Thanks, issue resolved using jpg !
Viewing 2 replies - 1 through 2 (of 2 total)