_rx2_ Posted May 14, 2009 Share Posted May 14, 2009 Hello,I've searched and found some reference to this problem but cannot find a specific fix for my specific difficulty.I am creating products where the user can select one of several greetings to be printed on a card. These greetings can be quite long.I've concluded that I have to do this through attributes. However, when I create an attribute with a long value I get the following error:the field name (English (English)) is too long (64 chars max)I've done some changes in the DB to the attribute tables in terms of character length but that doesn't seem to change the limit.Any suggestions?Is there a better way to have a customer select the greeting they want as well or is attributes the correct way of going about it? Link to comment Share on other sites More sharing options...
rocky Posted May 14, 2009 Share Posted May 14, 2009 Have you increased the maximum length of the name in classes/Attribute.php as well? protected $fieldsSizeLang = array('name' => 64); If you want the customer to select a greeting rather than enter one themselves, then I think attributes are the way to go. Otherwise, you can go to the product's "4. Customization" tab and add a text field for them to enter a greeting.You'll definitely need to increase the size of the dropdown box, or convert them to radio buttons, but that is more work. You'll also probably need to move the buy block down and make it full-width instead of half-width.I suppose you could instead give each greeting a code and list the full greetings in the Data Sheet, renamed to Greetings.There are numerous ways you could do this. Let me know which way you want and I will try to help. Link to comment Share on other sites More sharing options...
_rx2_ Posted May 14, 2009 Author Share Posted May 14, 2009 Thanks, that worked (the change in the Attribute.php file).I will indeed attend to some of the modifications you mention. Want to get the technical functionality done before tackling presentation.Whenever I attempt to add a text box under Customization (mine is numbered 5 whereas 4 is Features) I get this message:Hack attempt (Product -> customizable = 1)One of the options under the Verse or Greetings Attribute will be 'Custom Message', in which case they'll need to fill in what that message is. Link to comment Share on other sites More sharing options...
rocky Posted May 14, 2009 Share Posted May 14, 2009 See this bug report for how to fix customisation. Link to comment Share on other sites More sharing options...
Recommended Posts