Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Question about Time Zone Offset mod

    Quote Originally Posted by JohnBoyCR View Post
    Thanks to gilby for the reply.

    It looks like in includes/functions/salemaker.php code there are
    several references to now(), as related to sale_date_end. I
    would need to change all of those references as suggested. RIGHT?

    Plus, would I need to also apply those same changes in the
    product pricing code? And is that code

    includes/functions/functions_prices.php ?

    Or will just changing the salemaker.php code take care of the
    product pricing displayed with the sale value? I'm still an egg !

    Thanks for your help.
    I don't use salemaker so don't have a need to fix this.
    I would assume that every now() in salemaker.php would need to be altered.
    There are 2 now()'s in the functions_prices.php that would probably need to be altered as well.

    Be sure to backup these files before editing them

  2. #12
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Question about Time Zone Offset mod

    Well, some good news and some bad news.

    I made the changes to includes/languages/english.php, includes/functions/salemaker.php and
    includes/functions/function_price.php.

    The good news is that it did not have an adverse effect on the
    site. The bad news is that it is not sufficient. Looks like I also
    need to make changes in the Admin files. The problem: the sale
    end date, in the admin/salemaker is still linked to the server clock.

    Anybody have some comments/help with this?

    I appreciate it.

  3. #13
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Question about Time Zone Offset mod

    I FIGURES IT OUT !! I will post the full details in a couple of
    days.

    johnboycr

  4. #14
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Re: Question about Time Zone Offset mod

    I have attached a zipped file that contains a readme.txt and the includes folder with the two files that need to be uploaded.

    If you intend to use this code, PLEASE READ the readme
    before proceeding. Always make backups of any code
    that is to be modified.

    I have used and tested this mod but make no guaranties.
    Use at your own risk.

    If you have any questions feel free to message me.

    I would appreciate feedback as to any problems you may have
    encountered and as to usability and understandability.
    Attached Files Attached Files

  5. #15
    Join Date
    Jan 2009
    Posts
    201
    Plugin Contributions
    6

    Default Some examples for determining value for HOURS

    As an afterthought I decided to provide a couple of examples for
    determining the value for the HOURS as per the mod I uploaded.

    Both examples assume you want the sale to include 31 Oct 2009

    Example 1:

    Server location: New York
    Store location: Los Angeles
    Time difference: -3 hours
    Set sale end date: 2 Nov 2009
    Set HOURS: +21


    Example 2:

    Server location: Los Angeles
    Store location: New York
    Time difference: +3 hours
    Set sale end date: 1 Nov 2009
    Set HOURS: -3

    Hope this is helpful.

  6. #16
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Question about Time Zone Offset mod

    Is there a way to get what exact code changes there are for each file since I will have to manually change them. I have the google checkout mod installed and that effects nearly all of those files. I tried to do a compare/contrast, but I couldn't see what was altered.

    It should be standard that the author(s) of these mods provide what codes for manual alterations.

  7. #17
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Question about Time Zone Offset mod

    Great, now I'm really messed up ...

    I restored original files ... and deleted out the database entry and now I can't get into Admin .... I can login ... but the next page (the admin index page) is blank.

    In IE, the yellow warning triangle mentions something about missing object in the menu.js file .... which hasn't been touched.

    Great ... have no clue what is going on now and thus no way to fix it.

    I keep getting this in the log error file:

    PHP Warning: require(includes/header.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /var/www/vhosts/vintagegunleather.com/httpdocs/shoppe/admin/index.php on line 60, referer: http://www.vintagegunleather.com/shoppe/admin/login.php

    I haven't touched any of those files. And which header.php file? There is no includes/header.php even in the original zencart files!!
    Last edited by beyre; 16 Nov 2009 at 05:07 PM.

  8. #18
    Join Date
    Feb 2009
    Posts
    419
    Plugin Contributions
    0

    Default Re: Question about Time Zone Offset mod

    Please see my resolution to my above post here:

    http://www.zen-cart.com/forum/showthread.php?p=807651

    The above also explains what was my initial problem with this module to cause all the problems to begin with.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Stock by Attributes Mod with Time Zone Offset Mod
    By xman888 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 5 Aug 2007, 05:08 AM
  2. Time Zone Offset
    By harry2cool in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 26 Jul 2006, 09:31 PM

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