close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

using the weight in discount codes

Thread began 10/13/2009 10:41 am by sam308940 | Last modified 10/14/2009 10:13 am by Ray Borduin | 970 views | 5 replies |

sam308940

using the weight in discount codes

My client has decided that she wants to have a sale on an entire category of products. she wants to have a coupon based on the categegory code of the product.

we are not using the weight field at all. so i thought that it would be easy if we just hijack that field for the category code - which is a number anyways.

so i have set the weight in the cart to not be calculated by the quantity.
and i set the weight in the add to product code, to house the category code that i want.
this is all working fine, as i set these values to display in the cart area, and they do display exactly as they should. IE if category on add to cart is 500, 500 shows in the view cart (just confirms its passing over as it should).

so...
now my issue is why my discount code WONT WORK.

discount name: october2009

triggers:
total number of items > 0
if session variable txtPromoCode = october2009
if today is before 11/01/2009
number of items with Weight of 504 > 0

calculation:
based on cart subtotal times .25

Any ideas on where I went wrong?

Sign in to reply to this post

Ray BorduinWebAssist

It appears as though it should work from your description.

Try displaying the session variable value to make sure that it is set properly. Maybe try removing the other conditions and getting them to work one at a time.

First use:
triggers:
total number of items > 0

once that works add:
triggers:
total number of items > 0
if session variable txtPromoCode = october2009

and so on and so forth... that will help you narrow down what exactly isn't working.

Sign in to reply to this post

sam308940

thanks ray

somehow testing them individually got them to work!

next question....
what if i want PART of my rules to be an or?
how to get i get the and's and or's to be correct?
i need the below to be Weight of 504 OR Weight of 505
however using the rules as shown below, would it provide a TRUE result if the weight alone is 505? I need it to meet all 3 of the first rules, and either of the 4th or 5th rules.

total number of items > 0
AND if session variable txtPromoCode = october2009
AND if today is before 11/01/2009
AND number of items with Weight of 504 > 0
OR number of items with Weight of 505 > 0

Sign in to reply to this post

Ray BorduinWebAssist

I'd just create two rules. One for 504 and one for 505

Sign in to reply to this post

sam308940

i was hoping to trim it down - she has about 20 categories that she wants to be on sale.......

theres no other option eh?

Sign in to reply to this post

Ray BorduinWebAssist

The other option is to use a calculation.

You could add a calculation:

CouponEligible = (([Weight] == 504 || [Weight] == 505)?1:0)

Then base it on Number of items with CouponEligible = 1 > 0

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