Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2010
    Posts
    100
    Plugin Contributions
    0

    Default Redeeming coupon code from URL?

    Guess this should be simple but can't find it in google:
    Is there a way that customer can redeem a coupon by simply coming to my site via a URL and I put the coupon code in the URL?
    Like: www.mysite.com?coupon=ABCDEFG
    Then the ABCDEFG will appear in the checkout page.

    Thanks.

  2. #2

    Default Re: Redeeming coupon code from URL?

    Looking for exact same thing!

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

    Default Re: Redeeming coupon code from URL?

    If you send yourself a Discount Coupon from your email, you will see how the URL is written for this to work ...
    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!

  4. #4

    Default Re: Redeeming coupon code from URL?

    Thanks a lot, will try this!

  5. #5

    Default Re: Redeeming coupon code from URL?

    OK, tryed it...

    We're pleased to offer you a Store Coupon
    You can redeem this coupon during checkout. Just enter the code in the box provided, and click on the redeem button.
    The coupon code is Дарение
    The coupon is valid between 02.02.2011 and 02.02.2012
    Don't lose the coupon code, make sure to keep the code safe so you can benefit from this special offer.
    Visit us at http://www.pet-paw.com/

    This is the text in the email that i got. I do not see URL with coupon code in it...
    Any suggestion where i am wrong?
    Thanks

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

    Default Re: Redeeming coupon code from URL?

    Well ... actually I goofed ...

    I was thinking of Gift Certificates not Discount Coupons ...

    Discount Coupons are redeemed on the checkout_payment page ...

    There isn't, at this time, a way to redeem Discount Coupons from another location ...

    You can do a lookup for a Discount Coupon to see if it is valid and its restrictions ...

    The biggest problem is that a Discount Coupon requires valid products in the shopping cart, before it can be redeemed ...

    Then, once redeemed, if the content of the shopping cart changes and there are no longer valid products in the cart then the Discount Coupon is removed ...
    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!

  7. #7

    Default Re: Redeeming coupon code from URL?

    Humm, im a bit confused already...

    There is an option Customers Referral Status.
    As i understand, this referral thing works with coupon code.
    When new costumer register on the page there is a field where this coupon can be set. So we know this costumer is referred by someone.
    The deal is that the easyest way is to place this code in the url. So when someone join this field will be already filled instead of manually typing it.

    Now there is an option to add this manually, but from advertise point of view the person who sends new costumers to my shop will not be sure that they will be referred by him, because they simply can be too lazy to add this code in the field.

    Hope that i wrote this understandable... huh

    Thanks

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

    Default Re: Redeeming coupon code from URL?

    This would all have to be customize ...

    Currently, the Referral Code, even if used as a Discount Coupon still would need to be added during the Checkout on the checkout_payment ...

    So you would need a link in an email to take the customer to the Login ...

    That link would need to include the Discount Coupon code that could then be used for the referral code to pre populate the field ...

    You could take it a step further that on the successful creation of an account that the Referral code is used to set the Discount Coupon ... but if there are any restrictions on the Discount Coupon it will fail as there is nothing in the shopping cart to validate the Discount Coupon ...

    The other way the Referral can be done is to use the first Discount Coupon that the customer uses in the checkout ... this would then only need one entry of the Discount Coupon, providing the Shopping Cart Products qualify for the Discount Coupon ...

    Another way to do all of this is to build in a check for the URL in the email where there is a code passed and that code is tested for being a valid Discount Coupon code ...

    If valid, then per-populate the Referral Code on the create account and set that as the current Discount Coupon coupon_id on the session variable:
    $_SESSION['cc_id']

    then when the customer gets to the Checkout and the checkout_payment if the Discount Coupon is not valid for the Order it would be removed ...

    This would take quite a bit of customization but it could be done ...

    Granted, this would only work if the customer immediately creates an account, unless you take it a step further and try to set the
    $_SESSION['cc_id']

    from the referral code on the URL and it stays active during the session and the customer would eventually create an account and use that ...

    However, if the customer's session times out, then the:
    $_SESSION['cc_id']

    would be lost and the customer would need to manually enter the Discount Coupon code during the create account and/or during the checkout_payment ...
    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!

  9. #9

    Default Re: Redeeming coupon code from URL?

    Thank you for your answer and time!
    It sounds to complicated for me.
    My idea was to know if there is something already build in...
    will figure out his one in the future:-)
    Thanks again

  10. #10

    Default Re: Redeeming coupon code from URL?

    I added this (early on in me execution line):

    $sopDiscountCode = $_GET["sopCode"];
    //sopCode is what is in my url ***.php?sopCode=balance2011

    if (isset($_GET["sopCode"]))
    {
    if ($_GET["sopCode"]=='balance2011')
    {$_SESSION['sopdcode']=1; //1 is the code from the admin consol for that string
    $_SESSION['sopddesc']="*** 20% off Active<br />Care of Tom Turner"; //this is what shows on the website}
    if ($_GET["sopCode"]=='relief2011')
    {$_SESSION['sopdcode']=3;
    $_SESSION['sopddesc']="*** 20% off Active<br />care of Tom Slusser";}
    }

    if (isset($_SESSION['sopdcode']))
    {$sopDiscountCode= $_SESSION['sopdcode'];}

    //I then place at the top of: templates/[myTemplate]/templates/checkout_shipping_default.php:

    $_SESSION['cc_id']=$sopDiscountCode;

    //Which seems to do the trick, hack as it may be..

    //We are doing all this for QR Code discounts ##

    //hope this helps
    Last edited by noKnots; 2 Dec 2011 at 12:02 AM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Redeeming coupon code on shopping cart page!
    By zfw88788301 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 8 Feb 2011, 05:23 PM
  2. Embedding coupon code in URL?
    By thewolf in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 13 Jun 2008, 09:58 PM
  3. Coupon code URL
    By HardNutrition in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 8 May 2008, 12:11 PM
  4. Coupon Code in URL
    By kevinhankens in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 20
    Last Post: 6 Oct 2007, 07:22 PM

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