WordPress.org

Ready to get started?Download WordPress

Forums

AWD Weight/Country Shipping for WooCommerce
[resolved] Not Compatible with Woocommerce 2.1.0 (33 posts)

  1. JeriffCheng
    Member
    Posted 7 months ago #

    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/

  2. toomucvalleyyarns
    Member
    Posted 7 months ago #

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

  3. toomucvalleyyarns
    Member
    Posted 7 months ago #

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

  4. contremaitre
    Member
    Posted 7 months ago #

    Same here,
    calculate_shipping is not called.

  5. mpronk
    Member
    Posted 7 months ago #

    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.

  6. Erik
    Member
    Posted 7 months ago #

    Same here.. its not working :/

  7. harryduns
    Member
    Posted 7 months ago #

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

  8. ruipdguerra
    Member
    Posted 7 months ago #

    I'm having the same problem! :D

  9. harryduns
    Member
    Posted 7 months ago #

    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.

  10. JeriffCheng
    Member
    Posted 7 months ago #

  11. toomucvalleyyarns
    Member
    Posted 7 months ago #

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

  12. contremaitre
    Member
    Posted 7 months ago #

    Thanks JeriffCheng for this quick fix, it works fine.

  13. NZ Yogi
    Member
    Posted 7 months ago #

    Thank you thank you JeriffCheng for this fix - works perfectly - thank God!

    harryduns - also thanks for the possible alternative - good for future sites.

  14. menathor
    Member
    Posted 7 months ago #

    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?

  15. gourmetspiceco
    Member
    Posted 6 months ago #

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

  16. Veselina
    Member
    Posted 6 months ago #

    Thank you, JeriffCheng!

  17. owcv
    Member
    Posted 6 months ago #

    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! :-)

  18. Marcelo Pedra
    Member
    Posted 6 months ago #

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

  19. owcv
    Member
    Posted 6 months ago #

    @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?

  20. harryduns
    Member
    Posted 6 months ago #

    @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.

  21. Marcelo Pedra
    Member
    Posted 6 months ago #

    @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.

  22. harryduns
    Member
    Posted 6 months ago #

    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.

  23. owcv
    Member
    Posted 6 months ago #

    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.

  24. PozHonks
    Member
    Posted 6 months ago #

    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.

  25. PozHonks
    Member
    Posted 6 months ago #

    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.

  26. simenschi
    Member
    Posted 6 months ago #

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

  27. Kramarz
    Member
    Posted 6 months ago #

    Thanks JeriffCheng, works like a charm.

    As to AWD plugin itself, please keep it alive guys, using it on quite few websites :-(

  28. bobwebb
    Member
    Posted 6 months ago #

    Thanks JeriffCheng

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

  29. PozHonks
    Member
    Posted 6 months ago #

    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

  30. bobwebb
    Member
    Posted 6 months ago #

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

Reply »

You must log in to post.

About this Plugin

About this Topic