Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    133
    Plugin Contributions
    1

    Default [Done v1.3.9] Duplicate coupon confirmation message

    When checking out, if you enter a valid coupon, tick the "terms and conditions" checkbox, but then click continue before entering the payment information, you will get a duplicate confirmation message (stack message) at the top of the window, as shown in the attached picture.

    Likewise, the same thing will happen if you enter the coupon code, enter all the payment information, but do not tick the checkbox for "terms and conditions."

    You can repeatedly test the example and variations by typing REMOVE in the coupon box after each attempt.

    I performed this example on the default "Classic Green" template to make sure it wasn't anything in my skin.

    ZenCart 1.3.8a.

    I tried looking into it a bit, and for some reason, it appears that the function collect_posts() includes/modules/order_total/ot_coupon.php is being called twice. If I comment out line 288:
    Code:
    $messageStack->add_session('checkout', TEXT_VALID_COUPON,'success');
    ...then I get 0 messages.

    This I traced to line 163 of includes/classes/order_total.php:
    Code:
              $GLOBALS[$class]->collect_posts();
    ...which also, when commented out, removes both messages. So it appears that this line is executing twice, when it should only execute once. But I'm afraid I don't know enough about how zencart is working here to actually fix it.
    Attached Images Attached Images  

  2. #2
    Join Date
    Aug 2009
    Posts
    50
    Plugin Contributions
    0

    Default Re: Duplicate coupon confirmation message


  3. #3
    Join Date
    Apr 2008
    Posts
    133
    Plugin Contributions
    1

    Default Re: Duplicate coupon confirmation message

    Thanks! I implemented it and it seems to work. :)

 

 

Similar Threads

  1. [Done v1.3.9e] 1.3.9d duplicate orders
    By justin2010 in forum Bug Reports
    Replies: 33
    Last Post: 29 Aug 2010, 07:31 AM
  2. [Done v1.3.9a] Double Discount Coupon message
    By andy1234 in forum Bug Reports
    Replies: 16
    Last Post: 16 Mar 2010, 03:45 PM
  3. Replies: 49
    Last Post: 23 Feb 2010, 08:52 PM
  4. Coupon welcome message showing discount when coupon is expired
    By tracyselena in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 26 Jan 2007, 06:32 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