Shipping Method for Product Page

Solved
Highlighted
New Member
3 0 0

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

https://shopify.dev/docs/themes/liquid/reference/objects/shipping_method

 

The tabs I made are in product-template.liquid

I am using the debut theme

0 Likes
Highlighted
Shopify Partner
41 6 13

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.

1 Like
Highlighted
New Member
3 0 0

Thanks for the quick response, that clarifies alot!

I figured external an solution would be the next best thing. 

Coming from past programming experience, I'm still familiarizing with the way liquid is structured.

Thanks a ton!

0 Likes
Highlighted
New Member
5 0 0

Hi there! Did you do it? I have the same need here.

0 Likes