Thanks so much for the clarification. I proceed with confidence.
Printable View
Thanks so much for the clarification. I proceed with confidence.
You are most welcome glad that this helped ... :smile:
Sorry - another question: I have a minimum spend specified, and two categories excluded. In testing, when I buy something from an excluded category, a message appears in the checkout process referring to the need to meet the minimum spend. Should I be expecting a message about not being able to get a discount from the excluded category?
Many issues were fixed in v1.5.4 ... what version are you using?
What is the exact message that you are seeing?
What are the exact settings on the Discount Coupon and the Restrictions?
You could customize the code for the message and use the code in RED:
/includes/modules/order_ttotal/ot_coupon.php
around the line 192:
and see if having the popup to explain what the Discount Coupon is about helps ...Code:// $messageStack->add_session('redemptions', sprintf(TEXT_INVALID_REDEEM_COUPON_MINIMUM, $currencies->format($coupon_result->fields['coupon_minimum_order'])),'caution');
$dc_check = $_POST['dc_redeem_code'];
$dc_link = ' <a href="javascript:couponpopupWindow(\'' . zen_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $coupon_result->fields['coupon_id']) . '\')">' . $dc_check . '</a>';
$messageStack->add_session('redemptions', sprintf(TEXT_INVALID_REDEEM_COUPON_MINIMUM, $currencies->format($coupon_result->fields['coupon_minimum_order'])) . $dc_link, 'caution');
You could also change the define in the language file(s) for:
TEXT_INVALID_REDEEM_COUPON_MINIMUM
Using 1.5.1.
There is actually no need for a minimum spend message in the particular situation, so what I need in essence is a message which indicates why someone who has chosen from an excluded category why they haven't got a discount. Are you suggesting I simply hijack the min_spend message in the language file? That would work for me...
If I have an excluded category item and an OK category item in the cart, the order will process. Obviously because it is over min_spend - but there is no warning re: the excluded product. If I have only an excluded category item, the min_spend message is displayed:
'You must spend at least $100.00 to redeem this coupon'
Ah. No, wait, that is all OK. If I complete the order, the discount is not applied to the sale item! So I can just change the TEXT_INVALID_REDEEM_COUPON_MINIMUM. Should be OK. Because if only an excluded product is in the cart and processed, there is no issue because it is over the min_spend, but no discount is applied.
I have a question about coupons ...
I designed a banner where I am advertising a $5 discount only for international users ... This banner is linked to an EZ page where I will advertise the coupon code.
So my question is how can I limit the coupon CODE just to non-US customers?
I want to give a different discount to US clients! So I need to prevent them from trying to redeem this code.
Well I am using Zen Cart 1.5.3 and found the answer to this myself ... however I am not sure if I created the restrictions right ...:blink:
What I did was to Top Deny and Allow Product Category and specific product in that order ...
Discount Coupons Product/Category Restrictions
Category Restrictions
Coupon ID Coupon Name Category ID Category Name Allow Deny Remove
2 -1 All Categories Deny Allow Remove
Displaying 1 to 1 (of 1 categories) Page 1 of 1
Category Name Add
Product Restrictions
Coupon ID Coupon Name Product ID Product Name Allow Deny Remove
2 CODEW 147 Armani Code by Giorgio Armani for Women Eau De Parfum Spray 2.5 oz
Category: Women's Perfumes
Manufacturer: Giorgio Armani Allow Allow Remove