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

parent & child products ?

Thread began 10/16/2012 3:10 pm by CraigR | Last modified 10/18/2012 10:07 am by CraigR | 705 views | 6 replies |

CraigRBeta Tester

parent & child products ?

My client builds and supplies garden buildings, which consist of a core item of various sizes and a number of additional ‘bespoke’ options.
I have added options such as size and colour to the cart object on previous projects, but may need a different route, as the options can be product specific and the client would like the cart display to appear as follows, so that each option is itemised, as it would be in a quotation.

pictured is an example...

I thought about having the ‘child options’ as products in their own right, associating them with the parent product via a parentproductid field in the products table.
The objective would be, on the product detail page, for a customer to choose the product by size, in this case a ‘10x8 basic workshop’ and have all of the child products listed with their options.
The add to cart button would then add both the main product and its associated child products (if selected) into the cart on submission of the form.

I guess I have 2 questions.

Is there a better way to go about this ?
If not, is it possible / desirable to have 2 separate add to cart server behaviors running in series, (ie for the above example, I imagine I would have a simple add to cart behaviour for the parent item, followed by add to cart from recordset for the other items.
Grateful for any suggestions

Sign in to reply to this post

Jason ByrnesWebAssist

the child products would need to be added as separate products using add to cart behaviors in series, the problem with this will come if the parent product is deleted, there isn't really a to force the child products to be deleted as well. that would require hand coding to accomplish that we could help with in a premiere support appointment.

Sign in to reply to this post

CraigRBeta Tester

I don't think the logic to prevent the parent being deleted is too difficult,, i'll worry about that bit later.

Are you saying I need to add the parent item first, then the child items singly ?

Sign in to reply to this post

Jason ByrnesWebAssist

  Are you saying I need to add the parent item first, then the child items singly ?  



yes, that is correct.

Sign in to reply to this post

CraigRBeta Tester

As a user experience, I don't think that works me..

I want the customer to be able to add the item with desired options to the cart in one hit.

I think I need to investigate the options route further and see what I can do with the cart display.

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry, i meant that you could have multiple add to cart behaviors trigger at the same tome to add the parent product and selected child products in one go.

use a recordset to lookup the selected products, and use the eCart get contents from recordset behavior to add them.

Sign in to reply to this post

CraigRBeta Tester

okay.

I think I will have a go at both options and see how it works out.

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