WordPress.org

Forums

Woocommerce Weight & Country Based Shipping
Error on ship_to_countries array (1 post)

  1. mmtomm
    Member
    Posted 8 months ago #

    Hi,

    I installed it and followed the description.
    But I get the following error:

    Fatal error: Call to undefined function WC() in /shop/wp-content/plugins/woocommerce-weight-country-based-shipping/woocommerce-wc-shipping.php on line 328

    Line 328 says:
    $ship_to_countries = array_keys( WC()->countries->get_shipping_countries() );
    any ideas?

    Thank you
    Tom

    https://wordpress.org/plugins/woocommerce-weight-country-based-shipping/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.