Results 1 to 10 of 205

Hybrid View

  1. #1
    Join Date
    Jun 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Hi conor,

    As we near sending out our first notification I started looking at customizing the notify email...

    I may have been very dense today, but it look me ages to finally find out where the words/text of the notify email ("Please check it out before it goes out of stock again!", etc.) are defined- and they weren't anywhere I expected them to be, given the location of the subscribe and unsubscribe email text defines! I definitely didn't expect to find them in admin...
    The defines are here:
    admin/includes/languages/english/functions/back_in_stock_notifications.php

    I wonder if this could be added to the documentation under configuration? Or maybe it is obvious to everyone else...

    I also modified code to add a closing line (I called $EMAIL_CLOSING) to the end of the email, since we wanted something to say "PLEASE NOTE: This is a one-time notification. If a product goes out of stock, you will need to sign up again to be notified when it returns." A bit of a bother, but it will hopefully help the customers...

    Also, it seems like perhaps $EMAIL_DISCLAIMER (already defined) at the end of the email should be standard at the end of the distribution email template for html and txt? It isn't there now on the standard distribution template, and I only knew to add it because I was looking at the code...

    Also, if I may request - an option to turn off the "powered by zen cart" portion of the $EMAIL_DISCLAIMER would be helpful I think. (Yes, I just commented it out in the code).

    And FYI, I added an . "\n" to add a line break after each product listing in the html email on about line 132 of
    admin/includes/includes/functions/back_in_stock_notifications_functions.php
    to make a cleaner email and avoid the super-long line it was producing.

    I can send you what I did if it is of any help... Although I would guess my mods are pretty obvious...

    Thank you- your module has been a life-saver, and I have convinced our store-client, who is super-happy, to make a donation!

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

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Hi,

    Quote Originally Posted by jgreene View Post
    it look me ages to finally find out where the words/text of the notify email ("Please check it out before it goes out of stock again!", etc.) are defined- and they weren't anywhere I expected them to be, given the location of the subscribe and unsubscribe email text defines! I definitely didn't expect to find them in admin...
    Yes, sorry, this isn't so obvious I'd guess, but it is the standard for Zen Cart to keep the e-mail templates in the store's side, even for admin e-mails.

    I've never read the Zen Cart manual before but I'm guessing that it must not mention that then.

    Quote Originally Posted by jgreene View Post
    I wonder if this could be added to the documentation under configuration? Or maybe it is obvious to everyone else...
    No, thinking about it, I don't think it would be that obvious, it's certainly not intuitive. If I ever create a new version of the software, I'll add this info to the docs.

    Quote Originally Posted by jgreene View Post
    Also, it seems like perhaps $EMAIL_DISCLAIMER (already defined) at the end of the email should be standard at the end of the distribution email template for html and txt? It isn't there now on the standard distribution template, and I only knew to add it because I was looking at the code...
    All of the standard Zen Cart e-mail variables are available for use.

    I didn't include the standard Zen Cart disclaimer in the default template to save people the bother of taking it out as I find most people do so when modifying the Zen Cart e-mail templates.

    The standard Zen Cart disclaimer text is pretty poor IMO...

    Quote Originally Posted by jgreene View Post
    Also, if I may request - an option to turn off the "powered by zen cart" portion of the $EMAIL_DISCLAIMER would be helpful I think. (Yes, I just commented it out in the code).
    ..as you've noticed. :)

    As it's the ZC standard I'm afraid I'll not be changing it.

    Quote Originally Posted by jgreene View Post
    And FYI, I added an . "\n" to add a line break after each product listing in the html email on about line 132 of
    admin/includes/includes/functions/back_in_stock_notifications_functions.php
    to make a cleaner email and avoid the super-long line it was producing.
    That's not a "cleaner" e-mail but I know what you mean... I'd meant to put a newline there but forgot. I've now made the change in the "trunk" for the module.. so it's there if a new version gets released.

    Quote Originally Posted by jgreene View Post
    I can send you what I did if it is of any help... Although I would guess my mods are pretty obvious...
    Thanks for your feedback!

    Quote Originally Posted by jgreene View Post
    Thank you- your module has been a life-saver, and I have convinced our store-client, who is super-happy, to make a donation!
    I'm glad you like it. I hope the store does well.

    All the best...

    Conor
    ceon

  3. #3
    Join Date
    Nov 2009
    Posts
    80
    Plugin Contributions
    2

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Hi

    At the moment this module is sending plain-txt emails for non account holders and html for users that are logged in.

    Is there a way I can change this so everyone gets the html emails?

    Kind Regards

    Dave

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

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Hi Dave,

    Quote Originally Posted by Davx View Post
    At the moment this module is sending plain-txt emails for non account holders and html for users that are logged in.

    Is there a way I can change this so everyone gets the html emails?
    You'll have to manually recode Zen Cart's e-mail function. It is that which decides what format to send the e-mail in.

    Should be easy enough to change by modifying the core file.

    All the best...

    Conor
    ceon

  5. #5
    Join Date
    Nov 2009
    Posts
    80
    Plugin Contributions
    2

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Cheers Conor

    ...for anyone else looking you need to edit /includes/functions/functions_email.php.


    PHP Code:
          // handling admin/"extra"/copy emails:
          
    if (ADMIN_EXTRA_EMAIL_FORMAT == 'TEXT' && substr($module,-6)=='_extra') {
            
    $email_html='';  // just blank out the html portion if admin has selected text-only      
    }

    //Add this after the above around line 160
                
    if ($customers_email_format != 'HTML' && $email_html != '' && ($module == 'back_in_stock_notification_subscribe' || $module == 'back_in_stock_notification_subscribe')) {
            
    $customers_email_format 'HTML';
          } 

  6. #6
    Join Date
    Oct 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Hi

    Installed BISN and the request to subscribe form appears thereunder in the product page and you can subscribe all OK and you get your email confirming, so communications with database seems OK on that page.

    However when you go to admin under Catalog - back in stock notifications - and you click on it you encounter an error

    1146 Table 893_shop.shop_back_in_stock_notification_subscriptions' doesn't exist...

    the database table exist and subscriptions are there.

    I noticed that database name in our mysql is Shop_back_in_stock_notification_subscriptions with a capital S.


    any suggestions?

    Thank you
    Tony

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

    Default Re: Ceon Back In Stock Notifications 3.0.0

    Hi Tony,

    Quote Originally Posted by Tonyy View Post
    I noticed that database name in our mysql is Shop_back_in_stock_notification_subscriptions with a capital S.
    Make sure your table prefix is the same in both your store and admin configure.php files.

    Other than that, I'm not sure but this is something you've done wrong and not a problem with the software.

    Hope that helps.

    All the best...

    Conor
    ceon

 

 

Similar Threads

  1. Replies: 146
    Last Post: 13 Dec 2020, 09:52 AM
  2. Back In Stock Notifications
    By conor in forum All Other Contributions/Addons
    Replies: 509
    Last Post: 11 May 2016, 03:02 PM
  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

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