Page 4 of 4 FirstFirst ... 234
Results 31 to 36 of 36
  1. #31
    Join Date
    Jan 2007
    Posts
    1,455
    Plugin Contributions
    10

    Default Re: Scheduling a new release in the store

    Thanks for this, mc! I have added it to my test site and have scheduled a disabled product, I will report back tomorrow with results but looks like it should go without a hitch.

    Zen Cart and it's community are the best!!

  2. #32
    Join Date
    Feb 2009
    Posts
    738
    Plugin Contributions
    0

    Default Re: Scheduling a new release in the store

    Just to clarify some of the code. In the includes/init_includes/init_special_funcs_disabled_upcoming.php, my file includes also this code:
    Code:
    /* Do not want to affect the way that other code that follows uses $_SESSION['today_is']
      if (!isset($_SESSION['today_is'])) {
        $_SESSION['today_is'] = date('Y-m-d');
      }
      if ($_SESSION['today_is'] != date('Y-m-d')) {
        $_SESSION['today_is'] = date('Y-m-d');
        $_SESSION['updateExpirations_upcoming'] = false;
      }
    */
    Should I keep that or is it redundant with the rest?

  3. #33
    Join Date
    Jul 2012
    Posts
    14,576
    Plugin Contributions
    17

    Default Re: Scheduling a new release in the store

    Quote Originally Posted by CaroleAs View Post
    Just to clarify some of the code. In the includes/init_includes/init_special_funcs_disabled_upcoming.php, my file includes also this code:
    Code:
    /* Do not want to affect the way that other code that follows uses $_SESSION['today_is']
      if (!isset($_SESSION['today_is'])) {
        $_SESSION['today_is'] = date('Y-m-d');
      }
      if ($_SESSION['today_is'] != date('Y-m-d')) {
        $_SESSION['today_is'] = date('Y-m-d');
        $_SESSION['updateExpirations_upcoming'] = false;
      }
    */
    Should I keep that or is it redundant with the rest?
    That code is commented out (per earlier correction) and serves no purpose at this point.

    It can be removed.

    Initially I thought it was needed/would help, but then realized that it would actually get in the way of the other features like specials, sales, upcoming product, etc...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  4. #34
    Join Date
    Jul 2012
    Posts
    14,576
    Plugin Contributions
    17

    Default Re: Scheduling a new release in the store

    Quote Originally Posted by lankeeyankee View Post
    Thanks for this, mc! I have added it to my test site and have scheduled a disabled product, I will report back tomorrow with results but looks like it should go without a hitch.
    @lankeeyankee, quite welcome. Look forwards to hearing back about it!
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  5. #35
    Join Date
    Jan 2007
    Posts
    1,455
    Plugin Contributions
    10

    Default Re: Scheduling a new release in the store

    Works just as expected! Awesome, simple and effective, thanks so much, mc!! Perfect for setting up all sorts. I am going to look to extend this to ezpages for promotional pages. We can set everything up in advance and just schedule releases. Very, very helpful.

    Zen Cart and it's community are the best!!

  6. #36
    Join Date
    Feb 2009
    Posts
    738
    Plugin Contributions
    0

    Default Re: Scheduling a new release in the store

    I am happy to report that it worked perfectly.
    Now, if there is any update as in a way to set the TIME too, I will add it. But for now, it is already a great tool.

    Thank you!

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. v151 Time release or calendar/scheduling of a product? Possible?
    By mickyhulse in forum General Questions
    Replies: 7
    Last Post: 16 Apr 2014, 01:28 AM
  2. What's New in the Upcoming (v1.4) V2.0 release?
    By DrByte in forum Development Road Map
    Replies: 2
    Last Post: 29 Aug 2008, 11:33 PM
  3. Adding Product Type -- New Release
    By rush_woman in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 31 Jan 2007, 08:22 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