SellUp appends an ID tag to products as a cart line item in your Shopify store. This is simply to track conversions so you know how well your upsells are performing.
By default, this tag is set to “hidden”. This means it should not show on your store’s frontend when looking at the cart for example.
If you can see the “sellup_ID” tag followed by some numbers, this means your theme is not correctly honouring the cart line items visibility. In essence, it is simply checking to see if a product has cart line items and then is showing them irregardless of whether they should be visible or not.
If this is the case, they can be hidden but some changes to your theme are required.
How to hide the “sellup_ID”
Step 1 – Locate cart.liquid
In your Shopify admin, access your Shopify theme files.
In the cart.liquid file, look for the code that prints the items properties:
{% unless p.last == blank %}
Step 2 – Modify the code
Within the unlessĀ statement, add the additional code found in the example below:
{% unless p.last == blank or p.first == '_sellup_id' %}
Example of how it should look if there were no other “or” statements. If your code has other or conditions, see note below.
Notice we have simply added another “or” condition and then added the p.first == ‘_sellup_id’.Ā
Once you have amended, click save.
When testing, remove any items from the cart and re-add them via the upsell. The ID should now be hidden.