weird behavior in my checkout

  • Posts: 102
  • Thank you received: 0
13 years 2 months ago #30093

hi,
i have a cart that accepts no money and doesnt ship, we have a bunch of custom fields to allow users to specify pickup times and dates. i have the following checkout flow

shipping_payment_confirm_cart_status_fields_login,end

all that shows is the following

cart
custom fields
login (although we just use this for collecting data. they dont need to register)

all the login fields are required. i custom field is required "pickup location"

if you dont fill in pickup location no alert error appears like does appear for the login fields. it takes you to another page that looks the same minus the login info. with a next button. then if you dont fill in the location and click next you get the alert error.

is there any way to make the error appear in the first screen instead of going to the next?

here is where you can see this

www.rockridgemarkethall.com/pasta-shop/h...menu/product/listing

add something to your cart and proceed without filling in pickup location.

CAREFUL THIS IS A LIVE SITE. PLEASE DO NOT PLACE AN ORDER OR IF YOU NEED TO TYPE TESTING THE CART IN THE COMMENTS FIELD!!!

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
13 years 2 months ago #30099

That's probably because you have a javascript error on the page: Uncaught TypeError: Cannot read property 'checked' of null

That's actually coming from a problem in the first builds of the 1.5.4 version.
You can change the line:
if((typeof newEl.checked != 'undefined' && newEl.checked) || (typeof newEl.selected != 'undefined' && newEl.selected)){

to:
if(newEl && ((typeof newEl.checked != 'undefined' && newEl.checked) || (typeof newEl.selected != 'undefined' && newEl.selected))){

in the file administrator/components/com_hikashop/classes/field.php to remove that error.

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

  • Posts: 102
  • Thank you received: 0
13 years 2 months ago #30105

does it make sense to update, or is this the equivalent of that?
thanks!!
MM

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

  • Posts: 102
  • Thank you received: 0
13 years 2 months ago #30106

sorry nicolas, that did get rid of the newEL error, but does not fix the problem. that is still occurring.

any other ideas??
thanks, liz

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
13 years 2 months ago #30143

Yes, I think I found the problem.
It's that the "complete order" button you have is actually the "register" button. For the register button, the order custom fields are not checked as usually they are filled afterwards on the checkout.

You should edit the file "registration" of the view "user" via the menu Display->Views and add the line:
$additional_check='&& hikashopCheckChangeForm(\'order\',\''.$this->form_name.'\')';

after the line:
$this->form_name = 'hikashop_checkout_form';

and try again.

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

  • Posts: 102
  • Thank you received: 0
13 years 2 months ago #30188

thanks this worked a charm!

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

  • Posts: 80
  • Thank you received: 1
12 years 10 months ago #42252

Hello,

I have 1.5.4 version and this solution does not work for me, please advice. I am using this form separate for Affiliate Registration only and not as a part of the purchasing process.

Nicolas, I have sent you a PM with the link.

Thanx

Last edit: 12 years 10 months ago by seoweb.

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

  • Posts: 80
  • Thank you received: 1
12 years 10 months ago #42266

More issues here:

The data entered into fields:

PayPal E-mail (if PayPal used)
Bank Name
ABA/BSB number (Branch Number)
SWIFT Code
Account Name

are not saved to DB.

Any Ideas?

Last edit: 12 years 10 months ago by seoweb.

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

  • Posts: 80
  • Thank you received: 1
12 years 10 months ago #42331

The 'data is not saved' issue is sorted as soon as I have disabled non working 'Display limited to' feature.

Still can n ot get 'Display limited to' feature working.

Please help to solve the issue.

Last edit: 12 years 10 months ago by seoweb.

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #42333

Please update to the latest version and try again.

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

  • Posts: 80
  • Thank you received: 1
12 years 10 months ago #42334

As usual, I have made a lot of changes to the code, not always using Hikashop Backend interface. May I have a list of files i need to update so I could update those files and re-implement my changes?

Thanx

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

  • Posts: 80
  • Thank you received: 1
12 years 10 months ago #42389

I have updated two files to 1.5.6 version:

/components/com_hikashop/views/user/tmpl/registration.php and administrator/components/com_hikashop/classes/field.php

But still no luck. Do I need to have a JS file loaded or something else?

Please advice

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #42556

Yes it's the js files in the folder media/com_hikashop/js

Update these, clean your browser cache and try again.

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

Time to create page: 0.085 seconds
Powered by Kunena Forum