• Resolved kryptonit3

    (@kryptonit3)


    When a user is in the checkout process, they see this fancy partial payment option so they go and check it out. They get transferred to partial.ly and they view terms etc. They decide, eeh, I will pick another payment option so they click the “Return to site” option at the bottom of the page and it sends them back to the site.

    The problem is, it cancels the order through woocommerce. They now no longer have the option to pick another payment method and now site administration intervention is required.

    Is there a way to change this?

    I see you are doing this
    `if( method_exists($order, “get_cancel_order_url_raw”) ) {
    $body[‘payment_plan’][‘meta’][‘checkout_cancel_url’] = $order->get_cancel_order_url_raw();
    }
    else {
    $body[‘payment_plan’][‘meta’][‘checkout_cancel_url’] = $order->get_cancel_order_url();
    }`

    Maybe add an option to “return to cart / checkout” instead of cancelling?

Viewing 1 replies (of 1 total)
  • Plugin Author storestartup

    (@storestartup)

    It is possible to change the return URL. You can hook into the partially_gateway_settings filter and override the payment_plan.meta.checkout_cancel_url property of the array. Here’s an example of how you could do that by adding a function to your theme’s functions.php file

    
    function custom_partially_cancel_url($config) {
    	$config['payment_plan']['meta']['checkout_cancel_url'] = 'https://example.com/url';
    	return $config;
    }
    add_filter('partially_gateway_settings', 'custom_partially_cancel_url');
    
Viewing 1 replies (of 1 total)
  • The topic ‘If user returns to site, deciding against partial.ly order is cancelled’ is closed to new replies.