close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Linking Multi Options To Add To Cart Button

Thread began 3/11/2010 6:53 am by SaladoGuy | Last modified 3/17/2010 2:54 pm by SaladoGuy | 2589 views | 8 replies

Eric Mittman

I will use the size as the example option. With the size where does the price come from? Is the price of the item only based on the size, or does the size add to the price of the item? Also, are you storing the price that goes along with the size in your size table? I'm curious about this info because I want to help you come up with a strategy that you will understand and that works well for you so that you can get this implemented the way you need it to be.

If the size is stored with the price and this is the price of the item for that size then you would have a size select list with the size as the label, and the id as the value. When the user selects the size and adds the item to the cart you will have another size recordset on the page that is filtered by the size the user selected. This second size recordset is the key, if you can filter the recordset for the size that the user selected you can get back all of the other info for that record including the price to charge.

You can then make use of price that comes from this recordset directly in your add to cart server behavior along with the size itself. So this way a user makes a single size selection when adding the item to the cart and you can get back multiple values for that size including the price, so there is no need for the user to make multiple selections for the same item. This is also a more secure method that storing the price in a form element or select list, if it is in a form element of any type a crafty user could alter the code on the page before it is submitted or with javascript to alter the price of the item. If you are getting the price from a record in your db you can eliminate this possibility.

Please post back with some more info about your setup and how it is going to work and include any questions about any part that was mentioned here.

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