How to set Order Notes max character limit? (Dawn Theme)

How can I set the cart notes to be a different max limit? Currently the limit is 5000 characters, but that’s too long for the POD to print out.

There was a pertinent question on this topic here, with an accepted solution. but the solution doesn’t work for me. Maybe the updated Dawn doesn’t accept it any more?

There is no cart-template.liquid asset in my Dawn theme. I instead tried adding

maxlength="255"

to component-cart.css where I found mention of the cart notes, but it didn’t work. (I changed:

.cart__note .text-area {resize: vertical;}

to:

.cart__note .text-area {resize: vertical; maxlength="255"}

Maybe I added the maxlength attribute in the wrong place? I also tried the alternative solution of adding the suggested code to theme.liquid before the tag, but that didn’t work either.

Can anyone help me find a Dawn Theme friendly solution to this problem?
Thank you so much in advance!

Hi @Bouchra22

1: Online store > themes > Actions > Edit code > Snippets > cart-drawer.liquid

2:

Drawer

replace


with


Cart page

Online store > themes > Actions > Edit code > Sections > main-cart-footer.liquid

replace


with


3 Likes

Thank you so much, it worked perfectly!

1 Like