close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Product Options with eCart

Thread began 12/13/2010 5:38 pm by JBWebWorks | Last modified 12/15/2010 11:50 am by Jason Byrnes | 1493 views | 4 replies |

JBWebWorks

Product Options with eCart

Using the tutorial and the eCommerce database

I have a site with products being different bike tours and the options being camping tent packages to rent.

The options show fine (in a select menu) and add to the cart with the price increment.

But when i add a repeat region using the product recordset, the add to the cart does not work for the additional products.

thanks for your help,
Jim Balthrop

Sign in to reply to this post

JBWebWorks

I have three recordsets
rs_products
rs_options and
rs_tentlookup

The repeat region is using rs_products which only selects the products table.

I must join to the other tables, I think, but not sure how to write sql for that.

See the page here products.php
Just testing.
the first tour select works fine.
I do have the first three productoptions for the second tour in the db, but when added to the cart it does not work correctly.

thanks
-Jim Balthrop

Sign in to reply to this post

Jason ByrnesWebAssist

this is going to be problematic to get working correctly andf will require hand coding.

the issue is this:

for the product options to work correctly in a repeat region, the recordsets that control the options will need to be inside the repeat region, and they will need to be filtered on the ID of the recordset that is controlling the repeat region

so the code will have the following order:

product recordset - returns prodID
repeat region
option recordset - filtered on current prodID
options select list - uses option recordset
end repeat region

Sign in to reply to this post

JBWebWorks

thanks Jason.

the options recordset was already filtered by ProductID.
I moved the options recordset inside the repeat region that is controlled by the products recordset, and it works perfectly.

Another question, if I may?
The select list has a static label 'Choose Your Package' with no value. If a person clicks add to cart with that selected, it adds a nothing value to the cart.
What is the best way to prevent that, Validation?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you would need to add required server side validation to the option select list.

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