• I’m adding shipping methods by extending WC_Shipping_Method class.
    When I try to get cost of shipping method by shipping class, using get_option(), it returns empty value. Even though value is getting stored in database.
    I’m using Woocommerce Version 2.6.4.

    https://ww.wp.xz.cn/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    I would take a look at the Flat Rate shipping method built into WooCommerce core as an example, as it stores the cost into the database and retrieves it using get_option(). That should make it easier for you to accomplish this.

Viewing 1 replies (of 1 total)

The topic ‘Custom shipping method shipping classes cost issue’ is closed to new replies.