close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Getting Started...

Thread began 10/27/2010 12:09 pm by ecologictech417149 | Last modified 11/02/2010 11:39 am by ecologictech417149 | 2649 views | 43 replies

Jason ByrnesWebAssist

OK, First, you need to determine the maximum number of breaks your products will have, then add three cart columns for each break


so for example, if you will have a maximum of 5 breaks, you need to add 15 column to the cart object, one for each lo point, high point and discount amount.
example:
breakALow
breakAHigh
breakAAmount
breakBLow
breakBHigh
breakBAmount
etc....

Then in the add to cart button you need to set the quantity breaks, for example:
Price = 2.49
breakALow = 1
breakAHigh = 5
breakAAmount = 0
breakBLow = 6
breakBHigh = 11
breakBAmount = 0.31


then you need to create a calculation using the abs function determine which discount amount will be applied:


the basic calculation looks like:
abs([Quantity] >= [breakALow] && [Quantity] <= [breakAHigh])?[Price] - [breakAAmount]:0)

You can expand that for each break set you create like this:
(abs([Quantity] >= [breakALow] && [Quantity] <= [breakAHigh])?[Price] - [breakAAmount]:0) + (abs([Quantity] >= [breakBLow] && [Quantity] <= [breakBHigh])?[Price] - [breakBAmount]:0))


name this calculation realPrice.

in the cart display, swap out the price display with the realPrice display.


yopu will also need to change the TotalPrice calculation to incorporate the real Price calculation:
(abs([Quantity] >= [breakALow] && [Quantity] <= [breakAHigh])?[Price] - [breakAAmount]:0) + (abs([Quantity] >= [breakBLow] && [Quantity] <= [breakBHigh])?[Price] - [breakBAmount]:0)) * [Quantity]

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