Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    May 2007
    Posts
    56
    Plugin Contributions
    0

    Default coupon code that checks for a product in order

    I have spent hours looking around the forums for info to answer my client's questions and this is the only thing I can't find: Client wants to know if there's a way to have a promo or coupon code that will give the customer a discount on the order IF they purchase a specific item. That sounds like it's more trouble than it may be worth, but I thought I'd see what others are doing. I see I can use the Better Together mod to achieve something similar. Is that my only option?

    Thanks!

  2. #2
    Join Date
    Mar 2006
    Location
    Australia
    Posts
    289
    Plugin Contributions
    3

    Default Re: coupon code that checks for a product in order

    Hi there
    We not simply put that item on special? Makes it mush easier for the customer since they don't need coupon etc.

  3. #3
    Join Date
    May 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: coupon code that checks for a product in order

    Quote Originally Posted by wolfsz View Post
    Hi there
    We not simply put that item on special? Makes it mush easier for the customer since they don't need coupon etc.
    That's a good question, Wolfsz. It's an online scrapbooking store and I think this is the kind of promotion that a lot of them do on a regular basis. I'll see if anyone else has another suggestion, but I was thinking that my client will just have to check the orders before processing and fulfilling them if they want to do it this way. They can say "add X to your cart, use promo code abc and get a X% discount off your entire order" and then confirm the shopper did so.

    thanks for your input!

  4. #4
    Join Date
    May 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: coupon code that checks for a product in order

    Actually, you can.

    Goto:
    Gift Certificates/Coupons
    Coupons Admin
    Select you coupon code (or if you don't have one, create one)
    After it returns to the admin page, select restrictions
    If it's a specific product, select the category name under product restrictions.
    Select the product name from the dropdown.
    Select allow from the dropdown.
    Select add then back.

    This should now discount that specific item when the coupon code is entered.

    Tony

  5. #5
    Join Date
    May 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: coupon code that checks for a product in order

    Quote Originally Posted by ERM View Post

    This should now discount that specific item when the coupon code is entered.

    Tony
    Thanks, Tony, but what I really need is a discount for the entire order when that product is added to the cart and the coupon code is added.

  6. #6
    Join Date
    May 2007
    Posts
    14
    Plugin Contributions
    0

    Default Re: coupon code that checks for a product in order

    So you're discounting the entire order if customer orders product x and no discount off the entire order if they don't order product x?

  7. #7
    Join Date
    May 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: coupon code that checks for a product in order

    Quote Originally Posted by ERM View Post
    So you're discounting the entire order if customer orders product x and no discount off the entire order if they don't order product x?
    Yes, that's exactly the plan!

  8. #8
    Join Date
    Mar 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: coupon code that checks for a product in order

    Hi Traypup,

    I'm looking for this feature as well. Had any luck?

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

    Default Re: coupon code that checks for a product in order

    The restrictions, at this time, are for the specific products that are restricted and not for the whole order ...

    You can customize the code for this, but this is not the easiest peice section of code to work on ...

    NOTE: We will be looking at making the Discount Coupons more robust in a future release ...
    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!

  10. #10
    Join Date
    Mar 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: coupon code that checks for a product in order

    I don't know if this is exactly what you wanted but I got around the problem by hacking the template and using JavaScript to enter a coupon code when a certain item was detected in the cart.

    in templates\tpl_checkout_payment_default.php after the code block that begins:
    $selection = $order_total_modules->credit_selection(); the next line starts an if statement and after the closing brakets of that add this code:

    PHP Code:
    <?php
        
    }

    $products $_SESSION['cart']->get_products();
      for (
    $i=0$n=sizeof($products); $i<$n$i++) {
                  if (
    $products[$i]['id'] == 19) { // mine was product 19 but this can be set to the ID of the product you want people to buy inorder to get savings
                    
    ?>
                    <font color=red>Thank you for your order of specific product!  Your discount will be reflected in the next step.</font>
                     <script language="javascript">
                      document.forms[1].dc_redeem_code.value = 'COUPON_CODE';
                     </script>
                    <?php
                    
    break;
                  }
         }    
         
    ?>
    Not very elegant but it's working on my test server.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Discount code / coupon for a customers first order
    By ray-the-otter in forum General Questions
    Replies: 4
    Last Post: 24 May 2013, 03:55 PM
  2. v139h coupon/voucher code that adds an item to cart
    By kitcorsa in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 12 Mar 2013, 12:55 PM
  3. Email coupon code based on order history
    By Crunch in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 6 Nov 2009, 05:04 PM
  4. Discount Coupon/Code for One Specific Product
    By thegoodlifestore in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 26 Oct 2009, 01:00 PM
  5. 1.1.4d - secret 'coupon' code for 2-for-1 special on one product?
    By Brian1234 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 4 Jun 2007, 05:58 AM

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