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
Completed
Last updated: March 27, 2020
Log in to comment on this feature request.
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/.