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

rating

How to configure discount in ecart object?

Thread began 10/22/2014 7:47 pm by jurinski334466 | Last modified 10/24/2014 3:45 pm by Jason Byrnes | 245 views | 5 replies |

jurinski334466

How to configure discount in ecart object?

I am having trouble figuring out how to structure a discount in ecart. I'm not sure how to go about it.

I have a situation where two different classes are given on one day. One class in the morning and one in the afternoon. Each class is usually taken and paid for separately. What I need to do is have a discount if both classes are taken together on the same date. There are only two classes held on any given day and both are priced the same amount. How do I offer a discount of X$ if someone registers for both classes?

I have looked at the guides and on the forum, but none of the information seems applicable. I thought maybe if I had a column in the database where both courses on a certain day had the same discount code I could match the discount number somehow, but I don't really know what I'm doing and the whole thing is making my eyes glaze over. Could you please point me in the right direction to implement this? Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

In the Discount settings, one of the triggers is to check for a certain by ID, You could use that trigger to check for the 2 items by their ID to trigger the discount.

Sign in to reply to this post

jurinski334466

still fumbling...

Thank you! I added a discount code column to the db. But since I'm not clear on how to do what I'm trying to do, I'm still trying to get things to work.
Questions:
When I add the Discount column to ecart what is the correct out put type? Number? Text? Integer? Currency?

I've tried a bunch of different combinations, but I'm not any closer to making the discount work. My last effort was this combination which just resulted in an error in the php causing to page not to show:

On the Discount tab I have "number of items with a specific column value" and if the total number of items where Discount has a value of 1 is = a value 2
Calculation: Based on column subtotal
Subtotal of column Price minus 20

Any suggestion on what variables I should be using instead? Do I need to create a rule for each pair of classes the discount applies to?
Thanks again!

Sign in to reply to this post

Jason ByrnesWebAssist

you don't need to have a discount column in the cart object for this.

  Do I need to create a rule for each pair of classes the discount applies to?  



yes.

When you set up the add to cart buttons, one of the cart columns is the ID, each class should have a unique ID.

lets say for example that class ID 22 and class ID 32 should trigger the discount, you would set up the discount rule as:

Triggers:
"Presence of an Item in the cart"
If item "22" "exists" in the cart

AND
"Presence of an Item in the cart"
If item "32" "exists" in the cart

Calculation:
Flat Rate 20

This will discount 20 dollars if both item ID 22 and 32 are added the cart.

Sign in to reply to this post

jurinski334466

Success!

Thank you for your clear, simple solution! The discounts are all up and running now. Without your help, I'd still be working on this for days, especially since what I learned from this modification is that I am absolutely terrible at doing discounts! :P

Thanks again and have a great weekend!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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

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