Redirect to My Account - Can this be adjusted to specific page?

Bought your plugin today. So far it is working great and I'm very happy with it. The only tweak I need to be able to make to it thus far is to adjust the redirect to My Account page. That is confusing my staff (I know they are slow) and would be so much easier if upon switch user it took you to the custom shop page I've built out.

Hoping you guys continue to support this product. It seems very solid thus far!

Add Comment
10 Answer(s)

Anyone?

Answered on May 6, 2019.
Add Comment

For anyone experiencing this issue just find the lines "get_permalink( wc_get_page_id( 'myaccount' ) )" and change myaccount to shop and it will redirect to your shop page

Answered on May 6, 2019.
Add Comment

Hi. Apologies for the unwanted delay in support. Regarding this ability to customize the “switch-to destination”. Let us have think and see if this is feature we can add. Thanks

Answered on May 10, 2019.
Add Comment

I managed to adjust the switch redirect by editing permalinks in this file - shop-as-customer.php

What I've been unable to find and could use some direction on is editing the redirect link for switching back. For example when you finish ordering for a user there is a button "Switch back and view order" I'd like to adjust that to "switch back and view dashboard" and have it take the user to admin dashboard where I've got a quick links widget setup with other quick links and functions store managers need to be able to use. Any direction on that would be greatly appreciated.

A setting in the plugin admin to set redirect endpoints would be also amazing but I can deal with hacking up the plugin for now

Answered on May 11, 2019.
Add Comment

I'm guessing I edit this section but not sure how:

// Switch user:
if ( self::switch_to_customer( $original_user->ID, self::remember( $original_user->ID ), 'switch_back_to_original_customer' ) ) {

if ( isset( $_REQUEST['redirect_to_order'] ) and !empty( $_REQUEST['redirect_to_order'] ) ) {

$redirect_to_order = html_entity_decode( get_edit_post_link( $_REQUEST['redirect_to_order'] ) );
wp_safe_redirect( $redirect_to_order );
}
else {

Answered on May 11, 2019.
Add Comment

Will redirect_to_dashboard do the trick?

Answered on May 11, 2019.
Add Comment

Just checking to see if any update on this... Ideally plugin could have redirect fields for setup of these ins & outs. But in the interm if someone could direct me on what I need to edit for the redirect after purchase to dashboard instead of view the order.

Answered on May 13, 2019.
Add Comment

I found the line to change but having difficulty with it - its in the Inlcudes > Checkout-functions.php fil

 

<a class="cxsac-button cxsac-button-switch-back" href="<?php echo $admin_order_url; ?>">

 

What do I adjust $admin_order_url to to make this go to the dashboard rather than the order?

Answered on May 13, 2019.
Add Comment

Is it possible to receive some support on this issue? Kinda jammed up until I solve this. I recon for the plugin author could be pretty simple to explain. Thank you!

Answered on May 16, 2019.
Add Comment

I understand themeforest states there is no support for this plugin but we could really REALLY REALLY need some help here... we bought the plugin but without some assistance to make it do what we need it to its not very useful...

Answered on May 28, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.