Product Icon

All Products for WooCommerce Subscriptions

Offer your existing products on subscription, with this powerful add-on for WooCommerce Subscriptions.

identifying a subscription product in the cart to calculate shipping cost

Hello,

I would like to be able to identify if a product in the cart is a subscription so that I can offer a varied delivery cost. Currently, all subscriptions gets free delivery, one off gets charged. I can charge dependent on the user role, but for a new customer who has not yet checked out and registered there is no way of knowing that a product in the cart is a one off or a subscribed product.

Change the shipping class if the product is a subscription?

Thanks

Mark

Author

Current Status

Completed

Last updated: March 27, 2020

1 comment

Log in to comment on this feature request.

  1. jaskyt8 says:

    Hey there,

    Thank you for getting in touch!

    To check if a cart item is on subscription, you may check if it has the [ ‘wcsatt_data’][ ‘active_subscription_scheme’ ] property, as we do in this snippet: https://woocommerce.com/document/all-products-for-woocommerce-subscriptions/snippets/#disable_coupons_for_products_on_subscription

    If you have any additional questions on this, please don’t hesitate to get in touch with our support team via: https://woocommerce.com/my-account/contact-support/.