Jump to content

Ebay orders not saving state/province in PS


Alexgaw
 Share

Recommended Posts

HI,

 

The ebay1.67 module does not save the state/province name from an ebay order into prestashop.

 

Looking at the code in the synchronizer it seem that the state name is fetched from ebay but not entered into the db. It has to be match to the correct state ID and then the ID save in the address table in the DB.

 

Anyone who knows how to fix this , without messing up anything else?

 

 

Cheers,

/Alex

Share this post


Link to post
Share on other sites

the problem is that in ebay the state/province is an open option ( you can write what do you want) and not a fix option.

if you set to import that in prestashop go in fatal error for that.

it is possible only in country (like canada) where the state/province is fix.

regards

Share this post


Link to post
Share on other sites

It's possible get state like this

 

$stateResult = State::getIdByIso($customerAddress['state'], $address->id_country);

But as say Prestalia this will only work for country with states in PS DB.

For other countries possible add state to address field.

 

In PrestaBay we do like this

 

$address->address2 .= " ".$customerAddress['state'];

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More