login and create a new account.

  • Posts: 2
  • Thank you received: 0
11 years 3 months ago #113361

Hi,

On Checkout Page, there are 2 form : Login and create a new account. New customers can register by from "a new account".


I want the purchase process to be as easy at possible. ;) So I want to have a checkout with registration but without address on first step, like Joomla login with basic details :

Name ; Username ; Password ; Email Address...

:blush:

They receive an activation link by the email, and they activate their account by clicking on the activation link... They arrive again on checkout page and they are now connected on their account (but in their account, there are not yet their adress.)
and they click on "Next" button : that popup window is display with a form adress :

Title ; First name ; Last name ; Address ; Post code ; City ; Telephone ; State ; Country...

So the new customers can add their adress. :cheer:

How I can make this ? :ohmy:

Can you help me ? :dry:

Here is our setup in checkout workflow :

+
|Cart
+
+
|Login
+
+
|Address
|Shipping
+
+
|Coupon
|Fields
|Status
+
+
|Cart
+
+
|Payment
+


I would very much appreciate some help with this.

Thanks :)

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 3 months ago #113419

You need to do :
1. edit the cart view file of the checkout view via the menu Display>Views and add such code at the end:
<?php $user= JFactory::getUser();
if($this->step==0 && $user->guest){
$this->nextButton=false; echo '<a href=" mywesbite.com/my_joomla_registration_page ">Next</a>';
} ?>

That will let the user go to the joomla registration form after clicking on next on the first step of the checkout.

Then, after the registration in Joomla, when the user goes back to the checkout while being logged in, he will be prompted with the address popup like you want.

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

  • Posts: 2
  • Thank you received: 0
11 years 3 months ago #113490

Thank you very much Nicolas
It's great!

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

Time to create page: 0.048 seconds
Powered by Kunena Forum