close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How can I create a "bundled" group of products with options that are added to the cart as a single object?

Thread began 8/28/2013 5:07 pm by troyd | Last modified 9/11/2013 8:09 am by troyd | 2082 views | 7 replies

troyd

How can I create a "bundled" group of products with options that are added to the cart as a single object?

The short version of what I am trying to do: (please also see diagram)
- Bundle, or "kit" of products that are selected in steps. A main item, associated items and their options.
- Some items are a choice in a category. A minimum of one must be selected.
- Some items will have options. Some options will affect price.
- Lastly, combine the items as a group (single object), when added to cart.


Larger Version

I realize this isn't a supported eCart feature. And I don't expect a full step by step tutorial, but if you can point me in the right direction, that would really help.

What I have tried so far:
Adding multiple items with checkboxes using eCart & DA Search. This works fine but adds individual items which are independent of each other.

I also tried posting the selected items to a second page and stringing the details together into a hidden field which then would be used to bind to the "Add To Cart" behavior. My thought here was that I could create a single object from the previous page and then create an "Add To Cart" behavior from there.
This isn't completely working for me because the options and option prices are not getting posted to the page.

I have several tables setup as relationships between the Products table and the Options tables. And my JOINS contain all of the data for the products including prices, options, etc.
All the tables and joins work fine on individual products and the items that have "price affecting options" work by passing the id from the select. Here, I created a recordset just for Prices. It's filtered by both the ProductID and the $_POST['os1'] and bound to price in the "Add To Cart".
I created 2 versions of the "os1" form fields. They are Shown or not, based on if their "OptionTitle" is NULL. So if an item has an option, the "OptionTitle" won't be NULL and the "os1" Select drop down is presented and used to pass the ID for that option. If an item has no option, then a hidden field for "os1" is used and it has the ID for that price.

For some reason, this doesn't work for me in a repeat region, to pass all of the prices to the second page and total them as one amount. Am I going about this wrong? Should I use javascript instead, to update prices as they are selected?

Thanks,
TroyD

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