close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

shopping options with different price based on options

Thread began 3/11/2010 2:16 pm by tim299030 | Last modified 3/12/2010 12:47 pm by tim299030 | 1263 views | 4 replies

Jason ByrnesWebAssist

where your options are so limited, I dont think I would use a recordset. I would just enter the 2 sizes and the two grinds manually as static items in the list.

For the price, there are a couple of way to go. Probably the simplest is to create a new column in your eCaret object that you can send the large bag price to. you could call it "lgPrice" in the add to cart button, pass the 1/4 pund bag price to the Price column and the amount extra to charge for the 3/4 pound bag to the lgPrice column.

so if a 1/4 pund bag is $4 and the 3/4 pund bag is $9, you will pass 4 to the price column and 5 to the lgPrice column

Next, on the eCart object tag, create a calculation that will be used to determine the price to apply the product, call it realPrice. If the size that is passed for the 3/4 pound bag is "3/4 of a lb" the calculation will look like:
(([size] = "3/4 of a lb")?[Price] + [lgPrice]:[Price])

you then have to modify the total Price calculation:
[Price] * [Quantity]


to:
(([size] = "3/4 of a lb")?[Price] + [lgPrice]:[Price]) * [Quantity]


You will want to change the cart display to use the realPrice column in place of the price column, and change the checkout code top pass the realPrice to the gateway in place of the price.

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