• jtsalvo

    (@jtsalvo)


    I was browsing through the documentation HERE and wondering if there is a way to target specific items based on their shipping class? something like is_shipping_class( ) perhaps

    I want to use it to add a small warning about certain products that ship from 3rd party vendors or with a different shipping providers to appropriate product pages.

    If not, I may go with a backup plan and create a new product tag just for those items instead.

Viewing 1 replies (of 1 total)
  • Hey there, @jtsalvo! Thanks for contacting us. I’m happy to help you.

    I checked the WooCommerce API Docs and was not able to find a conditional tag like that for shipping classes specifically.

    As you mentioned, you should be able to use product tag or product category for this.

    While we can’t provide support for code customization as per our support policy, we do our best to offer advice and direct you to appropriate resources.

    You can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional Tag for Shipping Class?’ is closed to new replies.