Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    4,510
    Plugin Contributions
    127

    Default Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    If you are using Super Orders or Edit Orders and an order total discount other than Group Discounts (e.g. Better Together, Quantity Discounts, Military Discounts, Newsletter Discounts, Combination Discounts, Big Spender, Big Chooser, Frequency Discounts, or any other contribution written by someone other than me), the process of editing an order using either of those mods will flip the sign on a discount causing it to appear to be a surcharge.

    The fix is straightforward; both admin/edit_orders.php and admin/super_edit.php simply list discount classes ("ot_coupon", etc.) You simply have to add any additional classes you are using to if statements in those two files which enumerate through the order total discount classes. Searching for "ot_coupon" will show you what to change.

    The full fix and more notes are on my blog at http://thecartblog.com/2009/12/21/ze...counting-mods/

    Scott
    Scott C Wilson, That Software Guy, Plugin Moderator
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  2. #2
    Join Date
    Jul 2005
    Location
    UK and Ireland
    Posts
    251
    Plugin Contributions
    1

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    Thanks Scott -- that post was much appreciated as we were struggling with that.

    Regards

    Jamie
    The JSWeb Team
    ..the only hosting provider that specialises totally in Zen Cart to help you.
    JSWeb | UK / Ireland ZenCart Design and Hosting Specialists

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    4,510
    Plugin Contributions
    127

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    LOL donations gratefully accepted.
    Scott C Wilson, That Software Guy, Plugin Moderator
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  4. #4
    Join Date
    May 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    I am having this issue with the Edit Order add on but I am not using additional group discounting software. Please help.

    I get the same exact result you described on your webpage.

    My $ot_class code looks like this.

    $ot_class == "ot_coupon" || $ot_class == "ot_gv"

    Yet it still changes the - to a + upon editing an order.

    Please help.

    Matt

  5. #5
    Join Date
    May 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    I also tried adding group discounts to the ot_coupon class line like this.

    $ot_class == "ot_coupon" || $ot_class == "ot_gv" || $ot_class == "ot_group_pricing"

    But no luck.

    If I manually place a - sign in the order and click update then the - sign will remain. All new orders when I go to edit them lack the - sign on group discounts.

  6. #6
    Join Date
    May 2010
    Posts
    3
    Plugin Contributions
    0

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    Looks like I got it fixed by adding the ot_group_discount to edit_orders.php.

    I was looking for it to display a "-" sign and not paying attention to the actual total.

    Thanks!

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    7,057
    Plugin Contributions
    27

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    Just wanted to note that this fix will be incorporated into the upcoming Super Orders release.. Thanks Scott for the info!!

    Quote Originally Posted by swguy View Post
    If you are using Super Orders or Edit Orders and an order total discount other than Group Discounts (e.g. Better Together, Quantity Discounts, Military Discounts, Newsletter Discounts, Combination Discounts, Big Spender, Big Chooser, Frequency Discounts, or any other contribution written by someone other than me), the process of editing an order using either of those mods will flip the sign on a discount causing it to appear to be a surcharge.

    The fix is straightforward; both admin/edit_orders.php and admin/super_edit.php simply list discount classes ("ot_coupon", etc.) You simply have to add any additional classes you are using to if statements in those two files which enumerate through the order total discount classes. Searching for "ot_coupon" will show you what to change.

    The full fix and more notes are on my blog at http://thecartblog.com/2009/12/21/ze...counting-mods/

    Scott
    My Site
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #8
    Join Date
    Jan 2004
    Posts
    58,460
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    Wouldn't the *better* "fix" be to fix those other discounting mods to properly identify themselves as such, and produce correct output, and thus not trigger the problem?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    7,057
    Plugin Contributions
    27

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    Quote Originally Posted by DrByte View Post
    Wouldn't the *better* "fix" be to fix those other discounting mods to properly identify themselves as such, and produce correct output, and thus not trigger the problem?
    You might be right.. Though I'm not sure how to do this.. If I understand you correctly is this something that has to be corrected in the discounting modules themselves??
    My Site
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #10
    Join Date
    Jan 2004
    Posts
    58,460
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Interoperability betwen Super Orders/Edit Orders and non-native discounting mods

    Yes .
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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 1 of 2 12 LastLast

Similar Threads

  1. Super Orders 2.0 postage marks with Super Orders
    By sketchhgal in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Mar 2009, 03:05 PM
  2. Compare Super Orders and Edit Orders
    By GTHENRY in forum Managing Customers and Orders
    Replies: 3
    Last Post: 13 Feb 2009, 08:24 PM
  3. Edit Orders and Super Orders, anyone doing that?
    By swamyg1 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 Feb 2009, 06:03 AM
  4. Super Orders vs Edit Orders
    By nigelt74 in forum General Questions
    Replies: 3
    Last Post: 11 Jul 2007, 03:45 PM
  5. Does changing default currency affect previous orders? coupons? super orders?
    By apemusic in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 21 Apr 2007, 01:53 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
  •