Page 112 of 188 FirstFirst ... 1262102110111112113114122162 ... LastLast
Results 1,111 to 1,120 of 1873
  1. #1111
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,290
    Plugin Contributions
    125

    Default Re: Edit Orders v4.0 Support Thread

    This is a bug that might be too difficult to fix; I don't know, but I thought I'd report it anyhow so that at least people were aware of it.

    If you have added fields to the orders_products table (as, for example, the dropship module does), edit orders will lose those fields. On an edit - even an edit as small as changing the order status - edit orders deletes and re-adds the orders_products table records. Since it is unaware that these additional fields exist, they are added back with their default values.
    That Software Guy. My Store: Zen Cart Support
    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. #1112
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by swguy View Post
    This is a bug that might be too difficult to fix; I don't know, but I thought I'd report it anyhow so that at least people were aware of it.

    If you have added fields to the orders_products table (as, for example, the dropship module does), edit orders will lose those fields. On an edit - even an edit as small as changing the order status - edit orders deletes and re-adds the orders_products table records. Since it is unaware that these additional fields exist, they are added back with their default values.
    It's not a bug ... it's a feechur!

    Seriously, though, that's how the current versions of EO work. I've been working over the past couple of releases to migrate the separate extra_functions file into a class-based structure which, in turn, will lead to a new major version of EO that reuses any orders_products table entries, if possible.

  3. #1113
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,290
    Plugin Contributions
    125

    Default Re: Edit Orders v4.0 Support Thread

    Thanks Cindy. This is great news.
    That Software Guy. My Store: Zen Cart Support
    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. #1114
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    22
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    I'm using Zen Cart v1.5.1 and Edit Orders 4.1.4.

    I get the following error in my log files:

    PHP Warning: Invalid argument supplied for foreach() in my admin directory/includes/classes/mock_cart.php on line 151

    I searched this thread but was unable to find any information. I can't seem to pin down when it's actually ocurring.

    Just wondering if anyone has any tips for me to investigate. Thanks!

  5. #1115
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: Edit Orders v4.0 Support Thread

    Perhaps the order was missing products? That's the line where the class iterates over the products in the order.

  6. #1116
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    22
    Plugin Contributions
    0

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by lat9 View Post
    Perhaps the order was missing products? That's the line where the class iterates over the products in the order.
    Thanks I'll go back and ensure I have products in the cart as that is likely what happened. Really appreciate the speedy reply!

  7. #1117
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,290
    Plugin Contributions
    125

    Default Re: Edit Orders v4.0 Support Thread

    Suggestion on admin/includes/classes/editOrders.php

    instead of
    Code:
    $ot_tax_class = constant ($ot_tax_class_name);
    use

    Code:
            $ot_tax_class = null;
            if (defined($ot_tax_class_name)) {
               $ot_tax_class = constant ($ot_tax_class_name);
            }
    to prevent a PHP Warning in case the tax class doesn't exist.
    That Software Guy. My Store: Zen Cart Support
    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.

  8. #1118
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,347
    Plugin Contributions
    94

    Default Re: Edit Orders v4.0 Support Thread

    Quote Originally Posted by swguy View Post
    Suggestion on admin/includes/classes/editOrders.php

    instead of
    Code:
    $ot_tax_class = constant ($ot_tax_class_name);
    use

    Code:
            $ot_tax_class = null;
            if (defined($ot_tax_class_name)) {
               $ot_tax_class = constant ($ot_tax_class_name);
            }
    to prevent a PHP Warning in case the tax class doesn't exist.
    Thanks @swguy; I've created an issue in the Edit Orders GitHub repository to track. Could you provide details regarding how to reproduce the error?

  9. #1119
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,290
    Plugin Contributions
    125

    Default Re: Edit Orders v4.0 Support Thread

    1) Install Better Together and add a discount.
    2) Run an order that gets this discount.
    3) Edit that order.
    That Software Guy. My Store: Zen Cart Support
    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. #1120
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,290
    Plugin Contributions
    125

    Default Re: Edit Orders v4.0 Support Thread

    Latest EO also has a bug which shows up editing an order which uses an order total module with recalculate taxes = Standard. You can dup with Group Pricing.

    Original Order:
    Sub-Total: $499.00
    Shipping: $0.00
    Group Discount: -$53.39
    Tax 7.0%: $31.44
    Total: $477.05

    After EO:
    Sub-Total: $499.00
    Shipping: $0.00
    Group Discount: -$53.04 (** error)
    Tax 7.0%: $31.44
    Total: $473.91 (** error)
    Last edited by swguy; 31 Aug 2017 at 01:07 PM.
    That Software Guy. My Store: Zen Cart Support
    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.

 

 

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