How to remove the upsell_id from showing on your store
When you add upsells using the UpsellPlus app, we use an upsell_id to track your upsell results, like revenue, impressions and conversions.
When an item gets added to cart in the checkout, and the customer returns to cart, it’s possible they might see something like this:
This can be confusing and isn’t preferable for customers and merchants alike. So how do we hide this upsell_id?
Cart page
In your theme, there’s a file called cart__main.liquid. This file can differ in name from theme to theme, so locate the file that controls the main cart page for your store.
Within that theme, the code that controls what attributes or details are shown for each product on the cart page looks like this:
To avoid the upsell_id from showing you’ll have to add in a small piece of code.
- Go to your main cart theme file
- Search, using CTRL/Command + F, and type ‘item.properties’ to find this part of the code
- Locate this specific line of code: {% unless p.last == blank %}
- Replace it with the following code:
- Save your theme
This will remove the upsell_id from your main cart page.
AJAX cart
If you are using an AJAX cart (a cart that can be updated without reloading the page, like a cart side drawer or cart summary), you might need to repeat this in the AJAX file of your theme.
This file could be called cart.ajax.liquid or something similar mentioning ‘cart’ and ‘AJAX’. In this file, repeat steps 1-5 above and replace the line of code.
Result: a clean and beautiful cart.
If you need help with this, let us know.