close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

sort order of options oddity

Thread began 3/15/2011 7:57 am by Rob Emenecker | Last modified 6/03/2011 6:35 am by Jason Byrnes | 1347 views | 3 replies |

Rob Emenecker

sort order of options oddity

Hi all,

I am trying to figure out an odd problem regarding the order of advanced options for a store item on one of the backend admin screens.

The Advanced Option is labeled "Steps", and the value items were entered in the following order as "3 Step", "4 Step", "5 Step", "6 Step", and "7 Step", with "3 Step" being the default value.

In the "Manage Advanced Options" screen, the values display in the correct order. In the store front-end the values display in the correct order in the select list.

In the "Enter Information For Your Product" screen, the select list labeled "Choose the variation of this product to edit..." DOES NOT have them in the correct order. On this screen, the selection list is ordered as "3 Step", "4 Step", "7 Step", "6 Step", and then "5 Step".

????

This is creating a lot of confusion and incorrect information entry by both myself, my staff, and my client. What do I need to do -- short of deleting the product and starting a new product -- to remedy this?

I checked the product ID that is exposed in the URL in the backend, and even allowing for the "default" value to be forced first, it still does not correspond to the strange presentation order that I am seeing.

The problem seems to be limited to the SELECT element on the "Choose the variation of this product to edit..." and does not appear to be the underlying data in the database. Here is the code of that SELECT element:

<select name="ProductOptions[2]" id="ProductOptions_2" onChange="document.getElementById('WADAUpdateForm').submit()">
<option value="6" >3 Step</option>
<option value="7" >4 Step</option>
<option value="10" >7 Step</option>
<option value="9" >6 Step</option>
<option value="8" selected>5 Step</option>
</select>

I am happy to dig under the hood and modifying the coding that populates that selection list, but definitely need some direction as to what file amongst the myriad files contain the code that builds and populates that SELECT element.

Thanks,
Rob

Sign in to reply to this post

Jason ByrnesWebAssist

edit line 625 of the admin/products_update.php file:

php:
$query_OptionValues = sprintf("SELECT ps4_options.OptionID, OptionName FROM ps4_options INNER JOIN ps4_optiongroups ON ps4_optiongroups.OptionGroupID = ps4_options.OptionGroupID  WHERE ps4_options.OptionGroupID = %s  ", GetSQLValueString($OGIDParam_OptionValues, "int"));




to:

php:
$query_OptionValues = sprintf("SELECT ps4_options.OptionID, OptionName FROM ps4_options INNER JOIN ps4_optiongroups ON ps4_optiongroups.OptionGroupID = ps4_options.OptionGroupID  WHERE ps4_options.OptionGroupID = %s  ORDER BY OptionName", GetSQLValueString($OGIDParam_OptionValues, "int"));
Sign in to reply to this post

Rob Emenecker

Thanks Jason! That did the trick!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...