User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore

Post by TAC » Tue Nov 19, 2013 6:44 am

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

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by TAC » Mon Dec 02, 2013 3:09 am

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 :D

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by jamieclick » Tue Dec 17, 2013 5:14 pm

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

Click Business Solutions,
http://www.clickbusinesssolutions.co.uk
Info@clickbusinesssolutions.co.uk


New member

Posts

Joined
Tue Apr 20, 2010 7:46 am
Location - UK

Post by Qphoria » Tue Dec 17, 2013 10:52 pm

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

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by varnco » Mon Jan 13, 2014 6:29 am

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!

New member

Posts

Joined
Sun Aug 18, 2013 3:16 pm

Post by butte » Mon Jan 13, 2014 8:32 am

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.

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by varnco » Mon Jan 13, 2014 11:36 pm

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!

New member

Posts

Joined
Sun Aug 18, 2013 3:16 pm

Post by butte » Tue Jan 14, 2014 12:07 am

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).

Guru Member

Posts

Joined
Wed Mar 20, 2013 6:58 am

Post by paradoxx » Wed Feb 12, 2014 1:39 am

pcbob, thank you very much for your work and time taken on this extension. Working on OC 1.5.5.1.

New member

Posts

Joined
Sun Jun 30, 2013 5:56 am

Post by TAC » Thu May 01, 2014 9:01 pm

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 :)

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by Qphoria » Fri May 09, 2014 10:05 pm

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by TAC » Sun May 11, 2014 1:56 am

Thanks Qphoria :)

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England

Post by TAC » Fri May 16, 2014 12:46 am

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 :(

User avatar
TAC
Active Member

Posts

Joined
Sun Sep 26, 2010 1:33 am
Location - England
Who is online

Users browsing this forum: No registered users and 7 guests