Results 1 to 10 of 544

Hybrid View

  1. #1
    Join Date
    Sep 2017
    Location
    Rockwood, TN
    Posts
    10
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    Sorry, I thought of that just now. They are the plain text emails. A lot of our customers are schools and html emails don't go through some of the systems well.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by plantman View Post
    Sorry, I thought of that just now. They are the plain text emails. A lot of our customers are schools and html emails don't go through some of the systems well.
    Your includes/classes/orders.php file should have a notifier at or around line 1018:
    Code:
    $this->notify('NOTIFY_ORDER_EMAIL_BEFORE_PRODUCTS', array(), $email_order, $html_msg);
    Also the new code located in includes/classes/observers/auto.order_delivery_date_observer.php within the function updateNotifyOrderEmailBeforeProducts should have a line:
    Code:
    $email_order .= EMAIL_TEXT_DELIVERY_DATE . ' '  . zen_db_output($callingClass->info['order_delivery_date']) . "\n\n";
    that appends the delivery date to just after the customer provided comments block...

    That the data is available in the admin does indicate that at least it was stored with the order and confirms that it is locatable in the database and therefore should be present to be used in the above code.


    Ohhhh... That all is fine and dandy, but the identification of using the above function is missing from the observer class:

    Add the following at line 33 (moving existing line 33 down one) of includes/classes/observers/auto.order_delivery_date_observer.php:
    Code:
        $attachNotifier[] = 'NOTIFY_ORDER_EMAIL_BEFORE_PRODUCTS';
    Change shown and incorporated in master branch: https://github.com/mc12345678/order-delivery-date/commit/53e749993e8c6a02780a28ed7dc04477826735df#diff-dbecab78edebe73f70eecd555e1b74cd
    Last edited by mc12345678; 2 Nov 2017 at 06:38 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2017
    Location
    Rockwood, TN
    Posts
    10
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    All of that appears to be there but but that doesn't seem to be doing the job.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by plantman View Post
    All of that appears to be there but but that doesn't seem to be doing the job.
    Until about 15 minutes ago, the $attachNotifier identified above was not present in the file system:

    The line listed in red below has been newly added to the file download, needs to be added to your installation, and would be a reason that the email would not include the order delivery date information (in either html or plain text).

    This is from/to be in: includes/classes/observers/auto.order_delivery_date_observer.php

    Code:
      function __construct() {
        $attachNotifier = array();
        $attachNotifier[] = 'NOTIFY_ORDER_AFTER_QUERY';
        $attachNotifier[] = 'NOTIFY_ORDER_CART_FINISHED';
        $attachNotifier[] = 'NOTIFY_ORDER_DURING_CREATE_ADDED_ORDER_HEADER';
        $attachNotifier[] = 'NOTIFY_ORDER_EMAIL_BEFORE_PRODUCTS';
        $attachNotifier[] = 'NOTIFY_HEADER_START_CHECKOUT_SHIPPING';
        $attachNotifier[] = 'ORDER_QUERY_ADMIN_COMPLETE';
        $this->attach($this, $attachNotifier);
      }
    If it was added while still logged in from the previous test, may need to log out and log back in/clear cache/sessions for the information to get "refreshed". Otherwise, you may have read the message before it was modified and only now have seen the modification that fixes the issue. :)
    Last edited by mc12345678; 2 Nov 2017 at 06:54 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Sep 2017
    Location
    Rockwood, TN
    Posts
    10
    Plugin Contributions
    0

    Default Re: Order Delivery Date Support Thread

    The added code took care of it. You are awesome. Thanks

  6. #6
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by plantman View Post
    The added code took care of it. You are awesome. Thanks
    Keep the feedback coming in whatever it is you test, try, or use... Everyone that has written something or added their touch can only really know what is and is not working by the feedback from the users. Mind you, it's most helpful to everyone if at least a little self research is done, but everyone makes mistakes. I could have deleted that entire "logic", but if nothing else you can see the process of elimination that I used... :) Had to go back to the basics again. :)

    Thank you for confirming it fixed the issue. Now to write some more instruction on how to manage a transition from an older version to this one and maybe how it can be operated in ZC 1.5.3/1.5.4 (was just looking at the notifiers to see if it was possible without significant change to the ZC software).

    I have also seen that there might be a remote possibility of capturing a time option as requested a few pages back which means likely will want to introduce an auto-installer to make the overall installation and support easier...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Posted version 2.5.2 of the plugin to the ZC software moderators.

    What changed v2.5.2:

    - Removed modifications from core files and used the notifier/observer system instead for ZC 1.5.5. Specifically the autoloader system.
    - Replaced the mootools javascript with software that works with ZC 1.5.5.
    - Removed changes from template files that did not get incorporated into ZC 1.5.5.
    - Added text to identify that the delivery date is optional/required.
    Once accepted it will be available for download from the ZC forum from here.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Order Delivery Date Support Thread

    Quote Originally Posted by mc12345678 View Post
    Posted version 2.5.2 of the plugin to the ZC software moderators.



    Once accepted it will be available for download from the ZC forum from here.
    Version 2.5.2 has been reviewed and posted and is available from this zen-cart link:
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. order delivery date addon - date not showing in checkout
    By jagall in forum Addon Shipping Modules
    Replies: 4
    Last Post: 19 Oct 2017, 09:09 PM
  2. JK Order Exporter - Support Thread
    By eVelt in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 26 Sep 2015, 07:06 AM
  3. v151 Order Delivery date on Product Info Page
    By nicksab in forum General Questions
    Replies: 0
    Last Post: 30 Dec 2013, 03:23 AM
  4. Support Thread for JS Date Picker for options
    By eVelt in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 5 Dec 2013, 05:44 AM
  5. Order Delivery Date Mod
    By fagriffin in forum Addon Shipping Modules
    Replies: 1
    Last Post: 11 Oct 2008, 04:50 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