Support » Plugin: WooCommerce PayU India (PayUmoney - PayUbiz) » Enabling Default Woocommerce redirects

  • Resolved zluck

    (@zluck)


    If you want to follow default woo-commerce redirects when you don’t select any page, change below lines with following llines.

    Find these lines

    if ( '' == $this->redirect_page || 0 == $this->redirect_page ) {
    	$redirect_url = get_permalink( get_option('woocommerce_myaccount_page_id') );
    } else {
    	$redirect_url = get_permalink( $this->redirect_page );
    }

    And replace theme with following lines

    if('success' == $this->msg['class'])
    {
    	if ( '' == $this->redirect_page || 0 == $this->redirect_page ) {
    		$redirect_url = $this->get_return_url( $order );
    	} else {
    		$redirect_url = get_permalink( $this->redirect_page );
    	}
    }
    else
    	$redirect_url = wc_get_checkout_url();
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thank you. This works perfectly.

    Wish the developer will include this in core now.

    Plugin Contributor Vachan Kudmule

    (@vachan)

    Thank you for the update.
    The same has been addressed in version 2.1.1

    Hi @vachan

    In the latest version, when no redirect page is selected, the plugin is redirecting to this link – http://180.179.174.15:3000/pgSimulator/axis/redirect

    It doesnt seem to be going to the default Woocommerce redirect. This is happening when plugin is in test mode

    Can you please help?

    Thanks

    rsidhaarth

    (@rsidhaarth)

    I am using this plugin for past 1 year and I didnt update because, when I am updating the plugin to new version all my conversion tracking are not working. So I stopped my update since then. I am now on “version 2.0.10”.

    Can I update now ? whether my conversion will be tracked properly ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.