Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,043
    Plugin Contributions
    5

    Default [support thread] - "edit orders -> detail record copy"

    plugin for a plugin!


    if you have additional fields added to your orders_products table, and have been frustrated by those fields not being there when adjusting quantities via the Edit Orders plugin, be frustrated no longer!



    this is the support thread for a new observer to properly copy all added fields when using edit orders.

    this plugin can be downloaded here:

    https://www.zen-cart.com/downloads.php?do=file&id=2292
    help with WCAG is now here! PM if you want some help with this. (or any ZC issue).
    if you feel so inclined, feel free to send some cake....

  2. #2
    Join Date
    Mar 2006
    Location
    Auckland, New Zealand
    Posts
    173
    Plugin Contributions
    0

    Default Re: [support thread] - "edit orders -> detail record copy"

    Is this based on the assumption that the "Edit orders" plugin is installed (and working) for 1.5.7?

    Sorry, not quite clear in your description :-)
    Elemi

    The Art of Bespoke Aromatherapy
    www.AmorAromatherapy.co.nz

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,996
    Plugin Contributions
    109

    Default Re: [support thread] - "edit orders -> detail record copy"

    Only users of the Edit Orders plugin who also have added fields to the orders_products table need this plugin.
    If that's not you, you don't need it.
    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.

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,043
    Plugin Contributions
    5

    Default Re: [support thread] - "edit orders -> detail record copy"

    Quote Originally Posted by Elemi View Post
    Is this based on the assumption that the "Edit orders" plugin is installed (and working) for 1.5.7?

    Sorry, not quite clear in your description :-)
    what swguy said.

    there are any number of us who have modified the orders products table by adding additional fields. if u use edit orders to letís say adjust the customer quantity from 3 to 4, edit orders will delete the original record and create a new record. this has caused me tremendous frustration with clients over the years and a lot of work. apparently other people have noticed and complained about it.

    with the addition of notifiers to the edit orders plugin, i created a little observer that now preserves those additional fields from the deleted record, and copies them to the new record.

    unfortunately the notifier does not provide the exact fields it uses for the new record, so if those fields change, this observer will need to change. itís a minor point but worth noting.

    in the interim i think this is a little slick solution to address what has been a very frustrating problem.

    thanks to @lat9 for the maintenance of the edit orders plugin and for the addition of the observer events.
    help with WCAG is now here! PM if you want some help with this. (or any ZC issue).
    if you feel so inclined, feel free to send some cake....

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    10,641
    Plugin Contributions
    78

    Default Re: [support thread] - "edit orders -> detail record copy"

    The updated EO notification will be available in EO v4.5.5 (recently submitted) and later: https://www.zen-cart.com/downloads.php?do=file&id=1513

  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,043
    Plugin Contributions
    5

    Default Re: [support thread] - "edit orders -> detail record copy"

    Quote Originally Posted by lat9 View Post
    The updated EO notification will be available in EO v4.5.5 (recently submitted) and later: https://www.zen-cart.com/downloads.php?do=file&id=1513
    help with WCAG is now here! PM if you want some help with this. (or any ZC issue).
    if you feel so inclined, feel free to send some cake....

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,996
    Plugin Contributions
    109

    Default Re: [support thread] - "edit orders -> detail record copy"

    Would you please clarify the installation instructions? It says,

    > Unfortunately, the observers used in edit orders, do NOT give the exact fields updated. So those fields needed to be hard coded in this file. When edit orders changes this file may need to change.

    Does this mean I need to add any new fields I have added in the orders_products table to the $updatedFields list?
    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.

  8. #8
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,043
    Plugin Contributions
    5

    Default Re: [support thread] - "edit orders -> detail record copy"

    Quote Originally Posted by swguy View Post
    Would you please clarify the installation instructions? It says,

    > Unfortunately, the observers used in edit orders, do NOT give the exact fields updated. So those fields needed to be hard coded in this file. When edit orders changes this file may need to change.

    Does this mean I need to add any new fields I have added in the orders_products table to the $updatedFields list?
    @swguy, if you are running v4.5.5 of edit orders, there is no need to add any new fields...

    as long as your notifier in YOUR_ADMIN/includes/functions/extra_functions/edit_orders_functions.php looks like:

    PHP Code:
    $zco_notifier->notify('EDIT_ORDERS_ADD_PRODUCT', array('order_id' => (int)$order_id'orders_products_id' => $order_products_id'product' => $product'sql_data_array' => $op_sql_data_array)); 
    you are good to go with no need to maintain the $updatedFields array.

    best.
    help with WCAG is now here! PM if you want some help with this. (or any ZC issue).
    if you feel so inclined, feel free to send some cake....

  9. #9
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,996
    Plugin Contributions
    109

    Default Re: [support thread] - "edit orders -> detail record copy"

    OK - I didn't realize 4.5.5 was the cutoff - I thought all that was needed was the EDIT_ORDERS_ADD_PRODUCT notifier. I will update EO; thanks for confirming.
    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.

  10. #10
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,996
    Plugin Contributions
    109

    Default Re: [support thread] - "edit orders -> detail record copy"

    Does this only work in 1.5.7? In 1.5.6, the class constructor doesn't seem to fire, and the compatibility information for the first version says 1.5.6.
    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.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v150 Edit Orders v4.0 Support Thread
    By DivaVocals in forum Addon Admin Tools
    Replies: 1723
    Last Post: 24 Oct 2021, 04:26 PM
  2. v150 Super Orders v4.0 Support Thread (for ZC v1.5.x)
    By DivaVocals in forum Addon Admin Tools
    Replies: 760
    Last Post: 15 Oct 2021, 09:29 AM
  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