Jump to content

[SOLVED] Payment step keeps asking for login, even when logged (OPC)


Recommended Posts

Hey there,

I'm having a weird issue, here is the situation:

 

- I've aded 2 downloadable products to cart and procedeed to checkout.

- I've logged in at the first step. My default address was automatically selected.

- Even though i'm logged the third tab keeps asking to login, instead of saying "accept terms of service to see payment methods" It fixes after refreshing the page, but i doubt customers will do it. I've a javascript error in the page, since, of course, there are no carriers available. May that be causing the issue?

 

Is this a known issue? I recall having hear of this some time ago. I'm using the prestashop new theme template, along with presta 1.4.8.2.

 

Regards,

Fabio

Edited by Nemo1 (see edit history)
Link to comment
Share on other sites

Okay, more info:

 

i had a look at order-opc.js. It seems that, for some reason, the carrier variable is undefined (thus, the error) but checking it with TYPEOF won't return it as undefined! this is really weird. It's not undefined, but the error states the contrary.

 

 

Any idea?

Link to comment
Share on other sites

Okay, it seems i have fixed it. I'll mark the topic as solved, so that anyone with the same problem can fix it too.

 

At line 32 of order-opc.jw you can find:

if (carriers.length == 0)

 

Replace with

if ((carriers == undefined) || carriers.length == 0)

 

This fixes the issue

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...