Redirect after registration

  • Posts: 217
  • Thank you received: 4
8 years 2 months ago #248715

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.2

Hello,

I need there are many topics to this issue, but they are old or doesn't work for me.


I have hikashop registration page as menu item and when I make and account I need to redirect user to own url. Is that possible?

I tried activate_page view

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.6.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');

$app = JFactory::getApplication();
$app->redirect('myurl');

?>

with no result


Thank you

Last edit: 8 years 2 months ago by FilipHradil.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
8 years 2 months ago #248741

Hello,
Can you edit it through "Hikashop->Display->Views" and check that you are editing the file of the good view (checkout) and of your front-end template ?
Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 217
  • Thank you received: 4
8 years 2 months ago #248797

Hello, I tried it already. No effect.

Maybe important things what I should tell are:
- joomla registration is redirected to hikashop
- there isn't any email activation, user just fill username and password, click on register and he is in :)


Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 2 months ago #248814

Hi,

The "activate_page" redirect instructions will only work if you have the activation turned on of course.
In your case, it's the "after_register" view file that you want to edit in order to add your redirect code.
The code to use is the same.

Please Log in or Create an account to join the conversation.

  • Posts: 217
  • Thank you received: 4
8 years 2 months ago #248929

It works Nicolas, thank you so much B)

Please Log in or Create an account to join the conversation.

  • Posts: 136
  • Thank you received: 7
8 years 1 month ago #251169

FilipHradil wrote: I tried activate_page view

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.6.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');

$app = JFactory::getApplication();
$app->redirect('myurl');

?>

Thank you


Hi,
And how would this work for HikaMarket?
I can't get the above to work after a Vendor has registred with success.
What file is used in HikaMarket?
/Henrik


.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 month ago #251172

Hi,

You will find the view "vendormarket / after_register" in HikaMarket.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: flexsus

Please Log in or Create an account to join the conversation.

  • Posts: 136
  • Thank you received: 7
8 years 1 month ago #251204

Jerome wrote: Hi,

You will find the view "vendormarket / after_register" in HikaMarket.

Regards,

Perfect! Working!
Was looking after wrong filename ;)


.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building
The following user(s) said Thank You: ChristopheMG

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum