WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
How to show shipping classes on the product page? (11 posts)

  1. dEM0nsTAr
    Member
    Posted 1 year ago #

    How can I show the shipping class of a product on its product page to a customer?
    Thanks

    http://wordpress.org/extend/plugins/woocommerce/

  2. dEM0nsTAr
    Member
    Posted 1 year ago #

    Does no one know how to display the shipping class of a product to the customer?

  3. esucces
    Member
    Posted 1 year ago #

    Did you find a solution for this?

  4. dEM0nsTAr
    Member
    Posted 1 year ago #

    No, I have added a new property for this which duplicates the shipping class. Not so convenient but it works. Would be better to show it directly.

  5. Patrick Rauland
    Member
    Posted 1 year ago #

    Hi guys,

    You should be able to add something like this to one of your templates:

    Shipping Class: <?php echo $product->get_shipping_class(); ?>

  6. wpinklady
    Member
    Posted 6 months ago #

    What if I would like to show the price instead of just the shipping class name? Can anyone help? Thanks.

    For example: "First Class shipping: $1.99", not just "First Class shipping"

  7. Patrick Rauland
    Member
    Posted 6 months ago #

    That would be much harder. Products don't typically have a shipping cost. You would actually have to run the get shipping methods and figure out what shipping would cost for that product. It would be pretty tricky depending on how you have your shipping costs set up.

  8. wpinklady
    Member
    Posted 6 months ago #

    Hi, Patrick:
    Thank you very much for your reply.

    I saw a post here and it only shows "First Class shipping" (the shipping class name), so is this the only way that can show what kind of shipping under each single item???

    I use "flat rate" shipping method, so each item has its own shipping cost, I really would like to add this under each single item.

    For example:
    Product price: $4.99
    Shipping: First Class $1.99

    Hope I can get some idea or answer.

  9. Patrick Rauland
    Member
    Posted 6 months ago #

    To put it right by the product price would take a couple hours to find the right filter and write the code. Why not try adding it as an attribute? Then it can show up under the Additional Information tab.

  10. wpinklady
    Member
    Posted 6 months ago #

    Hi, Patrick:

    Thanks for your reply again.
    I am not sure I understand how to do it. Can you show me more details about how to do?
    Thank you very much.

  11. Patrick Rauland
    Member
    Posted 6 months ago #

    Try this in the backend:
    http://cld.wthms.co/iUJh

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.