2Checkout / woocommerce

2Checkout WooCommerce Connector
MIT License
23 stars 13 forks source link

United Arab Emirates with 2checkout woocommerce #11

Open skywebuk opened 3 years ago

skywebuk commented 3 years ago

Hi,

I set up my United Arab Emirates online store using Woocommerce, but I found a bug that needs fixing.

In the United Arab Emirates, they don't have Postcode/Zipcode

Even in the core of Woocommerce, it's hidden 'AE' => array( 'postcode' => array( 'required' => false, 'hidden' => true ), ),

Now no one can make a payment 2checkout because you can't do it without postcode.

error message: Payment error:The Zip cannot be empty

Any idea how to fix this?

craigchristenson commented 3 years ago

Thank you for reporting this. This issue is caused by incorrect address validation in the 2Checkout API. I am working with the API developers to find a solution and will report back shortly.

skywebuk commented 3 years ago

Hi @craigchristenson, is there any update?

Thank you

craigchristenson commented 3 years ago

Our API team is working on a fix for this. In the meantime you can use either the convert plus or inline methods which will validate the zip for each country correctly. I will update this thread when the API fix has been released.

Ta2Ta2 commented 3 years ago

any ETA for this issue?

Ta2Ta2 commented 3 years ago

@skywebuk if you still stuck with this, this plugin adds and populate postcode to cities list. Using this plugin I'm able to use the on-site 2Checkout API for UAE addresses. hope it helps..

plugin URL https://wordpress.org/plugins/ry-wc-city-select/

here is what I added in function.php

add_filter( 'ry_wc_city_select_cities', 'my_cities' ); function my_cities( $cities ) { $cities['AE'] = array( ['Abu Dhabi',1101], ['Ajman',1101], ['Al Ain',1101], ['Dubai',1101], ['Fujairah',1101], ['Ras Al Khaimah',1101], ['Sharjah',1101], ['Umm Al Quwain',1101] );

alaalamsa commented 3 years ago

Hi, are you able to help me to do this .?

Ta2Ta2 commented 3 years ago

@alaalamsa If I can sure. How can I help?

alaalamsa commented 3 years ago

I have same issue with zip missing with 2chkout, in my store in uae. I am zero knowledge of wp. I tried to edit the php. But frankly hard to continue. I am worry to get problem and ahoutdown my web. Asl long the devloper not able to reach

Ta2Ta2 commented 3 years ago

It’s as easy as I explained. Download the plugin. Then after you can add the code into the function.php page.

Alternatively I can help to go through if we schedule a call or something.

alaalamsa commented 3 years ago

are you in UAE? Please let me know how to contact you? my information/contact in bio Thanks

Ta2Ta2 commented 3 years ago

Yes I’m based in Dubai. Happy to help man! Will WhatsApp you.