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

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    Bardhaman , Bharat
    Posts
    214
    Plugin Contributions
    1

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by carlwhat View Post
    why don't you post the code for the Processing and Handling Fee module? and specifically the process method.

    the problem is there.

    has nothing to do with edit orders, although everyone likes to blame edit orders (me included!!)
    Herehow to processing configuration looks

    Click image for larger version. 

Name:	2.jpg 
Views:	68 
Size:	29.0 KB 
ID:	19563

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Edit Orders v4.0 Support Thread

    ... and as @carlwhat requested, how about posting the code associated with that order-total's process method?

  3. #3
    Join Date
    May 2021
    Location
    New York
    Posts
    16
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    trying to find it

  4. #4
    Join Date
    May 2021
    Location
    New York
    Posts
    16
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Its way to many characters to post here, should I put it in a google doc?

  5. #5
    Join Date
    May 2021
    Location
    New York
    Posts
    16
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread


  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by Spanky View Post
    not the right code....

    looking for something around here:

    includes/modules/order_total/ot_processing_and_handling.php

    the name is probably different. but that's the file we need to see...
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  7. #7
    Join Date
    May 2021
    Location
    New York
    Posts
    16
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    One moment

  8. #8
    Join Date
    May 2021
    Location
    New York
    Posts
    16
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread


  9. #9
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Edit Orders v4.0 Support Thread

    my guess is extraorderfee
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  10. #10
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by carlwhat View Post
    my guess is extraorderfee
    Actually, it turns out that any taxable order-total exhibits this issue. See https://github.com/lat9/edit_orders/issues/198 for the upcoming changes for EO v4.6.0.

    Any site experiencing this issue can correct via edit to /YOUR_ADMIN/includes/functions/extra_functions/edit_order_functions.php, removing (or commenting out) the highlighted lines below:
    Code:
    function eo_update_database_order_totals($oID) 
    {
        global $db, $order, $eo;
    
        // Load required modules for order totals if enabled
        if (defined('MODULE_ORDER_TOTAL_INSTALLED') && !empty(MODULE_ORDER_TOTAL_INSTALLED)) {
            $eo->eoLog(PHP_EOL . 'eo_update_database_order_totals, taxes/totals on entry. ' . $eo->eoFormatTaxInfoForLog(true), 'tax');
            
            $eo->tax_updated = false;
            
            $order->info['shipping_tax'] = 0;
    
            // Load order totals.
            require_once DIR_FS_CATALOG . DIR_WS_CLASSES . 'order_total.php';
            $GLOBALS['order_total_modules'] = new order_total();
    
            // Load the shopping cart class into the session
            eo_shopping_cart();
            
            // -----
            // Cycle through the order-totals to see if any are currently taxed.  If so, remove the
            // tax from the current order in preparation for its recalculation.
            //
            foreach ($order->totals as $current_total) {
                if (in_array($current_total['class'], ['ot_subtotal', 'ot_tax', 'ot_shipping', 'ot_total', 'ot_misc_cost'])) {
                    continue;
                }
                $current_total_tax = $eo->eoGetOrderTotalTax($oID, $current_total['class']);
                $order->info['tax'] -= $current_total_tax;
            }
    
            // Reset the final total (include tax if not already tax-inc)
            // This code causes the order totals to be correctly calculated.
            if (DISPLAY_PRICE_WITH_TAX == 'true') {
                $order->info['total'] = $order->info['subtotal'] + $order->info['shipping_cost'];
            } else {
                $order->info['total'] = $order->info['subtotal'] + $order->info['tax'] + $order->info['shipping_cost'];
            }

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 Super Orders v4.0 Support Thread for ZC v1.5.x
    By DivaVocals in forum Addon Admin Tools
    Replies: 818
    Last Post: 9 Jul 2026, 10:12 AM
  2. v150 Orders Status History -- Updated By [Support Thread]
    By lat9 in forum Addon Admin Tools
    Replies: 34
    Last Post: 29 Jul 2019, 07:05 PM
  3. Edit Orders v3.0 for ZC 1.3.9 [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 656
    Last Post: 18 Apr 2016, 06:28 PM
  4. v139h Super Orders v3.0 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1018
    Last Post: 28 Apr 2014, 11:38 PM
  5. RE: Super Orders v3.0 Support Thread
    By Johnnyd in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Jun 2011, 09:28 AM

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