Forums / Templates, Stylesheets, Page Layout / Restrict characters in Special Instructions or Order Comments

Restrict characters in Special Instructions or Order Comments

Views: 977

Results 1 to 4 of 4
31 Mar 2011, 8:18 PM
#1
lightup avatar

lightup

New Zenner

Join Date:
Sep 2010
Posts:
59
Plugin Contributions:
0

Restrict characters in Special Instructions or Order Comments

How do i set a limit to the amount of characters allowed in the checkout Special Instructions or Order Comments box?

Kind regards,

27 Apr 2013, 6:15 PM
#2
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Restrict characters in Special Instructions or Order Comments

Did you get an answer to this?

27 Apr 2013, 10:23 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Restrict characters in Special Instructions or Order Comments

In the checkout shipping template (includes/templates/YOUR_TEMPLATE/tpl_checkout_shipping_default.php), change the call to zen_draw_textarea_field to have a 5th parameter of 'maxlength=YOUR_MAX_LENGTH'. Then do the same on the checkout payment page.

But why?

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

28 Apr 2013, 5:49 AM
#4
congerman avatar

congerman

Zen Follower

Join Date:
Oct 2008
Posts:
392
Plugin Contributions:
0

Re: Restrict characters in Special Instructions or Order Comments

Thank you for that

Because the couriers that I use, My Hermes, Only allow 30 letters in their comments box.