WordPress.org

Forums

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

  1. mmtomm
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Woocommerce Weight & Country Based Shipping
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.