Add this code to your child themes functions file.
Go to wp-admin/admin.php?page=wc-settings&tab=shipping to find your shipping method id’s
You can also hover over the edit link in the Shipping Methods box and the id will display in the bottom left hand side of the window as seen in this screenshot :

In this case, the shipping method ID is 10 as seen in the very bottom of the screenshot.
Video
This is the fastest and easiest way to find shipping method ids from the cart page ( frontend ).
Need More Coding Help?
Book a Consultation
If you want to display the shipping method ID, zone ID and zone name on the cart page, you can use this solution :
Leave a Reply