Hey, I am new to shopify Liquid
I am making custom tabs for my website (working great), one of the tabs are "shipping"
I want to retrieve the shipping method for that specific product and put it in the tab
e.g If the product is shipped with USPS, that tab should say USPS
I have tried the shipping_method object, but it didn't seem to show anything
The tabs I made are in product-template.liquid
I am using the debut theme
Solved! Go to the solution
This is an accepted solution.
I believe the shipping method_method object is for oder confirmation and order detail pages, not for product pages. You can view all available properties of the product object here https://shopify.dev/docs/themes/liquid/reference/objects/product.
I'm also fairly confident that shipping profiles are not accessible via liquid.
Having said that, you could store and access the shipping method on the product manually via meta fields.
Alternatively, if you have weight or priced based rules that you use for shipping, you could write some logic to display different messages about shipping methods based on your product's weight or price.
Another approach would be to use tags to classify which products ship via a certain carrier, then check against those tags to display different messages about shipping methods.