Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Redirect To Page After Act On Behalf Of Rate Topic   - - - - -

 
  • jt_shop
  • Junior Member
  • Members
  • Join Date: 13-Mar 11
  • 12 posts

Posted 14 December 2017 - 02:53 PM #1

Hi,

 

I'm trying to make a system that let's users scan a card in the physical shop so that the orders will be logged in their account. So far so good, but when using act on behalf of it automatically goes back to the homepage. Is there a way that I can redirect it to a specific page using a GET property?

 

Something like this would be very helpful: /?dispatch=profiles.act_as_user&return_url=test.html&user_id=0

 

Thanks in advance :)



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17068 posts

Posted 15 December 2017 - 05:43 AM #2

You can change redirect URL in the app/controllers/backend/profiles.php file, find code by "act_as_user" mode


CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.

CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • jt_shop
  • Junior Member
  • Members
  • Join Date: 13-Mar 11
  • 12 posts

Posted 15 December 2017 - 09:44 AM #3

You can change redirect URL in the app/controllers/backend/profiles.php file, find code by "act_as_user" mode

Thank you :) I used return_url instead of redirect URL. Works perfectly now!



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 17068 posts

Posted 15 December 2017 - 01:14 PM #4

You are welcome!


CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.

CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.