Title: Output shipping tables programatically
Last modified: July 24, 2018

---

# Output shipping tables programatically

 *  [kyjus25](https://wordpress.org/support/users/kyjus25/)
 * (@kyjus25)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Foutput-shipping-tables-programatically%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [merlinmonmouth](https://wordpress.org/support/users/merlinmonmouth/)
 * (@merlinmonmouth)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/output-shipping-tables-programatically/#post-10526712)
 * So you want to programatically walk through the rates and show them on the page–
   have I got that right???
 *  Thread Starter [kyjus25](https://wordpress.org/support/users/kyjus25/)
 * (@kyjus25)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/output-shipping-tables-programatically/#post-10526893)
 * Yes, that is correct!
 * Currently I’ve just reproduced the fields in ACF, but it would be much better
   to have that shipping page automatically grab the rates dynamically so the admin
   doesn’t need to change the rates in 2 places.
 * Hopefully this is do-able. I couldn’t even figure out how to do it with native
   WooCommerce rate options. All I could find were ways to use the cart data, but
   I’d like this page to show both United States and Canada, regardless of the cart.
 * Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Output shipping tables programatically’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-easy-table-rate-shipping/assets/icon-256x256.
   png?rev=2618390)
 * [Table Rate Shipping for WooCommerce](https://wordpress.org/plugins/woocommerce-easy-table-rate-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-easy-table-rate-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-easy-table-rate-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-easy-table-rate-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-easy-table-rate-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-easy-table-rate-shipping/reviews/)

## Tags

 * [programatically](https://wordpress.org/support/topic-tag/programatically/)
 * [table rate](https://wordpress.org/support/topic-tag/table-rate/)
 * [zones](https://wordpress.org/support/topic-tag/zones/)

 * 2 replies
 * 2 participants
 * Last reply from: [kyjus25](https://wordpress.org/support/users/kyjus25/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/output-shipping-tables-programatically/#post-10526893)
 * Status: not resolved