How can I limit the character count in the note to seller on Turbo theme?

Can you advise me how to limit number of characters to in note to seller? Customers are writing very long gift messages that we can’t fit on our cards! I’m using Turbo theme.
Appreciate any help,
Jess

2 Likes

@Jrichardsonxx

sorry for this issue can you please try this similar

https://www.w3schools.com/tags/att_textarea_maxlength.asp

1 Like

Do you have any more information in applying this solution to Turbo theme?

Many thanks,

Jess

We dont have access to Turbo theme as it’s paid. You’ll have to locate the text input that the cart note goes into in your cart template and add a max-length property as provided by @KetanKumar . If you can provide your store url and password if password protected (Online Store > Preferences > Password Protection), we may be able to guide you how to make the change.

That makes sense.

https://tugboat.co.uk/

Many thanks,

Jess

So two approaches you can take here. Open your cart-template.liquid file in your assets folder. Ctrl + f and search for “note” – look until you find something that looks like this:


Then add the maxlength attribute to it:


If you can’t figure that out, you can put this in theme.liquid right before the closing body tag ():


Just change 50 to however many characters you want to allow in any instance.

3 Likes

That worked a treat.

Much appreciate the help!

Jess