WPIntell

Source evidence

Not Compatible with Woocommerce 2.1.0

AWD Weight/Country Shipping for WooCommerce · support · 2014-02-11T07:16:00+00:00

mixedsentiment
highseverity
0.95relevance
35replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

9 / 39 rows with source links

23.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Lloyd Saunders resolved
After upgrading woocommerce today, this AWD Weight/Country Shipping for WooCommerce plugin stopped working, can’t show up. https://wordpress.org/plugins/awd-weightcountry-shipping/ I am experiencing the same problem, with many of my (now very unhappy) customers unable to purchase from my website. Customers experience “Invalid shipping method” upon check-out. Then unable to proceed with transaction. Same here, calculate_shipping is not called. This is my error message: Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in /home/checkmy/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 179 Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/checkmy/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 189 public function is_available( $package ) { if ( $this->enabled == "no" ) return false; // Country availability switch ( $this->availability ) { case 'specific' : case 'including' : $ship_to_countries = array_intersect( $this->countries, array_keys( WC()->countries->get_shipping_countries() ) ); break; case 'excluding' : $ship_to_countries = array_diff( $this->countries, array_keys( WC()->countries->get_shipping_countries() ) ); break; default : $ship_to_countries = array_keys( WC()->countries->get_shipping_countries() ); break; } if ( ! in_array( $package['destination']['country'], $ship_to_countries ) ) return false; return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', true, $package ); } These are lines 171 -193 of the specified file. Same here.. its not working :/ Yes, this is most unfortunate as we really love your plugin Andy! Please update it for us, thanks so much for your great work! I’m having the same problem! 😀 Guys and gals, I just found a suitable replacement for this: http://wordpress.org/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/ That plugin claims it was based on this one, but is updated and works with the new WooCommerce. I’ve switched, it works perfectly, I suggest you do too as this one sadly isn’t updated any more. Hey guys, if you want a quick fix , check my article http://www.jeriffcheng.com/awd-weight-shipping-woocommerce-working-woocommerce-2-1-0.html Thank you so much harryduns! I have done as you suggested and works perfectly. Can’t thank you enough. Thanks JeriffCheng for this quick fix, it works fine. Thank you thank you JeriffCheng for this fix – works perfectly – thank God! harryduns – also thanks for the possible alternative – good for future sites. Thanks Jeriff, but this fix changes the WooCommerce core files and will be overwritten every time WooCommerce is upgraded. Is there a planned fix in the next version of your AWD plugin which doesn’t need this patch? same here, broken after Woo upgrade so am checking out the replacement plugin, shame as this was nice but no good any more 🙁 Thank you, JeriffCheng! Same issue here and when I put something in my cart I get the following error message: Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in /var/www/mydomain/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 180 Warning: in_array() expects parameter 2 to be array, null given in /var/www/mydomain/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 190 Hope this will be fixed soon! 🙂 @harryduns : Great contribution!!!! Works great. Thanks! @harryduns That plugin is only on spanish? Or english too? And it still seems to be beta according to the threads in support forum? I also thought of buying Table Rate Shipping Extension: http://www.woothemes.com/products/table-rate-shipping-2/ Any experience on that? @owcv The description for the plugin is in Spanish, the developers are Spanish, but the plugin itself is in English! They should really put the description in English too, it nearly dissuaded me from downloading it but I was very glad I did. Works perfectly for me and regularly updated, no reason to buy any other plugin now. @harryduns , @owcv : It was created by spanish developers. Spanish guys are reticent to speak english, you know. In despite of that, the plugin is in english and works JUST GREAT. Marcelo, I’m not sure that’s the reason. The developers have no problem answering questions in English, there is an English description on their own website and the plugin itself is in English. I think it’d be in their interests to also make the description on WordPress bilingual at least, so as to avoid this confusion; most plugin developers will write an English description, whatever their native tongue. It’s clearly caused at least one person to think the plugin itself must also be in Spanish! I might contact them and suggest a bilingual description, as people should feel confident to try this great plugin. I didn’t said that the AGP-Plugin doesn’t work, but I tested it and it is fairly beta due to a lot of bugs I experienced. Besides did you notice what the developer of AWD said on his website : I am aware of the issue with the latest 2.1.1 Woocommerce update and I will resolve it as soon as I can… Question is, when will that be…? AWD was simple and it worked, I wish I could say the same for APG. APG will work for most of you. However, APG overrides the way Woocommerce is handling shipping taxes and use its own method. They do it to take care of a very specific situation in Spain. Now, it is not working with my situation when handling different tax classes, because APG tax settings and Woocommerce tax settings are in conflict. I have proven it to the developer, but he does not care and will not fix it. If you are not concerned by this, you can test it. Hi guys. I have written a plugin that is WORKING without editing the core code. Go to this page in AWD support forum: http://wordpress.org/support/topic/new-plugin-for-testing-for-woocommerce-21 By the way, someone has to adopt this plugin, I am not a developer and I will not support and update it. Thanks @JeriffCheng, your fix worked great. Will use it until AWD gets updated. Thanks JeriffCheng, works like a charm. As to AWD plugin itself, please keep it alive guys, using it on quite few websites 🙁 Thanks JeriffCheng Basically signing up to updates hoping for a non core edit fix. It is a great plugin. There is already a working solution , an unofficial plugin fully re-written and compatible with WooCommerce 2.1. So you don’t have to edit the core code each time WC is updated. See here: http://wordpress.org/support/topic/new-plugin-for-testing-for-woocommerce-21 Thanks PozHonks, since you don’t want to support your fix as a plugin (which I totally understand) hopefully this one will get updated. @JeriffCheng Thanks! Hi! I was just wondering if anyone else has had paypal suddenly adding $15 – $20 per order as an extra shipping charge after that added by @JeriffCheng’s plug in? I discovered this was happening today when a customer noticed and enquired. YIKES. I’ve since refunded money to 5 customers and worry about the ones that have been scared away… if anyone has any suggestions, please share. In the meantime, i’ve contacted Jerrif and will try the other plugin recommended earlier in the thread. I figured it out! WooCommerce now offers a few different options with PayPal — I finally worked around to unchecking: “Shipping details” Send shipping details to PayPal instead of billing. PayPal allows us to send 1 address. If you are using PayPal for shipping labels you may prefer to send the shipping address rather than billing.” And the problem was solved. The issue was NOT caused by @JerrifCheng’s plugin — the timing of the error was just a coincidence as the error couldn’t be identified until the plug in was working. I hope this helps anyone else who might end up in a similar situation. Thanks. Thanks @JeriffCheng! Worked a treat 🙂 Hello, I think that with Woocommerce 2.2.8 it’s not working. Any solution ? woo commerce table rate is too expensive This plunging work fine https://wordpress.org/plugins/table-rate-shipping-for-woocommerce/

Comments

35 shown
toomucvalleyyarns 2014-02-11T09:48:00+00:00

I am experiencing the same problem, with many of my (now very unhappy) customers unable to purchase from my website.

toomucvalleyyarns 2014-02-11T09:51:00+00:00

Customers experience “Invalid shipping method” upon check-out. Then unable to proceed with transaction.

contremaitre 2014-02-11T10:12:00+00:00

Same here, calculate_shipping is not called.

mpronk 2014-02-11T10:52:00+00:00

This is my error message: Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in /home/checkmy/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 179 Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/checkmy/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 189 public function is_available( $package ) { if ( $this->enabled == "no" ) return false; // Country availability switch ( $this->availability ) { case 'specific' : case 'including' : $ship_to_countries = array_intersect( $this->countries, array_keys( WC()->countries->get_shipping_countries() ) ); break; case 'excluding' : $ship_to_countries = array_diff( $this->countries, array_keys( WC()->countries->get_shipping_countries() ) ); break; default : $ship_to_countries = array_keys( WC()->countries->get_shipping_countries() ); break; } if ( ! in_array( $package['destination']['country'], $ship_to_countries ) ) return false; return apply_filters( 'woocommerce_shipping_' . $this->id . '_is_available', true, $package ); } These are lines 171 -193 of the specified file.

Erik 2014-02-11T11:45:00+00:00

Same here.. its not working :/

harryduns 2014-02-11T13:21:00+00:00

Yes, this is most unfortunate as we really love your plugin Andy! Please update it for us, thanks so much for your great work!

ruipdguerra 2014-02-11T13:39:00+00:00

I’m having the same problem! 😀

harryduns 2014-02-11T15:06:00+00:00

Guys and gals, I just found a suitable replacement for this: http://wordpress.org/plugins/woocommerce-apg-weight-and-postcodestatecountry-shipping/ That plugin claims it was based on this one, but is updated and works with the new WooCommerce. I’ve switched, it works perfectly, I suggest you do too as this one sadly isn’t updated any more.

Lloyd Saunders 2014-02-11T16:26:00+00:00

Hey guys, if you want a quick fix , check my article http://www.jeriffcheng.com/awd-weight-shipping-woocommerce-working-woocommerce-2-1-0.html

toomucvalleyyarns 2014-02-11T17:50:00+00:00

Thank you so much harryduns! I have done as you suggested and works perfectly. Can’t thank you enough.

contremaitre 2014-02-12T21:16:00+00:00

Thanks JeriffCheng for this quick fix, it works fine.

NZ Yogi 2014-02-12T21:29:00+00:00

Thank you thank you JeriffCheng for this fix – works perfectly – thank God! harryduns – also thanks for the possible alternative – good for future sites.

menathor 2014-02-14T04:06:00+00:00

Thanks Jeriff, but this fix changes the WooCommerce core files and will be overwritten every time WooCommerce is upgraded. Is there a planned fix in the next version of your AWD plugin which doesn’t need this patch?

gourmetspiceco 2014-02-20T16:11:00+00:00

same here, broken after Woo upgrade so am checking out the replacement plugin, shame as this was nice but no good any more 🙁

Veselina 2014-02-20T19:21:00+00:00

Thank you, JeriffCheng!

owcv 2014-02-24T13:55:00+00:00

Same issue here and when I put something in my cart I get the following error message: Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in /var/www/mydomain/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 180 Warning: in_array() expects parameter 2 to be array, null given in /var/www/mydomain/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php on line 190 Hope this will be fixed soon! 🙂

Marcelo Pedra 2014-02-27T01:47:00+00:00

@harryduns : Great contribution!!!! Works great. Thanks!

owcv 2014-02-27T11:49:00+00:00

@harryduns That plugin is only on spanish? Or english too? And it still seems to be beta according to the threads in support forum? I also thought of buying Table Rate Shipping Extension: http://www.woothemes.com/products/table-rate-shipping-2/ Any experience on that?

harryduns 2014-02-27T15:57:00+00:00

@owcv The description for the plugin is in Spanish, the developers are Spanish, but the plugin itself is in English! They should really put the description in English too, it nearly dissuaded me from downloading it but I was very glad I did. Works perfectly for me and regularly updated, no reason to buy any other plugin now.

Marcelo Pedra 2014-02-27T17:23:00+00:00

@harryduns , @owcv : It was created by spanish developers. Spanish guys are reticent to speak english, you know. In despite of that, the plugin is in english and works JUST GREAT.

harryduns 2014-02-27T18:30:00+00:00

Marcelo, I’m not sure that’s the reason. The developers have no problem answering questions in English, there is an English description on their own website and the plugin itself is in English. I think it’d be in their interests to also make the description on WordPress bilingual at least, so as to avoid this confusion; most plugin developers will write an English description, whatever their native tongue. It’s clearly caused at least one person to think the plugin itself must also be in Spanish! I might contact them and suggest a bilingual description, as people should feel confident to try this great plugin.

owcv 2014-02-28T13:59:00+00:00

I didn’t said that the AGP-Plugin doesn’t work, but I tested it and it is fairly beta due to a lot of bugs I experienced. Besides did you notice what the developer of AWD said on his website : I am aware of the issue with the latest 2.1.1 Woocommerce update and I will resolve it as soon as I can… Question is, when will that be…? AWD was simple and it worked, I wish I could say the same for APG.

PozHonks 2014-03-02T12:56:00+00:00

APG will work for most of you. However, APG overrides the way Woocommerce is handling shipping taxes and use its own method. They do it to take care of a very specific situation in Spain. Now, it is not working with my situation when handling different tax classes, because APG tax settings and Woocommerce tax settings are in conflict. I have proven it to the developer, but he does not care and will not fix it. If you are not concerned by this, you can test it.

PozHonks 2014-03-02T17:40:00+00:00

Hi guys. I have written a plugin that is WORKING without editing the core code. Go to this page in AWD support forum: http://wordpress.org/support/topic/new-plugin-for-testing-for-woocommerce-21 By the way, someone has to adopt this plugin, I am not a developer and I will not support and update it.

simenschi 2014-03-03T10:18:00+00:00

Thanks @JeriffCheng, your fix worked great. Will use it until AWD gets updated.

Kramarz 2014-03-03T14:00:00+00:00

Thanks JeriffCheng, works like a charm. As to AWD plugin itself, please keep it alive guys, using it on quite few websites 🙁

bobwebb 2014-03-05T10:27:00+00:00

Thanks JeriffCheng Basically signing up to updates hoping for a non core edit fix. It is a great plugin.

PozHonks 2014-03-05T10:56:00+00:00

There is already a working solution , an unofficial plugin fully re-written and compatible with WooCommerce 2.1. So you don’t have to edit the core code each time WC is updated. See here: http://wordpress.org/support/topic/new-plugin-for-testing-for-woocommerce-21

bobwebb 2014-03-05T11:07:00+00:00

Thanks PozHonks, since you don’t want to support your fix as a plugin (which I totally understand) hopefully this one will get updated.

Anonymous User 9027739 2014-03-17T12:44:00+00:00

@JeriffCheng Thanks!

JusttheGoods 2014-06-06T16:32:00+00:00

Hi! I was just wondering if anyone else has had paypal suddenly adding $15 – $20 per order as an extra shipping charge after that added by @JeriffCheng’s plug in? I discovered this was happening today when a customer noticed and enquired. YIKES. I’ve since refunded money to 5 customers and worry about the ones that have been scared away… if anyone has any suggestions, please share. In the meantime, i’ve contacted Jerrif and will try the other plugin recommended earlier in the thread.

JusttheGoods 2014-06-06T19:35:00+00:00

I figured it out! WooCommerce now offers a few different options with PayPal — I finally worked around to unchecking: “Shipping details” Send shipping details to PayPal instead of billing. PayPal allows us to send 1 address. If you are using PayPal for shipping labels you may prefer to send the shipping address rather than billing.” And the problem was solved. The issue was NOT caused by @JerrifCheng’s plugin — the timing of the error was just a coincidence as the error couldn’t be identified until the plug in was working. I hope this helps anyone else who might end up in a similar situation. Thanks.

Tom Frearson 2014-09-23T19:22:00+00:00

Thanks @JeriffCheng! Worked a treat 🙂

trouverungeek 2014-11-19T17:39:00+00:00

Hello, I think that with Woocommerce 2.2.8 it’s not working. Any solution ? woo commerce table rate is too expensive

trouverungeek 2014-11-19T17:55:00+00:00

This plunging work fine https://wordpress.org/plugins/table-rate-shipping-for-woocommerce/