Page 120 of 188 FirstFirst ... 2070110118119120121122130170 ... LastLast
Results 1,191 to 1,200 of 1878
  1. #1191
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,408
    Plugin Contributions
    94

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by carlwhat View Post
    hey, i'm a little late to this party. and frankly i stay away from this necessary evil known as edit_orders; however i want to point something out that i saw here.

    in the post a few above, this code will NOT do what i think was intended:

    Code:
    if (basename($PHP_SELF) != FILENAME_EDIT_ORDERS) {
        return;
    }
    that code will ALWAYS return.

    i think what you want is:
    Code:
    if (basename($PHP_SELF, '.php') != FILENAME_EDIT_ORDERS) {
        return;
    }
    best.
    Not true; FILENAME_EDIT_ORDERS is defined as 'edit_orders'.

  2. #1192
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,849
    Plugin Contributions
    11

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by lat9 View Post
    Not true; FILENAME_EDIT_ORDERS is defined as 'edit_orders'.
    yes true. see:

    http://php.net/manual/en/function.basename.php

    try for yourself:

    test.php

    Code:
    $PHP_SELF = $_SERVER['PHP_SELF'];
    
    echo $PHP_SELF . '<----->';
    
    echo basename($PHP_SELF) . '<----->';
    
    echo basename($PHP_SELF, '.php') . '<---';
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #1193
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,408
    Plugin Contributions
    94

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by carlwhat View Post
    yes true. see:

    http://php.net/manual/en/function.basename.php

    try for yourself:

    test.php

    Code:
    $PHP_SELF = $_SERVER['PHP_SELF'];
    
    echo $PHP_SELF . '<----->';
    
    echo basename($PHP_SELF) . '<----->';
    
    echo basename($PHP_SELF, '.php') . '<---';
    My apologies, @carlwhat, you're quite right. I'll get that update pushed to EO's repository.

  4. #1194
    Join Date
    Jun 2012
    Posts
    452
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Providing EO with the minimum subtotal and total in the orders_total table appears to work well with my initial testing. I found a way to exclude ot_tax in the mix by removing ot_tax from the list of modules passed to order_totals in new_order.php, so no messing around with EO needed. But I wonder if the problem found by @carlwhat is the reason why merging the store-side get_zen_tax_locations with EO's version didn't work in my testing. I may try it again just to see what happens. But I'll be happy just the way it is (passing just ot_subtotal and ot_total in orders_total table to EO) if further testing works out well.

  5. #1195
    Join Date
    Jun 2012
    Posts
    452
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Further testing reveals a problem with the order total when subtotal, quantity discount, group discount, shipping, and tax ot_modules are exercised. Each line item is correct, but the total of each line item is too low. It's off by the tax on the sum of the discounts. Any suggestions would be appreciated.
    Thanks!

  6. #1196
    Join Date
    Jun 2012
    Posts
    452
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Further testing show the problem appears only when quantity discount is used. If quantity discount is not applicable, and Group discount alone is exercised, the total is correct. If there is no tax, the total is correct. The problem appears only when quantity discount and tax is involved. I should add that everything is correct on the store side. Each line item and the total of all are correct if the same order is entered in the store.
    Last edited by Dave224; 7 Feb 2018 at 03:29 AM.

  7. #1197
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,408
    Plugin Contributions
    94

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by Dave224 View Post
    Further testing show the problem appears only when quantity discount is used. If quantity discount is not applicable, and Group discount alone is exercised, the total is correct. If there is no tax, the total is correct. The problem appears only when quantity discount and tax is involved. I should add that everything is correct on the store side. Each line item and the total of all are correct if the same order is entered in the store.
    A detailed example, with numbers and discounts would help me further diagnose the issue.

  8. #1198
    Join Date
    Jun 2012
    Posts
    452
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    The following files are attached (the log file will be in the next post):
    1. debug_edit_orders_1222.txt (log file edited to change admin directory name and customer email address)
    2. Admin New Order Detail Page.jpg - screen shot of portion of orders details for order created with Admin New Order and Edit Orders with incorrect total
    3. Admin New Order after shipping update.jpg - screen shot of portion of edit orders screen after adding shipping charge and clicking update showing incorrect total
    4. Admin New Order after product add.jpg - screen shot of portion of edit orders screen after adding product with quantity discount
    5. Store order detail.jpg - screen shot of portion of store-side order confirmation page showing correct total

    Zen Cart v155e, Quantity Discount v1.12.1, Edit Orders v4.3.1, Admin New Orders v1.4.1 (edited to delete ot_tax.php from list of order totals modules). The product has $1.00 off each item for 5 or more. The product cost is $6.00, on sale for 50% off or $3.00 per item. Tax rate is 6% on the product and shipping.

    The subtotal, quantity discount, shipping, PA tax line items are all correct for the new order created in Admin New Order and Edit Orders, but the total line item is incorrect, being too low by an amount that equals the tax on the quantity discount ($0.30).

    Click image for larger version. 

Name:	Store order detail.jpg 
Views:	35 
Size:	8.1 KB 
ID:	17685
    Click image for larger version. 

Name:	Admin New Order after product add.jpg 
Views:	34 
Size:	11.9 KB 
ID:	17686
    Click image for larger version. 

Name:	Admin New Order after shipping update.jpg 
Views:	37 
Size:	11.7 KB 
ID:	17687
    Click image for larger version. 

Name:	Admin New Order Detail Page.jpg 
Views:	25 
Size:	8.9 KB 
ID:	17688

  9. #1199
    Join Date
    Jun 2012
    Posts
    452
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Here's the log file. See previous post.

    debug_edit_orders_1222.txt.zip

  10. #1200
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,408
    Plugin Contributions
    94

    Default Re: Edit Orders v4.0 Support Thread

    Have you tried creating a "normal" order with the same products, totals, etc?

 

 

Similar Threads

  1. v150 Super Orders v4.0 Support Thread for ZC v1.5.x
    By DivaVocals in forum Addon Admin Tools
    Replies: 804
    Last Post: 18 Apr 2025, 12:04 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

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