Page 31 of 51 FirstFirst ... 21293031323341 ... LastLast
Results 301 to 310 of 510
  1. #301
    Join Date
    Aug 2007
    Posts
    5
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications - Cron

    Great Script Conor!

    Thanks so much for creating it!

    For those that would like to run a cron job for this module, feel free to use / modify the one below:

    PHP Code:
    <?php

    // filename: cron1.php
    // make changes in /admin/includes/init_includes/init_admin_auth.php example below...
    // 
    ################################## init_admin_auth.php ##################################
    #
    #    if (! defined('IS_ADMIN_FLAG')) {
    #          die('Illegal Access');
    #    }
    #  // New Code Starts Here:
    #    if (!isset($_SESSION['admin_id']) && defined('CRON_ADMIN_USER_ID') && CRON_ADMIN_USER_ID != '') { 
    #          $_SESSION['admin_id'] = CRON_ADMIN_USER_ID;
    #    } 
    #  // End New Code:
    #    if (!(basename($PHP_SELF) == FILENAME_LOGIN . '.php')) {
    #
    ################################## init_admin_auth.php ##################################

    if ($_SERVER['REMOTE_ADDR'] == $_SERVER['SERVER_ADDR']) { // Security measure to make sure only local server runs file! <-- Comment out this line to run browser testing

        
    define('CRON_ADMIN_USER_ID''99'); // Pick an ID number and add CRON_ADMIN_USER_ID into admin database, I used phpMyAdmin to do this

        
    require ('includes/application_top.php');
        require (
    DIR_FS_ADMIN DIR_WS_LANGUAGES 'english/back_in_stock_notifications.php');
        require (
    DIR_FS_ADMIN DIR_WS_FUNCTIONS 'back_in_stock_notifications_functions.php');

        
    sendBackInStockNotifications();
    // <-- Comment out this line to run browser testing
    ?>
    Hope this helps someone else that might need this feature.

    Best Regards,
    Mike

  2. #302
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Back In Stock Notifications - Cron

    Hi Mike,

    Quote Originally Posted by ferenczy View Post
    Great Script Conor!

    Thanks so much for creating it!
    No problem, glad you like it!

    Thanks for posting the cron job script.. it's nice and neat! :)

    All the best...

    Conor
    ceon

  3. #303
    Join Date
    Dec 2008
    Posts
    70
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    Sorry I was snippy....


    One more question.....

    Exactly where is the text for the subscription email stored.

    I found the file to change the text of the subscription screen that is displayed, but I would like to add some text to the actual subscription email that is sent out......


    Thanks for a great mod

  4. #304
    Join Date
    Dec 2008
    Posts
    70
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    Never mind.,....

    it is the back_in_stock_notification_subscribe.php file!


    All good

  5. #305
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Back In Stock Notifications

    Hi,

    Quote Originally Posted by exeter_acres View Post
    it is the back_in_stock_notification_subscribe.php file!
    Yes, just create a copy of that file in your includes/languages/english/YOUR_TEMPLATE folder and modify it as desired!

    Quote Originally Posted by exeter_acres View Post
    All good
    Glad to hear it! :)

    All the best...

    Conor
    ceon

  6. #306
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    i noticed on some of my sold out products the back in stock notification doesn't show up on the product pages but on others it works fine. any idea what could cause this?
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  7. #307
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Back In Stock Notifications

    Hi,

    Quote Originally Posted by MB1 View Post
    i noticed on some of my sold out products the back in stock notification doesn't show up on the product pages but on others it works fine. any idea what could cause this?
    Make sure you're using the latest version of the module, earlier versions may not show the link if the quantity in stock is negative rather than exactly zero.

    All the best..

    Conor
    ceon

  8. #308
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    ok i upgraded to 2.2.4 one thing i noticed was that when i changed my admin folder to another name for security reasons the admin section of the back in notification didn't work anymore any ideas other then having an admin folder strickly for back in stock files

    thanks for your help this is a great mod
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

  9. #309
    Join Date
    Aug 2004
    Location
    Belfast, Northern Ireland
    Posts
    2,480
    Plugin Contributions
    14

    Default Re: Back In Stock Notifications

    Hi,

    Quote Originally Posted by MB1 View Post
    any ideas other then having an admin folder strickly for back in stock files
    That problem can have nothing to do with the Back In Stock Notifications module.. you should check out if you have a problem with an "Admin Profiles" module or something similar.

    Also check that you have the correct path to your newly renamed admin folder in your admin/includes/configure.php

    All the best...

    Conor
    ceon

  10. #310
    Join Date
    Jun 2006
    Posts
    566
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    everything else seemed to be working so i never double checked that file, i haven't worked on the site in ages and another thing i was wondering these last few days was why my developers tool kits couldn't find anything.

    thanks for replying i found a piece of code that was point to my old folder in the admin configure.php file
    www.gorillagear.ca = zencart v1.3.9h with 40+ mods

 

 
Page 31 of 51 FirstFirst ... 21293031323341 ... LastLast

Similar Threads

  1. Ceon Back In Stock Notifications 3.0.0
    By conor in forum Addon Admin Tools
    Replies: 204
    Last Post: 8 Apr 2025, 05:19 PM
  2. Replies: 146
    Last Post: 13 Dec 2020, 09:52 AM
  3. Replies: 4
    Last Post: 14 Feb 2013, 09:33 PM
  4. v139h Back In Stock Notifications only notify customers ONE time?
    By SRQHoyas in forum General Questions
    Replies: 0
    Last Post: 9 Jun 2012, 01:58 PM
  5. Problems with Back In Stock Notifications addon
    By dhanesh in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Aug 2008, 02:26 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