Forums / Setting Up Categories, Products, Attributes / Product Options Values Length

Product Options Values Length

Locked

Views: 4,723

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
14 Jun 2006, 10:14 AM
#1
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Product Options Values Length

I have a text attribute that is set with a length of 80 chrs, however although the entry accepts this when the order is received the entry is truncated to 64 chrs.

I've had a look in the database table orders_products_attributes (v 1.2.6) and see that products_options_values has a 64 chr limit which seems to be the problem. Can I increase this limit eg 128 without causing a problem elsewhere?

14 Jun 2006, 3:57 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Options Values Length

In older versions you have to manual change the field length in a couple of tables ...

Are you able to upgrade?

If not, in v1.3.x we changed the table fields to:

ALTER TABLE customers_basket_attributes CHANGE products_options_value_text products_options_value_text BLOB NULL DEFAULT NULL;
ALTER TABLE orders_products_attributes CHANGE products_options_values products_options_values BLOB NOT NULL;

NOTE: This would have to be tested to assure that this is enough of a change in your version ... I am pretty sure that is all you will need ... I think ... :blink:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Jun 2006, 5:45 PM
#3
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Product Options Values Length

Thanks Linda that did the trick and for anyone else reading this has worked for v 1.2.6.

14 Jun 2006, 5:47 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Options Values Length

Thanks for the update that this was able to work in older versions of Zen Cart for larger Option Value TEXT lengths ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Jun 2006, 7:54 PM
#5
patski avatar

patski

Zen Follower

Join Date:
Nov 2004
Location:
Deal, Kent, UK
Posts:
325
Plugin Contributions:
0

Re: Product Options Values Length

You're welcome! One other tip - I removed the <nobr> that was wrapping the attribute option value in tpl_checkout_confirmation.php around line 110 so that long message values wrap rather than push the page out.

8 Sep 2006, 12:50 PM
#6
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Re: Product Options Values Length

patski:

You're welcome! One other tip - I removed the <nobr> that was wrapping the attribute option value in tpl_checkout_confirmation.php around line 110 so that long message values wrap rather than push the page out.

Thank you to both Linda and Patski.

I had already changed the varchar on Table: orders_products_attributes / products_options_values to TEXT before I read this thread, so before I excuted the SQL you provided, I changed the BLOB to TEXT. It worked, as did the removal of <nobr></nobr>

Thanks again.
TecBrat.

19 Sep 2006, 9:06 PM
#7
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Product Options Values Length

I am trying to lengthen the field length in the option names. I have searched in the db, plus tried the statement above, which generated a phpmyadmin error message about my syntax

help...please :cry:

betty

19 Sep 2006, 9:15 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Options Values Length

In phpMyAdmin ...

Display the structure of:
products_options

Click edit on:
products_options_names

Change the Length/Values from 32 to 64 or the size you need up to 255

Then, display the structure of:
orders_products_attributes

Click edit on:
products_options

Change the Length/Values from 32 to 64 or the size you need up to 255

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Sep 2006, 9:56 PM
#9
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Product Options Values Length

thank you Ajeh!!

Once this client is up to v1.35 will I do it the same way or by using your statements above??

again, thank you

Betty

(also I know I've already asked this twice but with no replies. How do I get the downloaded files to show up in sales? I figure it's attributes so I would run it buy you. Please feel free to delete this part if you prefer.)

19 Sep 2006, 10:15 PM
#10
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Product Options Values Length

Well....darn it Ajeh - it ended up not working the way I thought it would It is the
option name that I need longer in the db.

betty

19 Sep 2006, 10:43 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Options Values Length

When you say longer in the database ... do you mean after the fact you are trying to update the Option Name in the Order?

For your downloads issue ... I need an URL to your Product that isn't working ...

Sounds like you do not have the Option Name set up as either a Radiobutton or a Dropdown ... or You do not have a default set so the Product gets added to the Order without a Download attached to it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Sep 2006, 10:57 PM
#12
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Product Options Values Length

When you say longer in the database ... do you mean after the fact you are trying to update the Option Name in the Order?

I just fixed it as I was in the wrong field earlier, this time I increased the characters to 64 in products_option_name.

As far as the all attribute items which do not get added to the sales reports to show total sold, this is one of the items that has been dowloaded both in single files and the whole album:

http://www.buysoul.com/store/index.php?main_page=product_info&products_id=181

thank you,

betty

20 Sep 2006, 1:08 AM
#13
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Product Options Values Length

I forgot to address 2 points that were in your reply:

Sounds like you do not have the Option Name set up as either a Radiobutton or a Dropdown

I have them set up as checkboxes. I thought in order for them to be able to select more than 1 item, we had to use checkboxes.

or You do not have a default set so the Product gets added to the Order without a Download attached to it ...

This one confuses me a bit.

If it means that am I making one of the downloads a default that is already checked? The answer is no as the client didn't want one checked by default.

If it means if there are any other regular products (such as the cd hard copy) for sale on the same product page as products for download. The answer is No, not on any of the downloads sold thus far. They have been ones that are all downloads only with no physical item listed.

betty

20 Sep 2006, 2:45 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Options Values Length

If you use Radiobuttons or Dropdowns you need multiple Option Names and matching Option Values ...

As checkboxes ... the only concern is has something been selected ...

If selected great ... if not there is not a catch for that ... yet ...

Your checkboxes are good in that you can selectively choose who is wanted ... but nothing blocks that Product from being added with nothing checked, at this time ...

If things are checked, they show in the Orders ...

If nothing is checked nothing shows in the Orders and the customer gets nothing ... although you gots money depending on your setup for pricing ... :eek:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Sep 2006, 2:57 AM
#15
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Re: Product Options Values Length

TecBrat:

... It worked, as did the removal of <nobr></nobr>

Thanks again.
TecBrat.
UPDATE:
You can also, and probably want to, remove the nobr tags from admin as well. I found them in the file "orders.php" around lines 362 and 365.
(older version of cart, so don't count on the line numbers.)
TecBrat.

24 Sep 2006, 4:40 AM
#16
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Product Options Values Length

If things are checked, they show in the Orders

The items checked for download are showing up on the invoices, the payment, and paypal areas.

Where they are not showing up is in any reports. This part is crucial as they will soon (after upgrade to v1.35) have 2 added fields, UPC Code and IRSC code (which get assigned to each individual song for downoad) which have to be accounted for in daily sales to their governing bodies.

betty

5 Nov 2006, 10:57 PM
#17
billc108 avatar

billc108

Zen Follower

Join Date:
Apr 2005
Location:
ATX
Posts:
108
Plugin Contributions:
0

Re: Product Options Values Length

Ajeh:

In phpMyAdmin ...

Display the structure of:
products_options

Click edit on:
products_options_names

Change the Length/Values from 32 to 64 or the size you need up to 255

Then, display the structure of:
orders_products_attributes

Click edit on:
products_options

Change the Length/Values from 32 to 64 or the size you need up to 255

NOTE that you'll also have to manually change any existing text boxes' settings in order for this to apply to them. Any NEW Option Names that you create with a text type will automatically inherit the new settings.

How can I change a text entry from the standard one-line input to a text area input so that it can display multiple lines? ie:

Seth and Amber
January 17, 2006

We're doing a site with a lot of wedding stuff that'll have a ton of engraving/embossing/monogramming/etching.

Thanks.

Member since 4/05.

5 Nov 2006, 11:01 PM
#18
billc108 avatar

billc108

Zen Follower

Join Date:
Apr 2005
Location:
ATX
Posts:
108
Plugin Contributions:
0

Re: Product Options Values Length

How can I change a text entry from the standard one-line input to a text area input so that it can display multiple lines? ie:

Seth and Amber
January 17, 2006

We're doing a site with a lot of wedding stuff that'll have a ton of engraving/embossing/monogramming/etching.

Thanks.[/QUOTE]

Oops. Never mind, I just found that this can be configured in the Option Names editor by changing the number of rows.

Member since 4/05.

6 Nov 2010, 1:13 AM
#19
stiggy100 avatar

stiggy100

Zen Follower

Join Date:
Jan 2009
Posts:
298
Plugin Contributions:
0

Re: Product Options Values Length

Can anyone confirm this is still the way to go about this?

Just wanted to check as the thread is a few years old now. The maximum length in my admin doesn't seem to change the characters and length allowed.

Thanks in advance...

Steve
Site Under Construction: adatglobal.com

6 Nov 2010, 1:48 AM
#20
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Product Options Values Length

Just edit the Option Name you created and change the rows for multiple area ... then add the limit on charcters ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!