Registration address in checkout process
- alain.roger
-
Topic Author
- Offline
Less
More
14 years 1 week ago - 14 years 1 week ago #68108
by alain.roger
What does not kill you, makes you stronger.
Registration address in checkout process was created by alain.roger
Hi,
I would like to know if i remove the address block from login/registration view (wanted screenshot), is it enough to have as next step (in checkout process) the address view (to allow user to add new address) ?
i want to be sure that user can't skip the address step without having a valid address for invoice.
i did some test to remove it but when clicking on "register" button, joomla asks me to fill all needed field (from address template even if it is removed)...
(original screenshot)
thx
I would like to know if i remove the address block from login/registration view (wanted screenshot), is it enough to have as next step (in checkout process) the address view (to allow user to add new address) ?
i want to be sure that user can't skip the address step without having a valid address for invoice.
i did some test to remove it but when clicking on "register" button, joomla asks me to fill all needed field (from address template even if it is removed)...
(original screenshot)
thx
What does not kill you, makes you stronger.
Last edit: 14 years 1 week ago by alain.roger.
Please Log in or Create an account to join the conversation.
14 years 5 days ago #68343
by nicolas
Replied by nicolas on topic Re: Registration address in checkout process
Hi,
HikaShop adds javascript code on the page, run when you click on the next button, which check that the required fields are being filled by the user.
Even if you remove the HTML of the fields from the view file, the javascript is still on the page. That's why you have that behavior.
And to remove the javascript check, you will have to edit the file "registration" of the view "user" and remove that code:
&& hikashopCheckChangeForm(\'address\',\''.$this->form_name.'\')
HikaShop adds javascript code on the page, run when you click on the next button, which check that the required fields are being filled by the user.
Even if you remove the HTML of the fields from the view file, the javascript is still on the page. That's why you have that behavior.
And to remove the javascript check, you will have to edit the file "registration" of the view "user" and remove that code:
&& hikashopCheckChangeForm(\'address\',\''.$this->form_name.'\')
Please Log in or Create an account to join the conversation.
- alain.roger
-
Topic Author
- Offline
14 years 4 days ago - 14 years 4 days ago #68587
by alain.roger
What does not kill you, makes you stronger.
Replied by alain.roger on topic Re: Registration address in checkout process
thank a lot.
However it doesn't solve my issue with custom fields.
when pressing NEXT button, it checks also if my custom fields are filled.
from conception point of view, i would like to force user/customer to fill address only on next view (call "address") and not with registration window.
Therefore where is the check on login/registration view (in checkout process) to avoid checking of custom fields ?
thank a lot.
However it doesn't solve my issue with custom fields.
when pressing NEXT button, it checks also if my custom fields are filled.
from conception point of view, i would like to force user/customer to fill address only on next view (call "address") and not with registration window.
Therefore where is the check on login/registration view (in checkout process) to avoid checking of custom fields ?
thank a lot.
What does not kill you, makes you stronger.
Last edit: 14 years 4 days ago by alain.roger.
Please Log in or Create an account to join the conversation.
14 years 4 days ago #68692
by nicolas
Replied by nicolas on topic Re: Registration address in checkout process
I already told you where is that check. There is no other place. Removing it will remove the javascript check.
However, there is also a check on the server side. It's the line:
if($this->registerData===false || $addressData===false || $userData===false){
in the file administrator/components/com_hikashop/classes/user.php. You should try to change it to:
if($this->registerData===false || $userData===false){
However, there is also a check on the server side. It's the line:
if($this->registerData===false || $addressData===false || $userData===false){
in the file administrator/components/com_hikashop/classes/user.php. You should try to change it to:
if($this->registerData===false || $userData===false){
Please Log in or Create an account to join the conversation.
Time to create page: 0.196 seconds