Skip to main content

Redirect after registration

More
10 years 1 month ago - 10 years 1 month ago #248715 by FilipHradil
-- 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
Code:
<?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: 10 years 1 month ago by FilipHradil.

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

More
10 years 1 month ago #248741 by Mohamed Thelji
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.

More
10 years 1 month ago #248797 by FilipHradil
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.

More
10 years 1 month ago #248814 by nicolas
Replied by nicolas on topic Redirect after registration
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.

More
10 years 1 month ago #248929 by FilipHradil
It works Nicolas, thank you so much B)

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

More
10 years 3 weeks ago #251169 by flexsus
Replied by flexsus on topic Redirect after registration

FilipHradil wrote: I tried activate_page view

Code:
<?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.

More
10 years 3 weeks ago #251172 by Jerome
Replied by Jerome on topic Redirect after registration
Hi,

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

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: flexsus

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

More
10 years 3 weeks ago #251204 by flexsus
Replied by flexsus on topic Redirect after registration

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.339 seconds
Powered by Kunena Forum