Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    4
    Plugin Contributions
    0

    Default Automatic coupons for specific items

    Is it possible to create a one-time use coupon that is automatically generated and emailed to a customer when they purchase a specific item?

    We want to offer our customers a promotion that if they purchase item X, they get an automatic discount coupon code of Z.

    Is there a way to set that up?

    If not, is there an API that I can use to automate this externally?

    Cheers!

    Jon

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

    Default Re: Automatic coupons for specific items

    Better Together does something similar. Take a look at it.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Apr 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Automatic coupons for specific items

    Thanks for the info, but that's not exactly what I'm looking for.

    What I am looking for is for the Zen Cart to generate a one-time coupon code after a successful checkout if a specific product is purchased.

  4. #4
    Join Date
    Apr 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Automatic coupons for specific items

    BTW - I ended up creating a special program to accomplish this. It is an external program that interacts with the database and the admin GUI. It has a table of product ID codes and coupon characteristics that it uses to generate coupon codes. I added columns to the zen cart database that allow me to flag when an order has had it's automatic coupons processed. The code works like this:

    * Cron triggered nightly
    * Queries it's own database table for a list of products that receive automatic coupons and the automatic coupon characteristics. Makes it simple to add new products to the system.
    * Searches the zen cart DB for orders that have products in the above mentioned list that have not received automatic coupons yet
    * Uses curl to login to the admin gui and create coupons the same way an admin would do it manually using a browser
    * Updates the zen cart DB to indicate that the auto coupons have been generated

    It is not a zen cart module, but rather an outside application that must run nightly (or on whatever schedule you like).

    I'm not interested in releasing the code to the public, but if anyone needs help with something similar, let me know. I developed it for a specific client that wanted to offer a promotion where if a customer purchased certain, specific items, they would automatically receive a coupon for their next order. Very similar to buying an item in the store, with a coupon inside for your next purchase.

 

 

Similar Threads

  1. Coupons for specific product
    By Alyzibeth in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 29 Nov 2010, 10:16 PM
  2. Automatic Free Shipping for certain items/categories?
    By jgdovin in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 8 Aug 2009, 06:44 AM
  3. Automatic coupons for valid account creation
    By alimtlai in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 31 Jan 2009, 09:12 PM
  4. Coupons for specific products
    By Steel Rat in forum Setting Up Specials and SaleMaker
    Replies: 9
    Last Post: 24 Nov 2007, 06:47 PM
  5. Coupons specific to items?
    By LegendOfTheEpic in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 3 Dec 2006, 04:42 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