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
  • 16,123 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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • 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
  • 16,123 posts

Posted 15 December 2017 - 01:14 PM #4

You are welcome!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия