Results 1 to 10 of 510

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    43
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    Hello Conor,

    I really want the product model (or even with manufacturer) to be also included (just shown behind the $product_name) in the back-in-stock-notification subscription email. Because I hope to get a better idea of what is exactly wanted by the customer just from reading the notification email.

    Is there a way to achieve that? Could you please show me which file(s) should I edit and what kind of codes should I add?

    Thank you very much in advance.

    Best Regards,
    Ashely

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

    Default Re: Back In Stock Notifications

    Hi Ashley,

    Quote Originally Posted by Ashely View Post
    Is there a way to achieve that? Could you please show me which file(s) should I edit and what kind of codes should I add?
    You can easily add that functionality by modifying the file includes/modules/pages/back_in_stock_notification_subscribe/header_php.php

    You can add a SQL lookup to populate a variable with the model and then add it to the e-mail as part of the product name, or edit the e-mail templates to add a "placement variable" to have it as a separate part of the e-mails.

    Hope that helps!

    All the best..

    Conor
    ceon

  3. #3
    Join Date
    Apr 2010
    Posts
    43
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    Hello Conor,

    Thank you very much for the quick reply.

    I tried to edit the header_php.php file. But the product model was still not properly shown. The code I added to that file is as follows:

    PHP Code:
    $product_model_query "
        SELECT
            products_model
        FROM
            "
    TABLE_PRODUCTS "
        WHERE
            products_id = '" 
    . (int) $_GET['products_id'] . "';";
    $product_model_result $db->Execute($product_model_query);
    $product_model $product_model_result->fields['products_model']; 
    There must be some mistakes there. Could you please help me with that? Sorry, I know little about programming.

    Thank you very much.

    Best Regards,
    Ashely

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

    Default Re: Back In Stock Notifications

    Hi Ashely,

    Quote Originally Posted by Ashely View Post
    Thank you very much for the quick reply.
    No problem. Glad you find the software useful!

    Quote Originally Posted by Ashely View Post
    I tried to edit the header_php.php file. There must be some mistakes there. Could you please help me with that? Sorry, I know little about programming.
    You're most of the way there. Now you just need to use the $products_model variable.

    Right after $form_errors = array(); put in the line:

    PHP Code:
    $products_name .= ' ' $products_model
    This will add a space then the model to the name. (Which is the most basic way to get this information included in the e-mail.. personally I'd myself prefer to have it listed in the e-mail separately, but that's just the way I do things and this "quick fix" is what you were looking for I think!).

    Hope that helps!

    All the best...

    Conor
    ceon

  5. #5
    Join Date
    Apr 2010
    Posts
    43
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    Thank you for the answer, Conor. Much appreciated!

    Great! Now it works perfect! Product model clearly shows up. I just love this module even more. :-D

    Thanks again,
    Ashely

  6. #6
    Join Date
    Jun 2009
    Location
    malaysia
    Posts
    41
    Plugin Contributions
    0

    Default Re: Back In Stock Notifications

    Hi,

    I uploaded all the files and the sql to the server. When I select "Back In Stock Notification" in the admin, it show "Not Found". I double checked the file location. It's correct.

    Any idea why?

 

 

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

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