Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi foks,

 

When I am in checkout process this messages coming up

 

"document.checkout_payment.payment.length is null or not an object"

 

What is the problem?

Posted

Hi foks,

 

When I am in checkout process this messages coming up

 

"document.checkout_payment.payment.length is null or not an object"

 

What is the problem with line 55?

 

 

Line 55:

 

// verify the selected billing address

$check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'");

$check_address = tep_db_fetch_array($check_address_query);

 

 

Help!

Posted

I think nobody can answer that kind of question, finding errors,

I think if you get stuck, you'd better setup again.

 

Before adding new contributions or features (changing code), don't

forget to back up your store.

  • 1 year later...
Posted

I realise the question was posted a long time ago, but in case anyone faces this problem (like I just did)...

 

The problem for me was that even though the PayPal payment method was enabled, it was set to use a 'payment zone' that wasn't configured properly... as a result it was actually disabled at runtime (leaving no usable payment method, causing the Javascript error).

 

To fix the problem:

 

- In the Modules > Payment Modules admin for your chosen method (e.g. PayPal) see which Payment Zone is being used (e.g. "UK VAT")

 

- In the Locations / Taxes > Tax Zones admin select the corresponding zone (e.g. "UK VAT")

 

- Ensure (adding as necessary) that the countries and zones to be used by your customers are set (e.g. "United Kingdom, All Zones").

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...