Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How to change product attribute for order placed?

How to change product attribute for order placed?

Locked

Views: 6,674

Results 1 to 20 of 28
This thread is locked. New replies are disabled.
10 Nov 2006, 9:10 PM
#1
monkey_boy avatar

monkey_boy

New Zenner

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

How to change product attribute for order placed?

I have customers that order the wrong size of clothing on my store. In the 1.2x version, I used phpMyAdmin and changed the attribute using easy, simple text.

(zen_orders_products_attributes => went blobby on version 1.3x and above)

Now that these are stored in blobs, what can I possibly do? I searched the forums, but did not see this anywhere. Thanks for any help you can give.

10 Nov 2006, 11:13 PM
#2
monkey_boy avatar

monkey_boy

New Zenner

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

Re: How to change product attribute for order placed?

Binary - do not edit (3 B)
shows above the field in phpMyAdmin and has a file upload control next to it. Weird.

11 Nov 2006, 2:14 AM
#3
monkey_boy avatar

monkey_boy

New Zenner

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

Re: How to change product attribute for order placed?

I'll paypal someone $15 if you can answer this for me by Monday- I'd hate to delay this guy's order any more, but I need to be able to send the correct size to the warehouse. Thanks!

18 Dec 2006, 10:51 PM
#4
monkey_boy avatar

monkey_boy

New Zenner

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

Re: How to change product attribute for order placed?

Has anyone ever found a fix? Are order product attributes impossible to change? Please advise.

18 Dec 2006, 10:57 PM
#5
monkey_boy avatar

monkey_boy

New Zenner

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

Re: How to change product attribute for order placed?

Just signed up for a monthly donation to zen-cart from my little martial arts supply store. Please advise on the previous question (and/or the motion on the previous question).

19 Dec 2006, 7:39 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: How to change product attribute for order placed?

If I am understanding you correctly, all you are missing is have on the Option Name for Size is to add 1 more Option Value:

What Size do you Wear? (or Pick one or Select from below)
Sort Order 0
Default YES
Display Only YES

What this does is force the customer to make a "proper" choice and not an "accidental" choice ... :smile:

Sorry this got past us ... when you have a post and no response for more than 24 hours ... add on to your post incase someone doesn't have the enough information or perhaps someone who can help hasn't been around ...

19 Dec 2006, 1:14 PM
#7
monkey_boy avatar

monkey_boy

New Zenner

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

Re: How to change product attribute for order placed?

Hi Ajeh,

Thanks for the response. I have customers that sometimes choose the wrong size, or we need to change the size due to availability in our warehouse. Is there a way to change a size once an order is placed? We used to use phpMyAdmin to edit the product attribute in the database, but now I see it is a blob field. Any advice?

thanks,

Jim

20 Dec 2006, 12:16 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: How to change product attribute for order placed?

Backup your database ...

You can try using TEXT vs BLOB and see how that works with your site ...

20 Dec 2006, 12:22 AM
#9
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: How to change product attribute for order placed?

Could you explain that a little more for the MySql challenged among us:unsure:

20 Dec 2006, 12:28 AM
#10
monkey_boy avatar

monkey_boy

New Zenner

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

Re: How to change product attribute for order placed?

Yes- How can I change database structure so easily? I won't lose any existing information? Zen cart will just store the incoming order data - even though it is no longer a blob?

Thanks!

Jim

20 Dec 2006, 1:29 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: How to change product attribute for order placed?

If you backup your database ...

Go to phpMyAdmin ...

Look at the structure of the orders_products_attributes table ...

Edit the field products_options_values and change from BLOB to TEXT ...

NOTE: I have not tested this 100% but at the moment I am not seeing any reason that this would not work for you so that you have a large field capable of holding anything that the products_options_values could hold before but this lets you view it in phpMyAdmin ...

I have to chew on this a bit and consider if there is any reason why this couldn't be changed this way ...

NOTE: you may wish to use a test site and test database and make the change on there and then conduct a lot of tests and examin your old data and see if you see anything obvious that might be moofed up ... :eek:

But, like I say, I don't think this will be an issue ... but again I have not tested it 100% ...

20 Dec 2006, 1:33 AM
#12
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: How to change product attribute for order placed?

what was the reasoning for changing it in the first place from text to blob? Just curious, trying to learn.

20 Dec 2006, 1:41 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: How to change product attribute for order placed?

It was way too small original because of all that field has to manage ... varchar(64)

So some "bright elf" got the idea that making it a BLOB was ideal so that "anything and everything" we may want to do with that field not and in the future would work and not have to be changed again and again ... :rolleyes:

Unfortunately ... I didn't think about the fact you guys might want to browse the raw database and look at the raw data via phpMyAdmin ... :cry:

Gonna have to rethink the BLOBs ... I should of know after watching the movie ... you don't want to go there ... :eek:

20 Dec 2006, 1:49 AM
#14
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: How to change product attribute for order placed?

Thanks for the explanation......also i'm now gonna have nightmares like I did when I was 5 (when the BLOB was colorized) Thanks

20 Dec 2006, 1:50 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: How to change product attribute for order placed?

See? and you wonder why I work late at night ... I saw the black and white then colorized the same night ... :shocking:

20 Dec 2006, 1:56 AM
#16
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: How to change product attribute for order placed?

:shocking: shivers, turns on all of the lights and locks the doors

20 Dec 2006, 3:51 PM
#17
monkey_boy avatar

monkey_boy

New Zenner

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

Re: How to change product attribute for order placed?

You've scared my monkey, but answered my question. Thanks!

21 Mar 2007, 6:17 PM
#18
webomat avatar

webomat

Zen Follower

Join Date:
Jan 2005
Location:
Minneapolis MN, USA
Posts:
128
Plugin Contributions:
0

Re: How to change product attribute for order placed?

Ajeh:

If you backup your database ...

Go to phpMyAdmin ...

Look at the structure of the orders_products_attributes table ...

Edit the field products_options_values and change from BLOB to TEXT ...

NOTE: I have not tested this 100% but at the moment I am not seeing any reason that this would not work for you so that you have a large field capable of holding anything that the products_options_values could hold before but this lets you view it in phpMyAdmin ...

I have to chew on this a bit and consider if there is any reason why this couldn't be changed this way ...

NOTE: you may wish to use a test site and test database and make the change on there and then conduct a lot of tests and examin your old data and see if you see anything obvious that might be moofed up ... :eek:

But, like I say, I don't think this will be an issue ... but again I have not tested it 100% ...

A Question for Linda or Anyone "-)

I've been testing this -- changed it to text, edited, then changed it back. No problems that I've been able to ferret out.

Any reason not to do this? I could leave it as text always, but because they can upload files (with potentially longer names) and leave longer comments in a text box (no one has as yet) thought maybe better to put it back the way it was?

Basically I'm confused and just need a quick way to fix an order -- don't want to install Edit Orders or Super Orders until such a time as the functions I need are available. I'm comfortable using phpMyAdmin to mess things up. hehe.

Thanks for your input!

Becky

21 Mar 2007, 6:37 PM
#19
monkey_boy avatar

monkey_boy

New Zenner

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

Re: How to change product attribute for order placed?

I change it to text in phpMyAdmin, and it worked fine.

21 Mar 2007, 6:53 PM
#20
ajeh avatar

ajeh

Oba-san

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

Re: How to change product attribute for order placed?

I have not broken it yet ... but I have more testing for this for future releases to do ... :smile: