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

    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
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Jul 2005
    Location
    UK and Ireland
    Posts
    258
    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

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

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

    LOL donations gratefully accepted.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  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
    199
    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
    9,623
    Plugin Contributions
    123

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

    Thank you!
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    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 - Zen Cart & WordPress integration specialist
    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. v151 Stock by Attributes +Edit Orders + Super Orders
    By RodG in forum Customization from the Admin
    Replies: 7
    Last Post: 9 May 2016, 02:26 PM
  2. v151 Admin install messages will not go away for Super Orders, Edit Orders plugins
    By rcrosier in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 15 Oct 2013, 06:10 PM
  3. Super Orders & Edit Orders
    By Bruce1952 in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 27 Oct 2010, 08:35 AM
  4. Compare Super Orders and Edit Orders
    By GTHENRY in forum Managing Customers and Orders
    Replies: 3
    Last Post: 13 Feb 2009, 08:24 PM
  5. 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

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