View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Options Determine Price - Price Based on Quantity

Thread began 9/24/2009 6:09 pm by christy342106 | Last modified 9/29/2009 10:31 pm by christy342106 | 2000 views | 5 replies

christy342106

Calculation for final price

Thanks for your reply to get me headed in the right direction. I do have a dynamic site with only one 'add to cart' button, so I agree that it would be best to just add a calculation to determine the final price.

I have created a table in my database to populate the list of various quantities for the customer to choose from - "set of 20", "set of 40", etc. I created a new column in the cart to bind this list to. I now find myself on the cart page with the quantity column and updatable text field for the customer to use for any other item other than greeting cards. I also have this same issue on the detail page where the quantity text field and quantity select list are now both visible. I'm assuming that I should have a show if statement to make either the text field quantity OR the select list quantity available?

My next hurdle will be making the actual calculation to add the additional values for the final price. Quantity * Price + the value from the select list. I have a table in the database, "cardquantity", with fields, "QuanID", "AvailQuan" (description for select list), "QuanPrice", and "ItemCatID". Am I just adding the "QuanPrice" field value to the price calculation in the cart?

Thanks for all of your help and advice.

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