close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

User Friendly Options Interface

Thread began 9/04/2012 5:48 pm by dDog | Last modified 9/07/2012 10:59 am by Jason Byrnes | 1724 views | 3 replies |

dDog

User Friendly Options Interface

We are looking for assistance in creating a user friendly interface for our client to add and assign product options.

We read and followed the Tutorial for "Product Options with eCart". According to the tutorial, we are advised to "add various product options and option groups" before adding product option functionality to eCart. For each of the "options" related tables (productoptions, options and optionsgroup), We proceeded through the Datassist wizard generating insert, update, delete and details pages.

We attempted to use these new pages to insert data but quickly became confounded. After consulting the database diagram, we developed a basic understanding of how it works. Then we used phpmyadmin to enter in some sample data. After completing the tutorial, we managed to associate a product with options, but our client will not want to use phpmyadmin for data entry (for options). So, we are pursuing a more intuitive interface for inserting and associating options.

The following post helpful, but it does not seem to include "optiongroups".
showpost.php?p=84393&postcount=17

We also are looking for something similar to this (a simple interface somewhat similar to powerstore).
showthread.php?p=110663

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to use data assist to create the pages for adding Products, OPtions groups and Options to the respective tables.

on the products update page, add a link to a new page for managing the products option table, this will pass the product ID as a URL variable just like the link to the product details page, capture this url variable in a hidden element.

On this page, list the different option groups that are available, when an option group is selected, show the options for that group as a checkbox group.

Use the Manage relational table behavior to store the selected option group, option IDs and productID to the product options table.

Sign in to reply to this post

dDog

These instructions are helpful, thank you! An additional hint would be useful:

  when an option group is selected, show the options for that group as a checkbox group.  



What method would I use to cause particular options to display when selecting an option group?

Sign in to reply to this post

Jason ByrnesWebAssist

You could show the listing of option groups as links to a detail page.

pass the group ID as a URL variable:
options.php?groupID=3


and use a recordset to query the options table and filter it based on the GroupID query string variable.

Sign in to reply to this post

dDog

So close! Please help!

I created a new page for managing product options. The ProductID and OptionGroupID are passed as URL variables.

When a user selects an OptionGroup, the options appear with checkboxes. I used the "manage relational table" behavior to store the information. I was careful with the wizard following the instructions.

I'm not sure how to make the checkboxes work with the relational table. If you are able, please review the attached file. Any assistance is always greatly appreciated.

Attached Files
update_product_options_Results.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the update button is in a seperate form as the checkboxes.

the checkboxes form needs to have a submit button in order for the checkbox selections to be s[posted.

Sign in to reply to this post

dDog

Thanks for the help! The problem was resolved with a Premium Support call. The issue was the way "repeat region" was applied using DW instead of WA.

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