Seperate login and register views...

  • Posts: 69
  • Thank you received: 0
12 years 10 months ago #34579

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

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34606

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.

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

  • Posts: 69
  • Thank you received: 0
12 years 10 months ago #34690

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

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #34747

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

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

  • Posts: 69
  • Thank you received: 0
12 years 10 months ago #34766

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 :-)

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

  • Posts: 69
  • Thank you received: 0
12 years 10 months ago #35597

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

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #35642

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.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum