Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    4,478
    Plugin Contributions
    121

    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
    250
    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,478
    Plugin Contributions
    121

    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

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

    I still have the problem with the - sign after editing an order with a group discount. the discount turns into a surcharge.
    I have already changed the edit_orders.php, are there any other changes needed?

    if ($ot_class == "ot_coupon" || $ot_class == "ot_gv" || $ot_class == "ot_group_pricing")

    I use zencart 138a and edit_orders 2.3.

    thx.

    Bram

  8. #8
    Join Date
    Dec 2006
    Posts
    190
    Plugin Contributions
    0

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

    Thank you so much for these instructions! That took care of something that's been a thorn in my side for almost 2 years. Donation on its way!

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    4,478
    Plugin Contributions
    121

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

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

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    6,969
    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.

 

 
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
  •