Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Discount coupon product restriction

Discount coupon product restriction

Views: 16,064

Results 21 to 40 of 40
14 Nov 2013, 5:32 AM
#21
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Discount coupon product restriction

I see the coupon details, with the text and all the information is ok but it says that the coupon is good for all the categories and all the products.

If you want to try it, the adresse on this page on the store is http://fc4x4q.com/boutique/index.php?main_page=discount_coupon and the coupon is AT00111. Just to warn you? The website is in french.

14 Nov 2013, 1:54 PM
#22
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

Unfortunately, the site is Down for Maintenance so I really cannot test anything ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

14 Nov 2013, 3:32 PM
#23
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

Ok, I put it back. Thanks for your energy on helping me on this.
The coupon AT00111 is suppose to be effective on all products in the "Cartes de membre" category.

Since it's not totaly ready I'll put it back on maintenance when you'll let me do it.

14 Nov 2013, 4:07 PM
#24
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

Is this a clean install of v1.5.1 or an upgrade?

The Discount Coupon should display each of the Product names if you have them set individually ...

For example, I have a Discount Coupon with ALLOW for all products in DVD ... Action ...

And then when I check the Discount Coupon in the Catalog, I see:

Discount Coupon Restrictions

Category Restrictions:

This coupon has specific Product Restrictions.

Product Restrictions:

Die Hard With A Vengeance Linked (Valid for this product)
Fire Down Below Linked (Valid for this product)
Lethal Weapon Linked (Valid for this product)
Speed 2: Cruise Control (Valid for this product)
Speed Linked (Valid for this product)
The Matrix Linked (Valid for this product)
The Replacement Killers (Valid for this product)
Under Siege 2 - Dark Territory (Valid for this product)
Under Siege Linked (Valid for this product)

Discount Coupons may not be applied towards the purchase of Gift Certificates. Limit 1 coupon per order.

In my Admin I see:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

14 Nov 2013, 4:48 PM
#25
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

It's a new installation but it's not me who installed it. I convinced the staff to have zencart installed on their server and they asked their I.T. guy to install it and he gave me access to the admin section and to the directory on the server. I had to work with that to modify the template avec to configure it.

So what did I miss? Why doesn't is shows the restriction in the coupon description?

14 Nov 2013, 4:57 PM
#26
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

On your Admin for the Discount Coupon restrictions, does it look similar to mine?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

14 Nov 2013, 5:19 PM
#27
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

I think yes.
[IMG]http://img.photobucket.com/albums/v112/Bodeau/image_zps4514ac83.jpg[/IMG

Some of the products touched by this coupon and showed there are currently desactivated. Could it be the reason?

14 Nov 2013, 5:23 PM
#28
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

Are any of the Products active?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

14 Nov 2013, 5:28 PM
#29
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

2 are active.

14 Nov 2013, 6:06 PM
#30
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

I tried on mine and active or inactive on the Products has no bearing on the display ...

Did you try switching to Classic Template for a minute to see if it makes a difference?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

14 Nov 2013, 6:16 PM
#31
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

Oh, good idea. I'll try it right now.

14 Nov 2013, 6:30 PM
#32
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

No change unfortunately. :(

14 Nov 2013, 6:32 PM
#33
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

And just to humor me ...

If you compare your two configure.php files on the server in:
/includes/configure.php
/your_secret_admin/includes/configure.php

are you using the same database on both?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

14 Nov 2013, 8:10 PM
#34
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

Yes, same data on both.

14 Nov 2013, 10:45 PM
#35
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

I cannot figure out why your Discount Coupons work this way ...

You are sure when you check your Restrictions that you are on the right Discount Coupon?

If you EDIT the Discount Coupon. what do you see in the URL for the cID= ...

If you look in phpMyAdmin, and search the table:
coupon_restrict

for the coupon_id that has the same value, what comes up?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

15 Nov 2013, 3:19 AM
#36
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

Ok, I found where was the problem.

When I made this coupon it was te first one and was made as a test. So I deleted it, then tried to create it back, or should I say, to create another one with the same name, which off course didn't work. I saw the thread where you explained to rename, than copy and rename the copy. It worked like a charm and played a little with this to get familiar with he manipulation. It ended with 2 inactive coupons: AT00111R and... AT00111, which has the exact same name as the active coupon. It appears that ZenCart was having hard time to differentiate the active and the inactive one and was showing the description of the inactive one which has no restriction, but was running the restriction associated to the active coupon. So I renamed the inactive one to AT00111R2, et voilà! Weird huh...

But many many thanks for your help in this Ajeh! I really appreciated the time you gave me!! Best regards.

15 Nov 2013, 3:25 AM
#37
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

That is very weird ... thanks for hunting down the issue and for letting us know this is resolved ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

15 Nov 2013, 8:44 PM
#38
alexthibo avatar

alexthibo

New Zenner

Join Date:
Jul 2012
Posts:
99
Plugin Contributions:
0

Re: Discount coupon product restriction

Now that I found how to fix this, is there a way to copy the restriction to over 100 coupons without having to edit them one by one? Could I do that directly in the DB?

16 Nov 2013, 12:02 AM
#39
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Discount coupon product restriction

Not easily ...

You could try to grab, via phpMyAdmin, the records for a valid Discount Coupon and then edit them with the next coupon_id and insert them ... but you are getting into some tricky edit/import and could make a real mess if you mess up ...

Something like:

SELECT restrict_id, coupon_id, product_id, category_id, coupon_restrict FROM coupon_restrict WHERE coupon_id = '7';

And you would get something like:

INSERT INTO coupon_restrict (coupon_id, product_id, category_id, coupon_restrict) VALUES
(7, 0, -1, 'Y'),
(7, 4, 0, 'N'),
(7, 6, 0, 'N'),
(7, 9, 0, 'N'),
(7, 10, 0, 'N'),
(7, 11, 0, 'N'),
(7, 12, 0, 'N'),
(7, 13, 0, 'N'),
(7, 17, 0, 'N'),
(7, 18, 0, 'N');

then, do a global replace of:
(7,

with the next Discount Coupon coupon_id that needs the same restrictions, for example, Discount Coupon coupon_id 12:
(12,

to get:

INSERT INTO coupon_restrict (coupon_id, product_id, category_id, coupon_restrict) VALUES
(12, 0, -1, 'Y'),
(12, 4, 0, 'N'),
(12, 6, 0, 'N'),
(12, 9, 0, 'N'),
(12, 10, 0, 'N'),
(12, 11, 0, 'N'),
(12, 12, 0, 'N'),
(12, 13, 0, 'N'),
(12, 17, 0, 'N'),
(12, 18, 0, 'N');

then import that ...

Before attempting it, be sure to backup your whole table:
coupon_restrict

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

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!

14 Sep 2020, 10:26 AM
#40
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Discount coupon product restriction

If it possible to restrict coupon if certain product is in cart or other discount in cart.
Product restriction only work for that particular product but how can we restrict coupon to whole cart content if certain product is in cart or any other discount in cart.