Hi community! I would like to exclude subscription products from being added in the Tiered Discount by Quantity script.
I am checking if the line item contains a selling plan id based on the Shopify scripts API. " This method is useful when the store sells subscriptions and you want the script to detect when a product variant is sold as a subscription. "
# Exclude subscription products
if line_item.variant.selling_plan_id
return false
end
However, the script still fires on subscription products as seen here. It’s giving 10% for subscribing and an additional 5% via the script.
Thank you!
