Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Text product option problem...


rofa

Recommended Posts

Hi

 

How can I limit the amount of characters in text product option. We got a text field - where customer can choose embroidery to their product, but it should only be 30 characters long.

 

Now the customer can write a text that is longer than 30 characters, but we can see only 30 characters. Then sometimes it happens that someone writes an embroidery thats is longer than 30 - and we have to call to customer, because we see only the 30 first characters!

 

Rolf

Link to comment
Share on other sites

I presume you're using the Option Type Feature contribution? If so, in the ReadMe doc's, you'll find these notes about field length:

 

OPTIONAL:

 

Also in table products_options set the products_options_length and/or products_options_comment.  These values must be manually edited in the table.

 

 

 

The products_options_length determines the max length of the text option.  It is limited to 32 characters. (This limit is based on the size of fields in the customer_basket and order tables where the text value is later stored. This limit can not be changed without effecting other functionality.  Be sure you know what you're doing if you attempt to increase the length beyond 32 characters.)

 

Using PHPmyAdmin, go into your product_options table and change the length of the field you want restricted to 30 characters instead of 32 and it should work.

 

HTH,

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...