Registration address in checkout process

  • Posts: 192
  • Thank you received: 1
12 years 1 month ago #68108

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


What does not kill you, makes you stronger.
Attachments:
Last edit: 12 years 1 month ago by alain.roger.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #68343

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.'\')

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

  • Posts: 192
  • Thank you received: 1
12 years 1 month ago #68587

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: 12 years 1 month ago by alain.roger.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #68692

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

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

Time to create page: 0.055 seconds
Powered by Kunena Forum