Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 47
  1. #31
    Join Date
    Jul 2012
    Posts
    346
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    Thank you!

    I logged back and try to order and again coupon code is applying to other brands products. I checked coupon restriction and top is denied. Any idea what else can be missing?

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

    Default Re: Coupon Restriction by Manufacturer

    What are the specific settings on the Restrictions for the Discount Coupon?

    NOTE: for something to tell users what is allowed on Minimum Order, I grabbed a piece of code I am building into Zen Cart v16 that you can try ...

    Edit the file:
    /includes/modules/order_total/ot_coupon.php

    and add the code in RED and see if this is somewhat helpful:
    Code:
    // left for total order amount vs qualified order amount just switch the commented lines
    //        if ($order_total['totalFull'] < $coupon_result->fields['coupon_minimum_order']) {
            if (strval($order_total['orderTotal']) < $coupon_result->fields['coupon_minimum_order']) {
            $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');
              $this->clear_posts();
              zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL',true, false));
            }
    This should add a link in the message for not enough spent ... see if that at least is more helpful than just the message about the amount ...
    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. #33
    Join Date
    Jul 2012
    Posts
    346
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    Quote Originally Posted by Ajeh View Post
    What are the specific settings on the Restrictions for the Discount Coupon?

    NOTE: for something to tell users what is allowed on Minimum Order, I grabbed a piece of code I am building into Zen Cart v16 that you can try ...

    Edit the file:
    /includes/modules/order_total/ot_coupon.php

    and add the code in RED and see if this is somewhat helpful:
    Code:
    // left for total order amount vs qualified order amount just switch the commented lines
    //        if ($order_total['totalFull'] < $coupon_result->fields['coupon_minimum_order']) {
            if (strval($order_total['orderTotal']) < $coupon_result->fields['coupon_minimum_order']) {
            $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');
              $this->clear_posts();
              zen_redirect(zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL',true, false));
            }
    This should add a link in the message for not enough spent ... see if that at least is more helpful than just the message about the amount ...
    Code did not make any changes.

    I think coupon is working now. May be browser cookies/cache problem earlier. I will test it again later on as have a conference call right now and will keep you posted.

    Thank you!

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

    Default Re: Coupon Restriction by Manufacturer

    Look on the message ... does the Coupon code show at the end of it? If so, click on that ...
    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. #35
    Join Date
    Jul 2012
    Posts
    346
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    Quote Originally Posted by Ajeh View Post
    Look on the message ... does the Coupon code show at the end of it? If so, click on that ...
    It does not.

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

    Default Re: Coupon Restriction by Manufacturer

    Did you also add the code at the end of this line on the message?
    Code:
              $messageStack->add_session('redemptions', sprintf(TEXT_INVALID_REDEEM_COUPON_MINIMUM, $currencies->format($coupon_result->fields['coupon_minimum_order'])) . ' ' . $dc_link,'caution');
    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. #37
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    Quote Originally Posted by Ajeh View Post
    Not sure if you still need this to add Restrictions based on Manufacturer, but I built this into a future release of Zen Cart and finally had a chance to convert it to work with Zen Cart v151 ...

    You might test this and see if it works for you ...

    1. Is it compatible with the 1.5.0 version ?
    2. Is it possible to restrict the using of coupon to at least 2 products in cart for the same manufacturer ?

    Thank you very much, your help is really appreciated.

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

    Default Re: Coupon Restriction by Manufacturer

    This should work for v1.5 ...

    On restricting for two Products for a manufacturer, you would probably need to build something in for that, as there is nothing in there that checks for that, at this time ...

    Have you any more details other than you want 2 Products of the same manufacturer?

    This add-on allows you to add the Products of a given manufacturer, but it is adding the Products by products_id and there is no reference to the Manufacturer once the coupon is made ...
    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!

  9. #39
    Join Date
    Aug 2009
    Posts
    368
    Plugin Contributions
    0

    Default Re: Coupon Restriction by Manufacturer

    I want to create a "Shop with friends" marketing campaign by offering a discount ( coupon ) for those who buy at least 2 products from a specified manufacturer. The coupon must apply only for more than 1 product for the same manufacturer in cart.
    Are you telling that product_id for which coupon apply must be added by hand in restriction section ?

    Could this zip do what I need ?

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

    Default Re: Coupon Restriction by Manufacturer

    What this does when adding Coupon Restrictions is offer a selection for adding All the Products of a Manufacturer which you can then, if needed, change by deleting or setting to deny ...

    What it does not do is count how many Products are in the cart for the manufacturer ... you would need to further customize the code in the ot_coupon.php or something to further control the validation on the specific coupon ...
    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!

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

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