How to add a cart note only when items are in the cart?

Hello,

i want to add a cart note to my cart page and i already have the code buuut i would like to make it appear only if the cart contains items. how can i proceed? thank you in advance!

Hi @sibdvck

You could easily achieve this by enabling the cart note feature on your theme customize. By default, the note will appear only if the cart contains items.

Steps:

  • Vintage Them: From Online Store > Theme > Customize > Theme Setting > Cart page > Enable order notes.
  • Online Store: From Online Store > Theme > Customize> Choose Cart on top center dropdown menu> Select Subtotal > Enable cart notes.

I hope this helps you.

ok thank u! and if i want to modify the title and the css of the note, how can i do it?

i would like to have a text-box with


rows 3 and cols 43, without the outline. is it possible?

Hi @sibdvck

You could edit your cart note by editing your theme language:

  • From your Shopify admin, go to Online Store > Themes.

  • Find the theme that you want to edit, and then click Actions > Edit languages.

  • In the Filter translations box, type Add a note to show the order notes translation:

  • Enter a new order notes label.
  • Click Save.

I hope this helps you.

thank you, i found it :slightly_smiling_face: do you know how to edit the code to reduce the size of the text-box? it’s my last request, thank u!

1 Like

hi! did you get a solution to reduce the size of the text box ? Thx!!