Support » Plugin: WooCommerce » Show shipping method on product page

  • Resolved karyls

    (@karyls)


    My goal is to show the shipping method on the product page. I’d like it at the top under the price, or someplace obvious.

    This store has only two shipping methods – UPS/FedEx or Freight.

    They only ship confidential US.

    ALL shipping is free.

    I don’t need to worry about the address, I only need to be concerned if a given product is small or large freight to let the customer know what they will be dealing with upon delivery.

    I created my two methods but don’t know how to get them to display automatically. (A zone was created for free shipping in the US) I haven’t been able to work this out. Any advice would be appreciated. I feel like I am making this more complicated than it is.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Hannah S.

    (@fernashes)

    Automattic Happiness Engineer

    You’ll need to modify the product template – here’s a good explanation of how to get started:
    https://wordpress.stackexchange.com/questions/116916/woocommerce-show-shipping-cost-on-product-page/176919

    thank you. I had seen that but couldn’t make it work. However, it helped me to figure out to edit meta.php. I am struggling with how to call and display the shipping method only. Most of what I am finding information on is more complicated. I don’t know php but I will keep trying to figure it out.

    Plugin Support Hannah S.

    (@fernashes)

    Automattic Happiness Engineer

    Glad to hear it 🙂 I’m going to mark this thread as resolved now, as it’s already buried, but feel free to ask any follow up questions in a new thread.

    I got this to work and am leaving it for anyone else who may have the same question.

    I added this to the woocommerce template price.php

    ?php
    $slug = $product->get_shipping_class_id();
    $slugobject = get_term_by(‘term_taxonomy_id’, $slug, ‘product_shipping_class’);
    echo $slugobject->description;?

    Plugin Support Hannah S.

    (@fernashes)

    Automattic Happiness Engineer

    Thanks so much for sharing!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.