- Posts: 69
- Thank you received: 0
Seperate login and register views...
14 years 8 months ago #34579
by Pit Pony
Seperate login and register views... was created by Pit Pony
Hi
Is it possible to seperate the login and register views....
What I am looking at is when you proceed to check out, having a login page with a link to a register page if required, rather than having both combined on the same page.
Thanks
Is it possible to seperate the login and register views....
What I am looking at is when you proceed to check out, having a login page with a link to a register page if required, rather than having both combined on the same page.
Thanks
Please Log in or Create an account to join the conversation.
14 years 8 months ago #34606
by nicolas
Replied by nicolas on topic Re: Seperate login and register views...
Hi,
There is no option for that.
However, you could edit the file "login" of the view "checkout" via the menu Display->Views and change the line:
echo hikashop_getLayout('user','registration',$params,$js);
to:
echo '<a href="YOUR_REGISTRATION_PAGE">Please click here to register</a>';
And replace YOUR_REGISTRATION_PAGE by your registration page URL. If you don't know that, create a new menu item of the type hikashop user registration and you will be able to use the link of that menu.
There is no option for that.
However, you could edit the file "login" of the view "checkout" via the menu Display->Views and change the line:
echo hikashop_getLayout('user','registration',$params,$js);
to:
echo '<a href="YOUR_REGISTRATION_PAGE">Please click here to register</a>';
And replace YOUR_REGISTRATION_PAGE by your registration page URL. If you don't know that, create a new menu item of the type hikashop user registration and you will be able to use the link of that menu.
Please Log in or Create an account to join the conversation.
14 years 8 months ago #34690
by Pit Pony
Replied by Pit Pony on topic Re: Seperate login and register views...
Appreciate the quick response, and have solution working... 
But how do I protect an altered view from being written over in a future HikaShop upgrade.
Upgraded to latest version yesterday then had to rewrite some of css even though it was in an override file...
Thanks
But how do I protect an altered view from being written over in a future HikaShop upgrade.
Upgraded to latest version yesterday then had to rewrite some of css even though it was in an override file...
Thanks
Please Log in or Create an account to join the conversation.
14 years 8 months ago #34747
by nicolas
Replied by nicolas on topic Re: Seperate login and register views...
Views and CSS overrides are not overwritten during updates.
At least it's working like that for everyone else. If in doubt, you should do a backup of your website with akeeba backup before updating. That way, you will be able to easily get back your files. For the view overrides they are in the folder templates/your_folder/html/com_hikashop. For the CSS, they are in the folder media/com_hikashop/css
At least it's working like that for everyone else. If in doubt, you should do a backup of your website with akeeba backup before updating. That way, you will be able to easily get back your files. For the view overrides they are in the folder templates/your_folder/html/com_hikashop. For the CSS, they are in the folder media/com_hikashop/css
Please Log in or Create an account to join the conversation.
14 years 8 months ago #34766
by Pit Pony
Replied by Pit Pony on topic Re: Seperate login and register views...
In the last update some of the h2 header tags were redefined as h1 for google optimization, I had css defined for a path to the h2.
I had also amended the plus and minus tags before add to cart, without looking I think the id's were changed...
Anyway not a problem, all sorted
I had also amended the plus and minus tags before add to cart, without looking I think the id's were changed...
Anyway not a problem, all sorted
Please Log in or Create an account to join the conversation.
14 years 8 months ago #35597
by Pit Pony
Replied by Pit Pony on topic Re: Seperate login and register views...
Have created a separate hikashop register link in the checkout login page...
A user gets to the checkout login page and either logs in or clicks a link to a hikashop register page...
When the user activates the email link it doesnt take them back into the checkout...
Is there a work around... ?
Alternatively I did try another method of wrapping the register form in a hidden <div> using css, which showed when a user clicked a link to register...
Worked fine and displayed for a few seconds than a url diversion would take it back to cart... is there a work around for this method... ?
Thanks
A user gets to the checkout login page and either logs in or clicks a link to a hikashop register page...
When the user activates the email link it doesnt take them back into the checkout...
Is there a work around... ?
Alternatively I did try another method of wrapping the register form in a hidden <div> using css, which showed when a user clicked a link to register...
Worked fine and displayed for a few seconds than a url diversion would take it back to cart... is there a work around for this method... ?
Thanks
Please Log in or Create an account to join the conversation.
14 years 8 months ago #35642
by nicolas
Replied by nicolas on topic Re: Seperate login and register views...
In order to go back to the checkout after the registration if you're using the registration page and not the registration inside the checkout, you will have to edit the file components/com_hikashop/controllers/user.php and change the line:
$status = $class->register($this,'user');
to:
$status = $class->register($this,'checkout');
That is a core file of HikaShop so your modification will be removed when you update so make sure that you backup your change.
$status = $class->register($this,'user');
to:
$status = $class->register($this,'checkout');
That is a core file of HikaShop so your modification will be removed when you update so make sure that you backup your change.
Please Log in or Create an account to join the conversation.
Time to create page: 0.204 seconds