Zen Follower
- Join Date:
- Jul 2007
- Posts:
- 129
- Plugin Contributions:
- 0
Coupons and Specials ..
How can I prevent coupons from being used on "specials" or "sale" products ?
Views: 4,644
Zen Follower
How can I prevent coupons from being used on "specials" or "sale" products ?
New Zenner
I haven't found an answer to this yet but I would love to know too! Thanks!
Totally Zenned
For SaleMaker you have a drop down menu for this:
If a product is a Special: [Three choices here]
Coupons I would like to know if there is a way too, cos the way I am doing it currently is to set restrictions for the items in a category on sale for the duration of the sale and on each coupon, but unless I put all specials items in their own category I don't know of any way to restrict the use of coupons on specials lol
HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe
Oba-san
At this time, there isn't anything built into the Discount Coupons to skip Specials or Sales ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Totally Zenned
Thanx, I spent the morning reading and came to that same conclusion LOL is there anything in the works for 1.4 or future ZC releases?
HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe
New Zenner
Hi,
Just wondering if a solution has been found, or add on. To allow restriction on sale items for coupons. Or is restricting entire catergories the only way at the moment?
Thanks
LushAC
https://www.LushAdultConcepts.com.au
Live Life Only With Pleasure!!
New Zenner
We have the same problem and would like to know if it has been solved? We offer many different special offers and discounts for our wisconsin dells vacation packages but they do not apply to all coupon offers and savings.
Zen Follower
Hi Guys,
https://www.LushAdultConcepts.com.au
and
Wisconsin Dells
This is off topic, but you need to rename your /admin folder and install the latest security patches...
I can access your admin login page, which leaves you very vulnerable to being hacked...
See the security thread at the top of the forum for instructions...
Thanks
Steve
Steve
Site Under Construction: adatglobal.com
New Zenner
Thanks Steve,
I've just recently changed mine. Thanks again for the heads up.
https://www.LushAdultConcepts.com.au
Live Life Only With Pleasure!!
Zen Follower
Wisconsin Dells:
We have the same problem and would like to know if it has been solved? We offer many different special offers and discounts for our wisconsin dells vacation packages but they do not apply to all coupon offers and savings.
I too have looked for a solution and am starting to consider the following.
My customer has products which should never have coupons applied, however he also has existing coupons. I don't want to mass change existing coupons or move items into different categories.
I believe a simple patch (although not desireable in all cases) is to just rename your product model. The pricing module has a bypass the does not apply a coupon code if the item is a gift certificate. If the 1st 4 characters of a product model is GIFT, then a coupon says it is accepted on the checkout screen, but any product model starting with the letters GIFT (like GIFTCOFFEE or GIFT001) will be skipped when adding coupon discounts. If you want to put a product on special for just a few days, the quickest way may just to be modifying the model.
You could also go into INCLUDES/FUNCTIONS/FUNCTIONS_PRICES and perhaps create another exception similar to this:
if(substr($product->fields['products_model'], 0, 4) == 'GIFT') { //Never apply a salededuction to Ian Wilson's Giftvouchers
if (zen_not_null($special_price)) {
return $special_price;
} else {
return false;
}
}
The quickest way might be to make certain items have a prefix that means they would never have coupons applied. Perhaps start the model with NC for no coupon and make an exclusing that read: if(substr($product->fields['products_model'], 0, 2) == 'NC')
Putting products into seperate different categories is not as clean however my other thought, which needs coding was this.
I thought, hey, duplicate the GENERAL product type and make it GENERAL-NOCOUPON. Then when adding products that may be put on sale and should never have a discount coupon applied would be put into this type. An exception in the FUNCTIONS_PRICES routine could exclude this product type completely. The products could have a regular product model number and they could be sprinkled anywhere in the store it appears. There IS a way to restrict a category to just have one product type in it, but I would think that would be sub-optimal for this discussion.
I believe that you might be able to change product types in the database easily, especially if the new product type is exactly the same as the one you are using.
Anyway, I have done little testing on this, but make the suggestions for others who have a bit more time to test and code. If you run with this, please post your changes.
Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)
Zen Follower
mshultise:
I believe that you might be able to change product types in the database easily, especially if the new product type is exactly the same as the one you are using.
Well, believing and doing are two different things.
I set up a new product type last night , duplicating the General type (I made it type 6). I extracted the current type configs, changed the index numbers and the type id and reloaded the table. I created a new product and along the way, fixed and refixed some typos and so on.
I did not finish but can tell you that after a few hours of this, it is NOT the best way to proceed. Oh if I was going to contantly put items on sale and have dozens of coupons, then perhaps a new product type would be the way to go. However, it was not as easy as I had hoped. I did not quite get ther either. I was working on excluding the item in the pricing module when I finally kept falling asleep.
It was a nice exercise, but excluding a product, category or renaming the model number would be trivial compared to trying to use a new product type in the current version to allow you to place an item on sale and not use coupons.
Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)
Tell staff why this post should be reviewed.