Results 1 to 10 of 1501

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    138
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    The e-mail address used is the one you have set in admin -> configuration -> e-mail options.
    If you want to change it to something else then you will have to define the new e-mail address in:
    includes/languages/english/YOUR_TEMPLATE/testimonials_add.php
    Now you will need to modify the section that sends the admin e-mail in
    includes/modules/pages/testimonials_add/header_php.php
    Thank you.

    What are the specific lines of code that accomplish that in those files?

    I am guessing the code is pulling up the default STORE_OWNER_EMAIL_ADDRESS? Do you think it could be substituted with the Reviews email address that is set within the E-Mail options?

    I would like to change this only for the Submission emails sent to the store owner however, not to emails sent to customers. Those should still keep the default store email address...

    Thanks.

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by hedron View Post
    Thank you.

    What are the specific lines of code that accomplish that in those files?

    I am guessing the code is pulling up the default STORE_OWNER_EMAIL_ADDRESS? Do you think it could be substituted with the Reviews email address that is set within the E-Mail options?

    I would like to change this only for the Submission emails sent to the store owner however, not to emails sent to customers. Those should still keep the default store email address...

    Thanks.
    As I explained you'll need to define the new e-mail address in
    includes/languages/english/YOUR_TEMPLATE/testimonials_add.php

    define('TESTIMONIAL_EMAIL_ADDRESS', 'mynewemailaddress');

    Now you will need to modify the section that sends the admin e-mail in
    includes/modules/pages/testimonials_add/header_php.php

    look for the following section: lines 119 - 121)

    ////SEND ADMIN EMAIL

    zen_mail($name, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, EMAIL_OWNER_TEXT, STORE_NAME, EMAIL_FROM, $html_msg, 'testimonial_add');

    You need to substitute STORE_OWNER_EMAIL_ADDRESS with TESTIMONIAL_EMAIL_ADDRESS

  3. #3
    Join Date
    Feb 2009
    Posts
    138
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    As I explained you'll need to define the new e-mail address in
    includes/languages/english/YOUR_TEMPLATE/testimonials_add.php

    define('TESTIMONIAL_EMAIL_ADDRESS', 'mynewemailaddress');

    Now you will need to modify the section that sends the admin e-mail in
    includes/modules/pages/testimonials_add/header_php.php

    look for the following section: lines 119 - 121)

    ////SEND ADMIN EMAIL

    zen_mail($name, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, EMAIL_OWNER_TEXT, STORE_NAME, EMAIL_FROM, $html_msg, 'testimonial_add');

    You need to substitute STORE_OWNER_EMAIL_ADDRESS with TESTIMONIAL_EMAIL_ADDRESS
    Ok, that is starting to make sense. Thank you.

    Instead of defining a new email address (which I am guessing can be picked up by spiders in there), is there a list of available "Send Copy of" email addresses listed in Admin > Configuration > E-Mail Options?

    For example, in this case, instead of using STORE_OWNER_EMAIL_ADDRESS I could use the same email address used to get an alert that a review is pending. Where can I find a list that tells me the name of that code. I am guessing it should be something like PENDING_REVIEW_EMAIL_ADDRESS if it exists.

    That way I could change the email address in the admin if needed.... I am having no luck with the Developers Tool Kit in finding where those email addresses have been defined already.

    I still don't understand the structure of Zen Cart, but I am guessing that all email addresses reside in the database, they are defined in admin (email options) and then they are called in the catalog from the admin... so if STORE_OWNER_EMAIL_ADDRESS calls the main email address for the store, then some other code should be calling the email address for pending reviews...

    Where should I start looking?

  4. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by hedron View Post
    Ok, that is starting to make sense. Thank you.

    Instead of defining a new email address (which I am guessing can be picked up by spiders in there), is there a list of available "Send Copy of" email addresses listed in Admin > Configuration > E-Mail Options?

    For example, in this case, instead of using STORE_OWNER_EMAIL_ADDRESS I could use the same email address used to get an alert that a review is pending. Where can I find a list that tells me the name of that code. I am guessing it should be something like PENDING_REVIEW_EMAIL_ADDRESS if it exists.

    That way I could change the email address in the admin if needed.... I am having no luck with the Developers Tool Kit in finding where those email addresses have been defined already.

    I still don't understand the structure of Zen Cart, but I am guessing that all email addresses reside in the database, they are defined in admin (email options) and then they are called in the catalog from the admin... so if STORE_OWNER_EMAIL_ADDRESS calls the main email address for the store, then some other code should be calling the email address for pending reviews...

    Where should I start looking?
    admin -> configuration -> e-mail options

    There are several options to send copy of "whatever e-mail" to

  5. #5
    Join Date
    Feb 2009
    Posts
    138
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    admin -> configuration -> e-mail options

    There are several options to send copy of "whatever e-mail" to
    Right.

    In there, this option "Email Address (sent FROM)" refers to this code:
    STORE_OWNER_EMAIL_ADDRESS


    But how do I figure out what is the code that refers to this option:
    "Send Notice of Pending Reviews Emails To"

    so that I can substitute it in your mod as you suggested?

    If I plug that sentence in the Developers Tool Kit it returns nothing.



    This is basically what I have been trying to ask.

    Unless I am missing something.

    I am just trying to learn. I pointed out 2 bugs and a useful tweak, which was my way to contribute back to the discussion... am I being annoying, or I am not asking the right questions?

    Thank you.
    Last edited by hedron; 2 Oct 2009 at 01:37 AM.

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by hedron View Post
    Right.

    In there, this option "Email Address (sent FROM)" refers to this code:
    STORE_OWNER_EMAIL_ADDRESS


    But how do I figure out what is the code that refers to this option:
    "Send Notice of Pending Reviews Emails To"

    so that I can substitute it in your mod as you suggested?

    If I plug that sentence in the Developers Tool Kit it returns nothing.



    This is basically what I have been trying to ask.

    Unless I am missing something.

    I am just trying to learn. I pointed out 2 bugs and a useful tweak, which was my way to contribute back to the discussion... am I being annoying, or I am not asking the right questions?

    Thank you.
    look in includes/modules/pages/product_reviews_write/header_php.php

    You'll find the following constant
    SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO

  7. #7
    Join Date
    Feb 2009
    Posts
    138
    Plugin Contributions
    0

    Default Re: Testimonial Manager Support Thread

    Quote Originally Posted by clydejones View Post
    look in includes/modules/pages/product_reviews_write/header_php.php

    You'll find the following constant
    SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO
    It works! Thank you I wish I had some of your php genius.



    In brief, here is the How To:

    If you need Testimonial Manager to send Testimonial Submission updates to the same email address used to alert the store admin about Review submissions, follow these instructions:

    Quote Originally Posted by clydejones View Post

    Modify the section that sends the admin e-mail in
    includes/modules/pages/testimonials_add/header_php.php

    look for the following section: lines 119 - 121)

    ////SEND ADMIN EMAIL

    zen_mail($name, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, EMAIL_OWNER_TEXT, STORE_NAME, EMAIL_FROM, $html_msg, 'testimonial_add');


    You need to substitute STORE_OWNER_EMAIL_ADDRESS [...]
    ... with this code: SEND_EXTRA_REVIEW_NOTIFICATION_EMAILS_TO

 

 

Similar Threads

  1. v150 Testimonial Manager Support Thread (for ZC v1.5.x)
    By countrycharm in forum All Other Contributions/Addons
    Replies: 262
    Last Post: 26 Jun 2025, 10:42 AM
  2. Link Manager 3.0 Support Thread
    By clydejones in forum Addon Sideboxes
    Replies: 1987
    Last Post: 6 Aug 2021, 02:56 PM
  3. Poll Manager Support Thread
    By boudewijn in forum Addon Sideboxes
    Replies: 148
    Last Post: 27 Jan 2016, 09:53 AM
  4. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM
  5. [Support Thread] Simple Video Manager
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 1 Nov 2008, 02:44 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