close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Can DataAssist wizard include "product options"?

Thread began 11/02/2010 6:08 pm by thetypehouse | Last modified 11/04/2010 12:09 pm by thetypehouse | 871 views | 7 replies

thetypehouse

Of course, silly me! Thanks!

So, the productoption table is now updated, and I've fixed another problem so that the OptionGroupID is correctly inserted.

However, currently the productoptions table is entering all 16 options, regardless of which checkboxes were ticked. Presumably the insert code needs to enter either 1 or 0 to ensure that only the chosen options are inserted into the productoptions table.

So you can see what I'm talking about, here is the header and some lines from the productoptions table. Although only a few of these option were selected, they are all appearing in the table:
ProductOptionID ProductID OptionID OptionGroupID OptionPriceIncrement
33 9 1 1 NULL
34 9 2 1 NULL
35 9 3 1 NULL
36 9 4 1 NULL
37 9 5 1 NULL
38 9 6 1 NULL
39 9 7 1 NULL
40 9 8 1 NULL
41 9 9 1 NULL
...

I've looked through the code and can't see where one would modify the SQL insert to show 0,1 (if indeed this is the right way of doing it anyway). Or perhaps there needs to be an "if checkbox is selected insert; else do nothing".

(I'm about to add similar modifications to the products_Detail and products_Update pages so we can see which options have been chosen for any particular product. I think I can work out what to do for these, but we'll see!)

Here's the most recent version of the products_Insert page.

Thanks for your continued help.

Attached Files
products_Insert.zip

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