Thread: Coupon apply?

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1. #11
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default Re: Coupon apply?

    I also have tried, also thought if i made the button read apply and then have it reload the page it would work but cannot seem to get it in the correct location

  2. #12
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    89
    Plugin Contributions
    0

    Default Re: Coupon apply?

    I'm looking for the same solution. Anyone found one yet?

  3. #13
    Join Date
    May 2008
    Location
    Thousand Oaks, CA
    Posts
    29
    Plugin Contributions
    0

    Default Re: Coupon apply?

    If you're able to use the Fast & Easy Checkout mod (which you can download from this site), the author has included an apply coupon button to that mod. If you can't use this mod because you have other mods active (such as Checkout Without Account), maybe it's possible to deconstruct the mod and add just that feature to your site...

    Unfortunately, I'm no PHP guru, and not of much service in this arena.

  4. #14
    Join Date
    May 2007
    Location
    Los Angeles
    Posts
    89
    Plugin Contributions
    0

    Default Re: Coupon apply?

    Quote Originally Posted by batterygenie View Post
    If you're able to use the Fast & Easy Checkout mod (which you can download from this site), the author has included an apply coupon button to that mod. If you can't use this mod because you have other mods active (such as Checkout Without Account), maybe it's possible to deconstruct the mod and add just that feature to your site...

    Unfortunately, I'm no PHP guru, and not of much service in this arena.
    Thanks for the help! First I'll try to find the mod you mentioned in action and then give it a shot.

  5. #15
    Join Date
    Sep 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Coupon apply?

    Hi,

    I've been having the same frustration and believe I've just cracked it. I am a zen cart newbie so may need some testing.
    The changes needed are quite simple and affect 2 files:

    1. tpl_checkout_payment
    a) Add a second FORM around the discount coupon entry box, similar to this:
    echo zen_draw_form('checkout_voucher', zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'), 'post' );

    b) Add a button inside this form to submit the form and apply the voucher.
    echo zen_image_submit(BUTTON_IMAGE_APPLY_VOUCHER, BUTTON_APPLY_VOUCHER_ALT);

    c) Move the start of the existing form so it starts after the end of the new form.
    echo zen_draw_form('checkout_payment', zen_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', ($flagOnSubmit ? 'onsubmit="return check_form();"' : ''));

    2. header_php.php (under /modules/pages/checkout_payment/)
    Comment or remove the following:
    // get coupon code
    if ($_SESSION['cc_id']) {
    $discount_coupon_query = "SELECT coupon_code
    FROM " . TABLE_COUPONS . "
    WHERE coupon_id = :couponID";

    $discount_coupon_query = $db->bindVars($discount_coupon_query, ':couponID', $_SESSION['cc_id'], 'integer');
    $discount_coupon = $db->Execute($discount_coupon_query);
    }


    Hope it helps - Habib

  6. #16
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: Coupon apply?

    Can you please post the entire contents of your tpl_checkout_payment.php file?

  7. #17
    Join Date
    Sep 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Coupon apply?

    Sure, please see complete file attached.

    Habib
    Attached Files Attached Files

  8. #18
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default Re: Coupon apply?

    Okay I will be trying this when i get home today.. Anyone else try this ? Work? Thanks gmail!

  9. #19
    Join Date
    Mar 2006
    Posts
    194
    Plugin Contributions
    0

    Default Re: Coupon apply?

    I am interested in this too. I would like for the customer to see that their discount has been applied before they have to enter their credit card information.

    Has anyone got this to work successfully? If so, would you mind sharing how you did it with us less-than-guru types?

    Thanks!
    TheWindCutter.com
    Professional Microphone Windscreens
    Got wind noise? We've got you covered.

  10. #20
    Join Date
    Feb 2008
    Posts
    569
    Plugin Contributions
    0

    Default Re: Coupon apply?

    Didn't work for me, wouldn't allow me to go to step 2 came up page not found

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v150 Apply coupon even when discount is 0.00
    By ShopVille in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 13 Feb 2014, 11:14 PM
  2. Apply coupon with minimum order
    By jeking in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 3 Sep 2011, 03:06 PM
  3. Coupon only to apply to single item
    By chadw in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 11
    Last Post: 6 Jul 2010, 05:52 PM
  4. coupon apply in checkout
    By ryanb4614 in forum General Questions
    Replies: 0
    Last Post: 28 Mar 2009, 07:44 PM
  5. Customer didn't apply coupon - can I apply it manually?
    By ArtsygalDotNet in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 7 Nov 2007, 09:49 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