• Resolved rgbear

    (@rgbear)


    Hi,
    I’m trying to get the @flat_rate cost value” that is applied to the products in the cart. I have created specific Shipping Rate for different countries and they are all “flat_rate”.

    With the following code I can get the labels, but instead I need to get the relative cost.
    `$delivery_zones = WC_Shipping_Zones::get_zones();
    foreach ((array) $delivery_zones as $key => $the_zone ) {
    echo $the_zone[‘zone_name’];
    }

    I’m trying to create a custom formula where I can work with shipping costs, regular_price and tax rate. I can get shipping costs, regular price but I can’t find a way for tax rate.

    Thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get flat_rate cost value’ is closed to new replies.