If you are looking to exclude a certain product from counting towards the tiered progress bar, then you can use this tag smart-cart-shipping-excluded
and add it to the product in Shopify.
Learn more about other Smart Cart tags here.
However, this method relies on adding certain tags to your products, which can only be applied to One-time purchase products that are set up in Shopify. If you are using a subscription app, then it would probably not allow you to add those tags to your subscription products. In this case you can follow the steps below to achieve the same result.
Step-1: Enabling Subscription Integrations
You need to connect Rebuy to your subscription app first.
Step-2: Adding the Code to Smart Cart
Add the following code to your Smart Cart settings, Advanced > Ready callback section.
/*loops over the smart cart items and looks for subscription products to manually add the tag to them.*/
function removeSubFromTpb() {
setTimeout(() => {
Rebuy.SmartCart.items().forEach((element) => {
if (element.product.subscription === true && !element.product.tags.includes("smart-cart-shipping-excluded")) {
element.product.tags += ", smart-cart-shipping-excluded";
Rebuy.SmartCart.updateFreeProducts();
}
});
}, 0);
}
removeSubFromTpb();
document.addEventListener('rebuy:cart.change', removeSubFromTpb);
You are all set! Now your subscription product prices will not count towards the tier progress bar thresholds.