Enabling Default Woocommerce redirects
-
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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Enabling Default Woocommerce redirects’ is closed to new replies.