Home Forums WC Vendors Pro Support Getting product's shipping fee on check out?

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #58258
    Yasa
    Participant

    Hello,

    How can I get product’s shipping fee? I need that for my checkout plugin, I have the products ID but couldn’t figure it out how to pull shipping fee according to product’s id, please help.

    Thank you.

    #58284
    Jamie
    Keymaster

    Hello

    Shipping rates are calculated within our shipping classes. They can be statically called to get the details.

    You can use this as per our commissions class. Read the source to find out how to populate the arguments. Details are in the get_shipping_due function in our pro commission class.

    $rate = WCVendors_Pro_Shipping_Method::get_shipping_rate( $product_id, $vendor_id, $package, $settings );

    cheers

    Jamie.

    #58332
    Yasa
    Participant

    Thanks for the answer Jamie, I already have calculations and everything for shipping on checkout. But isn’t there an easy way to get specified product’s shipping cost for example get_shippingcost(product_id); ? I just made that up :p what am I trying to do is sending vendors commission + shipping but couldnt seperate shipping cost per product

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.