close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Product options in random order

Thread began 5/15/2012 8:54 am by Smart-FX | Last modified 5/27/2015 4:04 pm by Ray Borduin | 1350 views | 6 replies |

Smart-FX

Product options in random order

Hi, is there a way to get my product options to appear in the order i create them?. on some product pages the options are in order like

products_detail.php?ProductID=63.

but on the other page:

products_detail.php?ProductID=59.

i have found that deleting and re-creating the option, sometimes sorts this issue out. But is a major headache. i have had a look through related posts on here but i think they are for older versions of powerstore as i do not have the file location CSSMenuWriter/cssmw_home/menu.php

Plus when you click on one option being silver or black under the option (case colour), the option below it (Image Finish - Glossy Metal) appears above ???

Sign in to reply to this post

Jason ByrnesWebAssist

you can force the options to be listed in the order you create them by editing the webassist/plugins/shopping_cart/add_to_cart.php page, change:

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 ps4_options.OptionID DESC", GetSQLValueString($OGIDParam_OptionValues, "int"));




that code will be in 2 places.

Sign in to reply to this post

Smart-FX

This post has been deleted.

Smart-FX

i uploaded the add_to_cart.php with the changes but it has made no difference. the options for the product are still in random order.

what im trying to achieve is this order for the option (image finish)

Glossy Metal
Mirror Metal
AIR-FX (Lid)
AIR-FX (Full Case)

but whats happening is

Glossy Metal
AIR-FX (Lid)
AIR-FX (Full Case)
Mirror Metal

products_detail.php?ProductID=59

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Matt

Random Order of Options

I am also having this issue. I have changed the code as suggested in this thread, but it does not seem to help.
Is there anyway to specify the order in which you would like product options displayed?

Thank you,
-Matt K

Sign in to reply to this post

Ray BorduinWebAssist

If you post FTP information and a url to the page where I can see the problem, I can take a look and suggest how it could be updated.

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