Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Join Date
    Jul 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Gift Certificate and Coupon Issue

    PayPal IPN

  2. #12
    Join Date
    Jul 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Gift Certificate and Coupon Issue

    Seems it will work if you have shoppers that use multiple windows to shop so they don't have to flip back and forth looking for something....

    If you open your browser and log into the store and then open another browser window. Add you contents to one cart, plus the coupon and check out and then do the same with the other, it will work.

    This was discovered by a friend who had it happen to her over 2 years ago. I just tested it and it worked for me.

    Not sure if there is a way to fix that though. LOL

  3. #13
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Gift Certificate and Coupon Issue

    Just a hunch ...

    Try making this edit:

    /includes/classes/order_total.php
    at line 196 you have:
    Code:
      // Called in checkout process to clear session variables created by each credit class module.
      //
      function clear_posts() {
        global $_POST;
        if (MODULE_ORDER_TOTAL_INSTALLED) {
          reset($this->modules);
          while (list(, $value) = each($this->modules)) {
            $class = substr($value, 0, strrpos($value, '.'));
            if ( $GLOBALS[$class]->credit_class ) {
              $_SESSION[$post_var] = 'c_' . $GLOBALS[$class]->code;
            }
          }
        }
      }
    Replace that one line which says:
    Code:
              $_SESSION[$post_var] = 'c_' . $GLOBALS[$class]->code;
    with this instead:
    Code:
              $GLOBALS[$class]->clear_posts();
    .

    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.

  4. #14
    Join Date
    Jul 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Gift Certificate and Coupon Issue

    Thanks so much!! Really appreciate your help with this! :)

  5. #15
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Gift Certificate and Coupon Issue

    Are you saying that making that change has fixed the problem ?
    (Just wanna be sure I'm understanding your response correctly)
    .

    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.

  6. #16
    Join Date
    Jul 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Gift Certificate and Coupon Issue

    Yes, it seems to have fixed the problem. I have tested it and it would not allow me to use the coupon again.

    Many thanks!!

  7. #17
    Join Date
    Feb 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: Gift Certificate and Coupon Issue

    OK, I made that line change, and while it does keep me from using the same code again, it won't let the order go through. I am getting the following error:

    Fatal error: Call to undefined function: clear_posts() in /home/molli102/public_html/ZenCart/includes/classes/order_total.php on line 205

  8. #18
    Join Date
    Jul 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: Gift Certificate and Coupon Issue

    What version are you running? I have 1.3.6. I didn't do the upgrade. Perhaps that makes a difference??? I tried running mine through and it takes me to paypal no problem.

  9. #19
    Join Date
    Feb 2006
    Posts
    46
    Plugin Contributions
    0

    Default Re: Gift Certificate and Coupon Issue

    OK, it doesn't do it if there is still a balance after the coupon is applied. I only get this error if the gift certificate covers the cost of the purchase and there is a $0 balance. It's like it doesn't know where to go from there.

    The order does actully go through. I got the order confirmation email, and the order and download links show up under my account. That would be super confusing for customers!

  10. #20
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Gift Certificate and Coupon Issue

    Quote Originally Posted by jordymacsmom View Post
    Fatal error: Call to undefined function: clear_posts() in /home/molli102/public_html/ZenCart/includes/classes/order_total.php on line 205
    What order-total modules do you have enabled in Admin->Modules ?
    .

    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.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v151 Use of gift certificate and coupon together - 1 needs to be disabled.
    By PetleyJ in forum Basic Configuration
    Replies: 3
    Last Post: 7 Apr 2013, 03:45 PM
  2. Gift certificate and discount coupon time outs
    By polyestercowboy in forum General Questions
    Replies: 0
    Last Post: 1 Mar 2011, 05:28 PM
  3. Removing Gift Certificate and Discount Coupon links
    By IA7X ShadowsI in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Oct 2010, 11:23 PM
  4. coupon/gift certificate issues
    By DarkAngel in forum Managing Customers and Orders
    Replies: 5
    Last Post: 25 Aug 2009, 05:44 AM
  5. coupon for free gift with gift certificate purchase?
    By tkepler in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 Jul 2008, 03:31 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