Cart Page

Cart Page

JoeYY
Visitor
2 0 0

I'm using the trade theme and I added a text box in the cart page to tell customers to log in to get more discounts. I want this text box to disappear if they are already logged in.

Replies 2 (2)

michaelivanov
Shopify Partner
56 6 12

Hi @JoeYY ,

simply wrap the cart box code using the "unless" liquid tag like this:

{% unless customer %}CART BOX CODE{% endunless %}

JoeYY
Visitor
2 0 0

So, the text box in the cart page is just an added section. Should I go to that specific section to add the wrap? or would that change all text boxes in the whole website. (It is a rich text section)