fanchcelesta
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] Failed Orders Redirecting to Success PageHi,
I’m experiencing the exact same issue since updating WooCommerce PayPal Payments to version 3.4.1.
In my case, I’m currently using FunnelKit version 3.13.1.6.
Some users are redirected to the Thank You page even though:
- no order is created in WooCommerce
- no payment is completed in PayPal
So it creates a false success experience. For now, I have switched back to the native WooCommerce checkout page to avoid the issue.
Can you confirm if this issue is related to FunnelKit and whether version 3.14.0.1 fixes this bug?
Thanks in advance.
Regards,
FanchHi,
I wish but I can’t send picture here .. do have any email address please?
Regards
Hi thank you for your answer.
It is working fine except for the home page, the switcher is not displayed, any idea ?
Ok I just add is_front_page() and it is working now.Thanks.
Regards- This reply was modified 1 year, 1 month ago by fanchcelesta.
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 !