We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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

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

sibdvck
Excursionist
15 0 6

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!

Replies 6 (6)

AvadaCommerce
Shopify Partner
3879 840 1007

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.

Screenshot.png

I hope this helps you.

banned
sibdvck
Excursionist
15 0 6

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

sibdvck
Excursionist
15 0 6

i would like to have a text-box withCapture d’écran 2022-04-17 à 12.15.12.png rows 3 and cols 43, without the outline. is it possible?

AvadaCommerce
Shopify Partner
3879 840 1007

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:

AvadaCommerce_0-1650194484997.png

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

I hope this helps you.

banned
sibdvck
Excursionist
15 0 6

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

MVUILL
Explorer
70 0 19

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