We are currently running a promotion offering a free item with the purchase of a specific product.
To facilitate this promotion, we are utilizing the Cartbot app. Consequently, when customers add the specified product to their cart, the complimentary item is automatically included.
However, we have encountered an issue where the link for the free product is clickable, leading customers to a new tab and potentially bypassing the intended process.
How can we disable this clickable link for the free product to ensure customers follow the correct procedure?
There are a few ways to accomplish this depending on how Cartbot is setup. I think the 2 that would be relevant are:
Unpublishing products from the online store. This hides them and they can still be added via API. If the CartBot app works that way than this should work. If not:
You can change the default theme template for the products that are for upsell only. Within the new template remove the ability to add to cart and just have it serve as an informational page about the product.
If you want to also add a post sale validation you can setup automations to look for these products in orders where the conditions aren’t met and have them automatically cancelled.
Replace FREE_PRODUCT_ID with the actual ID of the free product added by CartBot. You can find the product ID by going to the product page in your Shopify admin and looking at the URL. The ID will be the number at the end of the URL.
Save the changes to the cart-template.liquid file.
The free product title should now appear as plain text without a clickable link in the cart
.
By adding this condition, the link will be disabled only for the specific free product added by CartBot, while other products in the cart will still have clickable links to their respective product pages.
Note: Make sure to replace FREE_PRODUCT_ID with the actual ID of your free product. Also, it’s recommended to test this change thoroughly to ensure it works as expected and doesn’t affect other functionality on the cart page.
You might want to explore the Easify Product Options app, which allows you to seamlessly integrate add-on products with your main product while keeping them hidden from your storefront setting up seo.hidden metafield.
There are various methods for presenting your add-on products on the main product page. Here’s an example utilizing the Checkbox option type :