If this is your first visit, check our documentation. To post, register or login.

Options value ID number

Started by nicolesweely on 29 Dec 2011, 1:09 AM · Views: 906

Results 1 to 3 of 3
29 Dec 2011, 1:09 AM
#1
nicolesweely avatar

nicolesweely

New Zenner

Join Date:
Dec 2011
Posts:
1
Plugin Contributions:
0

Post #1 by nicolesweely

Is there a way to change the ID numbers of the option values listed in the attributes controller?
On my website, the option values listed for sizes and colors are determined by the consecutive placement of the ID numbers rather then the sort order. I can change the sort order to make it easier to navigate on the admin page, but this does nothing for my website.

My sizes are out of wack on the webpage and list 10,11,12,7,8,9.
I don't want to have to change each one individually just because I can't edit the ID number :(

29 Dec 2011, 5:23 AM
#2
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Post #2 by ronlee67

You can specify the sort order displayed to the customer separate from the sort order you already have set in admin.

You do that within the attributes controller.
Open attributes controller and display one of the products that has several sizes available.

You will see the list of attributes you have established for that product. One of the columns is labeled "sort". You can assign a new sort order by editing the attribute entries. Scroll down a bit and look for the box labeled "Prices and Weights" and change the entry in the the "sort" box. This will not affect the order of the option values listing elsewhere in admin.

Ron

www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a

29 Dec 2011, 5:38 AM
#3
ronlee67 avatar

ronlee67

Totally Zenned

Join Date:
Sep 2006
Location:
Colorado Springs CO USA
Posts:
519
Plugin Contributions:
0

Post #3 by ronlee67

ronlee67:

You can specify the sort order displayed to the customer separate from the sort order you already have set in admin.

You do that within the attributes controller.
Open attributes controller and display one of the products that has several sizes available.

You will see the list of attributes you have established for that product. One of the columns is labeled "sort". You can assign a new sort order by editing the attribute entries. Scroll down a bit and look for the box labeled "Prices and Weights" and change the entry in the the "sort" box. This will not affect the order of the option values listing elsewhere in admin.

Ron

A little followup on the above:

I generally assign sort numbers with large gaps to allow for inserting new size/colors/etc at a later date. In otherwords, I assign 100 to the first item, 200 to the next, 300 to the next etc. Then if a new color comes along, say blueberry and I already have a blue, then I can assign a number to blueberry that doesn't walk on top of the next item which might be blue/grey.

ie: 100 blue
200 blue/grey

add blueberry with sort order 150 and the list will be arranged as follows:
blue
blueberry
blue/grey

Use 0 for the default entry if you have one. For instance I use "Select below:" as the default to be displayed in pull down menus. I give it a sort order of 0 and set the attribute flag "For display purposes Only".

Messing with the Option Value Id's will really scramble up your records in the database.

www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a