Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27
  1. #21
    Join Date
    Feb 2005
    Posts
    104
    Plugin Contributions
    0

    Default Re: discount coupon not working

    They have a coupon - it is given to them on a flyer or via a sponsors url....

    for example
    "http://www.monkeydesignhouse.com/shop/index.php?sponsor=abc123"

    Some of these coupons will mean they get their products free.

    The way it is currently means that when they enter their coupon they have to enter CC details or else the coupon will not be applied on step 3.

    I hope I am explaining myself properly.

    Thanks for your help.

    Marc

  2. #22
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: discount coupon not working

    I see what you mean by the redeem button not being there. I set up a test account with you. First of all you need to go to admin Modules, Order Total Modules and see if it is activated, if not it will not show up on the check out page.

  3. #23
    Join Date
    Feb 2005
    Posts
    104
    Plugin Contributions
    0

    Default Re: discount coupon not working

    Thanks for looking at this for me...

    I have coupons switched on....

    Discount Coupon

    This module is installed
    true

    Sort Order
    280

    Include Shipping
    false

    Include Tax
    true

    Re-calculate Tax
    Credit Note

    Tax Class
    --none--

    But still no redeem button - any other advice???

  4. #24
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: discount coupon not working

    There's a small javascript error causing you grief.
    /includes/modules/order_total/ot_coupon.php
    line 89:
    Change this:
    Code:
       'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-'.$this->code.'" onchange="submitFunction(0,0)"'),
    to this:
    Code:
       'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-'.$this->code.'" onkeyup="submitFunction(0,0)"'),
    Changing this will allow them to just type in the code and press Enter if they've done anything in the coupon-redemption field.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #25
    Join Date
    Feb 2005
    Posts
    104
    Plugin Contributions
    0

    Default Re: discount coupon not working

    Ok - great - your right DrByte - that does work (if they change something in the coupon box)

    However my coupon code is entered automatically.

    for example
    "http://www.monkeydesignhouse.com/shop/index.php?sponsor=abc123"

    this sets session sponsor and is pulled into the sign-up form and the coupon form.

    So ideally i need to add a 'PRESS HERE TO REDEEM YOUR COUPON CODE' button that doesn't argue with the payment selection further down.

    Any help will be appreciated - even its a private message with a quote to fix this.

    Marc

  6. #26
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: discount coupon not working

    Okay, change the line to this instead:
    Code:
       'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-' . $this->code . '" onkeyup="submitFunction(0,0)"') . zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT, ' onclick="checkCouponCode(this, \'dc_redeem_code\');"'),
    and add to /includes/modules/pages/checkout_payment/jscript_main.php, as shown:
    Code:
    function methodSelect(theMethod) {
      if (document.getElementById(theMethod)) {
        document.getElementById(theMethod).checked = 'checked';
      }
    }
    
    function checkCouponCode(theForm, theField) {
      if (document.theForm.theField) {
        if (document.theForm.theField.length || document.theForm.theField.value) {
          submitter = null;
          return true;
        }
      }
      return false;
    }
    
    //--></script>
    No need to prepare a quote ... just please share your thanks with a donation here: http://www.zen-cart.com/index.php?ma...es&pages_id=14
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #27
    Join Date
    Feb 2005
    Posts
    104
    Plugin Contributions
    0

    Default Re: discount coupon not working

    DrByte you are my most favourite person of the week. THANK YOU SO MUCH.

    I really appreciate your time and efforts - My whole system is all working.

    THANKS SOOOOOOO MUCH.

    Marc

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Discount Coupon Button Not Working
    By Inxie in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 5 Mar 2013, 09:58 PM
  2. v150 Discount Coupon Minimum Order not working
    By donscotti in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 21 Sep 2012, 07:00 PM
  3. Prodcut Specific Discount Coupon? - not working
    By solotripper in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 6 Dec 2010, 03:18 PM
  4. Discount coupon restrictions not working correctly 1.3.6
    By jeffmic in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 22 Jul 2010, 08:15 PM
  5. Discount Coupon Lookup not working?
    By gorie in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 28 Mar 2009, 06:50 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