Page 5 of 5 FirstFirst ... 345
Results 41 to 47 of 47
  1. #41
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    I have customized the ot_coupon.php in order to get all I want.
    When go on restriction coupon page I can't see any button to allow all hundreds of products for my manufacturer. Please tell me I don't have to manually allow them one by one ..

  2. #42
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Coupon Restriction by Manufacturer

    You do not see in the dropdown an:
    Add All Manufactures Products

    if selected and you click Allow, it will add all of the Products for that Manufacturer ...
    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: v1.5.5]
    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!

  3. #43
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    At the bottom page I did :

    Selected the Manufacturer name ( from dropdown )
    Add all manufacturer products ( from dropdown )
    Allow ( from dropdown )
    I pressed the "Update" button

    At the top of the page I can see the message : "Category Not Completed" and nothing changed .

    Any idea ?

  4. #44
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Coupon Restriction by Manufacturer

    In your Zen Cart Admin, go to the Coupon and check for its coupon_id ...

    Next, in phpMyAdmin, look at the table:
    coupon_restrict

    If you search that table for your Coupon based on the coupon_id, do any records come up?

    You mentioned you had a lot of Products for this manufacturer, about how many would you think you have?
    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: v1.5.5]
    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!

  5. #45
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    Linda, your persuasive way to help solved my issue.
    It works but first i had to "Remove all manufacturer products" for that manufacturer and then "Add all manufacturer products" using selected "Allow" option from dropdown. I believe bulk "update" button isn't working. It's about 360 products available on coupon_restrict table by my coupon_id .

    Your help is really appreciated

  6. #46
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Coupon Restriction by Manufacturer

    The remove will clear out all of the products for a manufacturer and perhaps that cleaned things up so you could add them all ...

    I cannot really trigger that error message and have tested it where a few products of the manufacturer are already added and then I run the add all for the manufacturer ...

    'tis a mystery ...

    Do let us know if it happens again that you see the error message, and hopefully you will recall if anything odd happened to produce it ...
    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: v1.5.5]
    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!

  7. #47
    Join Date
    Dec 2008
    Location
    sLOVEnia
    Posts
    18
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    Quote Originally Posted by jsarwar View Post
    I tried adding prefix but still same thing. Just to make sure where should I add prefix in following lines:

    Code:
    if ($_GET['build_man'] > 0 && $_POST['products_drop'] == -1) {
              // to insert new products from a given manufacturers_id for a coupon_code that are not already in the table
              // products in the table from the manufacturers_id are skipped
                $new_products_query = "select products_id from products where manufacturers_id = '" . $_GET['build_man'] . "' and products_id not in (select product_id from coupon_restrict where coupon_id = '" . $_GET['cid'] . "')";
                $new_products = $db->Execute($new_products_query);
              }
    
              if ($_GET['build_man'] > 0 && $_POST['products_drop'] == -2) {
              // to delete existing products from a given manufacturers_id for a coupon_code that are already in the table
              // products in the table from the manufacturers_id are skipped
                $new_products_query = "select products_id from products where manufacturers_id = '" . $_GET['build_man'] . "' and products_id in (select product_id from coupon_restrict where coupon_restrict = '" . $status . "' and coupon_id = '" . $_GET['cid'] . "')";
                $new_products = $db->Execute($new_products_query);
    Thank you Ajeh!

    Works like a charm with this fix.

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. Coupon restriction error
    By dre in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 7
    Last Post: 30 Jun 2011, 10:09 AM
  2. Coupon Restriction
    By enzo-ita in forum General Questions
    Replies: 2
    Last Post: 29 Nov 2010, 09:28 AM
  3. Coupon Restriction Issue
    By disciple in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 11
    Last Post: 26 Sep 2010, 06:56 AM
  4. Coupon Restriction Options
    By pdnls in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 16 Aug 2010, 02:27 PM
  5. Coupon restriction logic
    By dbrewster in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 3 Jul 2006, 06:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR