close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Prices varies by Quantity

Thread began 1/13/2011 9:54 am by kingston.andrew401728 | Last modified 1/14/2011 8:11 am by kingston.andrew401728 | 8428 views | 5 replies

kingston.andrew401728

Hi Jason - thanks for the the reply. Unfortunately though its not so simple as there will not always be 3 price ranges and the ranges themselves could also change.

The way I did it on the products page was that I created an array from the table in the database and then just checked the quantity and used the corresponding price. As I mentioned though, the problem with that is when the quantity is updated it doesn't re-run the query to change the price.

I'm sure it will just need to be hard coded which I don't really mind but I just don't know where I need to put it and what exact variables I will need to change.

I had a similar problem a few weeks ago with shipping weights and managed to get around it in a similar way. At least then though I was just dealing with the total weight rather than the weight of each individual item.

If you could even just explain the logic to me of when the quantity of an item is updated how it then recalculates the price. Perhaps then I would know where to run the query again to check the price based on quantity.

I hope that all makes sense - I appreciate you help.

Andrew.

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