close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Setting up a percentage discount

Thread began 9/05/2013 8:25 am by jlowery | Last modified 9/05/2013 11:01 am by Jason Byrnes | 2407 views | 11 replies |

jlowery

Setting up a percentage discount

I'm trying to create a 10% discount for products in a specific category. So far, nothing is showing in the cart. Here's what I've done:

- eCart object > Columns tab > created a new column called Category, set to text.
- eCart object > Discounts tab >
- - created a new entry named 10% off.
- - Triggered by "Number of items with Category of sonicAlertPhones > 0.
- - Calculation, based on quantity of item: Quantity of item 1 timex .10

In the Add to Cart button for the item to be discounted:
- - Bindings tab: bound <?php echo $row_rsPhone['category']; ?> to column Category.

My cart display is set to show discounts, charges, etc.

As I said, no discount appears in cart. What am I missing?

Thanks - Joe

Sign in to reply to this post

Jason ByrnesWebAssist

quantity of item uses the item ID

Calculation, based on quantity of item: Quantity of item 1 timex .10

would apply only if the item with Item ID 1 where in the cart

What is the ID of the item that is in the cart?

To help in troubleshooting issues like this, i like to create a separate cart display page, and on the second screen of the cart display manager, set it to show all columns, that way you can see all the info in the cart, including IDs.

Sign in to reply to this post

jlowery

The problem is that there is more than one item in a category; in this instance 3. Will I have to set up an individual discount rule for each item ID? Or is there a way to apply the discount to a group (category) of items?

- Joe

Sign in to reply to this post

Jason ByrnesWebAssist

if you have a category column in the cart, you can use that to apply the discount to the category:

"based on items with a specific value"
Total of "Quantity" Where "Category" has a value of "Some category" "Times" "0.1"

Sign in to reply to this post

jlowery

Hmmm... I'm getting a discount now, but it's wrong. If I have two of the desired items in the cart, it gives me a discount of $0.20 - 10% of 2. How do I get 10% of the price for all the items in the designated category?

Sign in to reply to this post

Jason ByrnesWebAssist

use the total price column

Total of "TotalPrice" Where "Category" has a value of "Some category" "Times" "0.1"

Sign in to reply to this post

jlowery

Bingo! Thanks, Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

No Worries, Joe.

Sign in to reply to this post

jlowery

Related question. On the cart page, the display is set up not to show details in the discounts, etc. section. Is there a way to change that without deleting and re-inserting the cart display?

Sign in to reply to this post

Jason ByrnesWebAssist

It's much easier to recreate the display using the display manager.

to create it manually, you would need to add the rules repeater server behavior (Open the server behaviors panel, click the plus button and select eCart -> Cart Display -> Rules repeater) and the rule name rule total bindings to the page.

Sign in to reply to this post
loading

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