Output shipping tables programatically
-
I am looking for a way to output the table rates to the front end so the admin doesn’t have to change the shipping rates in 2 places.
So far i’ve found
$delivery_zones = WC_Shipping_Zones::get_zones(); foreach ($delivery_zones as $key => $the_zone ) { echo "<pre>"; print_r($the_zone); echo "</pre>"; }
which gets the zone name, but doesn’t retrieve the actual rates. I have a zone for U.S. and a zone for Canada, and would like them both to display.
Any suggestions by chance?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Output shipping tables programatically’ is closed to new replies.