close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


complicated discount

Thread began 6/11/2012 9:19 am by sam308940 | Last modified 6/11/2012 2:16 pm by Jason Byrnes | 302 views | 1 replies |


complicated discount

my client wants to put a discount code in as follows.......

if they buy an item in categoryA (category is a column in cart)
then they get a 30% discount on an item in categoryB

but she only wants the discount to be 1 for 1.
to get the discount on 2 items in categoryB they have to buy 2 items of categoryA.

any ideas on how this could work.
i know i can setup a discount to look for an item in categoryA, and if it exists then apply discount for categoryB. However i dont know if there is a way to setup the quantity part.


Sign in to reply to this post

Jason ByrnesWebAssist

with a percentage discount, this becomes very tough to accomplish. I assume that the prices of the items in the cart for category B will be different, and you would want the discount to apply to the lowest prices in the cart?

this is going to require some hand coding to accomplish.

you would need to code a loop through the cart to go through each item for category b and return the x lowest prices. Where x is the quantity of category a items.

this hand coding is not supported here in the forums, we could help you with this in a premiere support appointment though.

Sign in to reply to this post

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





Ease of use


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