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 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.