Page 2 of 2
Re: Product Options Max Length
Posted: Mon Sep 30, 2013 6:58 pm
by MarketInSG
check with the developer of the extension
Re: Product Options Max Length
Posted: Tue Nov 19, 2013 6:44 am
by TAC
Hi,
I took a gamble using this on 1.5.6 and it seemed to work, then I realised I had the same problem as others in that the product will not add the the basket.
I notice new code to add above but would like to know exactly where to put it? I would also like the option to chow the customer how many characters are left.
Thanks
Re: Product Options Max Length
Posted: Mon Dec 02, 2013 3:09 am
by TAC
So I read the thread again and noticed the important part I had missed
To save confusion from the original module and my updated one I have uploaded it.
Once I'd downloaded and uploaded that it seems to work fine.
Thanks for you work on this
pcbob 
Re: Product Options Max Length
Posted: Tue Dec 17, 2013 5:14 pm
by jamieclick
PCBOB Please help!!!!!!!!!!

haha
I have installed it, have the option in the admin area to put in the number of characters etc but then when I go onto the site it lets me put in as much text as I want and adds it to the cart
Thanks,
Jamie
Re: Product Options Max Length
Posted: Tue Dec 17, 2013 10:52 pm
by Qphoria
jamieclick wrote:PCBOB Please help!!!!!!!!!!

haha
I have installed it, have the option in the admin area to put in the number of characters etc but then when I go onto the site it lets me put in as much text as I want and adds it to the cart
Thanks,
Jamie
If you can't get this one working or looking for something more advanced with pricing features, I have this as an alternative:
http://www.opencart.com/index.php?route ... n_id=13894
Re: Product Options Max Length
Posted: Mon Jan 13, 2014 6:29 am
by varnco
I can't seem to find where/when/how I limit the character count for the various text boxes or text area boxes.
Thanks for the help!
Re: Product Options Max Length
Posted: Mon Jan 13, 2014 8:32 am
by butte
Search web-wide for WC3 and other html tutorials -- search for "html tutorial text box area character limit" in combination but WITHOUT the quotation marks (which would mean a phrase). The WC3 summaries are short, others will be more explanatory. You'll see quickly how those work.
Re: Product Options Max Length
Posted: Mon Jan 13, 2014 11:36 pm
by varnco
I meant specifically for the module which was abandoned and someone brought it back to life (at the beginning of this thread)
I believe the module only works for text boxes rather than text area boxes.
Thanks!
Re: Product Options Max Length
Posted: Tue Jan 14, 2014 12:07 am
by butte
I meant it both ways. You need to see how, and how simply, character limits are done, in context of the tags.
The thought was to see in the broader context of html how the two differ, whether you deal with them manually, or edit to add character limits, or try to transform an extension for handling one into an extension for handling the other one or both of them. One difference is between <a tag that is self-contained> and <a tag that opens> before a place to put stuff <is then closed>. Both tags accept a setting for character maximum. Both tags utilize or accept typical name, id, class, etc., for the sake of data and style.
If you look at the innards of the extension, you'll see how it finds what to replace, and how it replaces that. Editing that just to add character limits requires knowing how to add character limits (there or anywhere). Editing that to look for and replace the other kind of input, instead or also, would allow what you're seeking. That's simplified if you see the two tags' requirements and options, including character limits.
A complication for both tags would arise in some foreach loops, in assigning a suitable character limit if you want it to vary. There would then need to be a field for character limit, so that foreach could pluck the right limit for each successive entry. For example (and arguendo), in a single sequence taking in telephone numbers, postal codes, instructions, and reviews, limits of about 15, 15, 300, and 910 would not provide a usable average (310).
Re: Product Options Max Length
Posted: Wed Feb 12, 2014 1:39 am
by paradoxx
pcbob, thank you very much for your work and time taken on this extension. Working on OC 1.5.5.1.
Re: Product Options Max Length
Posted: Thu May 01, 2014 9:01 pm
by TAC
I have this mod working perfectly. Then I used the Export/Import tool by JNeuhoff to add new products. Only to find that after importing the updated spreadsheet all my max length options had been reset to 0.
Is there a fix for this at all? I have asked JNeuhoff as well

Re: Product Options Max Length
Posted: Fri May 09, 2014 10:05 pm
by Qphoria
TAC wrote:I have this mod working perfectly. Then I used the Export/Import tool by JNeuhoff to add new products. Only to find that after importing the updated spreadsheet all my max length options had been reset to 0.
Is there a fix for this at all? I have asked JNeuhoff as well

when adding new fields to the database, that means you have to add the new fields to the export script.
Re: Product Options Max Length
Posted: Sun May 11, 2014 1:56 am
by TAC
Thanks
Qphoria 
Re: Product Options Max Length
Posted: Fri May 16, 2014 12:46 am
by TAC
Just realised I have no idea how to do that. Do I just add a new column to the spreadsheet? Or does it need to be somewhere specific, and what would I call it?
I looked in my db to see if there was a clue there but I don't even know what I am looking for
