close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Input for number of pages to calculate pricing

Thread began 6/23/2010 10:36 am by mrobben375515 | Last modified 6/25/2010 7:21 am by Ray Borduin | 1084 views | 4 replies |

mrobben375515

Input for number of pages to calculate pricing

I would like to have an option where the client types in the number of pages they would like in their book and the price is calculated based on what they input. The base cost for 20 pages and then $1.50 for every page on top of that. It would probably be at the bottom of a form where they select some other options and then hit submit. Then it would take them to the shopping cart so they can pay for their book. Is something like that possible? I know that I can create a drop down with product options but I don't want to have to make an option for every number from 20 to 100...

Sign in to reply to this post

mrobben375515

Nevermind that last post, we're just going to make it work in our cart with the advanced options... However, I need to add a base design cost to the cost of the book. The base cost is $30 and the book cost depends on how many pages. So let's say the book they choose is $40, if they order 1 it will be $70...if they order 2=$110...etc. Is that possible?

Sign in to reply to this post

Ray BorduinWebAssist

There are a few ways you could do it.

One is to update the calculation:

TotalPrice = [Price] * [Quantity]

to


TotalPrice = ([Price] * [Quantity]) + 30

Sign in to reply to this post
Did this help? Tips are appreciated...

mrobben375515

That's a quick fix, thanks for the help Ray. The only problem I can think of is that would be the set calculation for every product correct? Is there a way that I can set that for a specific photobook product?

Sign in to reply to this post

Ray BorduinWebAssist

This calculation would only add 30 if the product ID is 2:

TotalPrice = ([Price] * [Quantity]) + (([ID]==2)30:0)

Sign in to reply to this post
Did this help? Tips are appreciated...

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