Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Terms date of last change

    I am seeking code to return the dates of when my privacy, terms of use and terms of sale files were last saved, so that I can compare these dates with a customer's last login date and provide the customer with a notice that the various terms have been updated since their last visit.

    The privacy, terms of use and terms of sale files currently all reside in includes/languages/english/html_includes, eg define_privacy.php, so I am seeking the date of each of the files in that directory.

    The reason for this request is that the code will be incorporated in an application separate to the ordinary use of the shopping cart.

    Is anyone aware of existing code similar in the zc releases or plugins.

    Thanks in advance.

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

    Default Re: Terms date of last change

    The php function: filemtime could be used to obtain the last modify date of each such file with the use of the zen_get_module_directory function used to obtain the file(s) from the correct template override file.

    Issue to address in the process is to capture the last login date before it is updated by signing on. Generally speaking signing on could come from a few different directions so will want to "conveniently" work with the customer when the check is performed/user is at a point for each of the respective policy points.

    Currently there is already an acceptance of policy option in the checkout process though it does not depend on such last modification date.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Terms date of last change

    Thanks MC# that was the kind of thing I was looking/hoping for.

    re the last login date, I am now trending towards saving the dates that a customer accepts each of the various terms via a redirect from the login page.

    Been looking at Lat9s news_box_manager-2.1.0 for clues. Still early days however.

    Thanks

 

 

Similar Threads

  1. v154 Last Order Date Report
    By keyconn in forum General Questions
    Replies: 1
    Last Post: 30 Jul 2015, 10:21 PM
  2. Date of Last Order
    By rgriese in forum Managing Customers and Orders
    Replies: 7
    Last Post: 26 Nov 2012, 03:06 AM
  3. last modified Date
    By purelypoultry in forum Basic Configuration
    Replies: 1
    Last Post: 28 Jan 2010, 12:06 PM

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