Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
clydejones
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.
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
hedron
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
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
clydejones
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. :smile:
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?
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
hedron
Ok, that is starting to make sense. Thank you. :smile:
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
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
clydejones
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.
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
hedron
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
Re: Testimonial Manager Support Thread
Version 1.3.8
I've used your Testimonial manager for another site I created with no problems. Thanks.
I'm attempting to create a new site by copying my previous site, and everything else about the new site is working fine, except for the Testimonial manager. It appears that none of the 'define' variables can be found and the variable names themselves show up on the page, for instance: TESTIMONIALS_MANAGER_DISPLAY_ALL_TESTIMONIALS shows up instead of the words "View all Testimonials".
On my new site, I renamed all of the template folders to a new name, including those related to the testimonial manager. I don't understand why the define pages can not be found. For example, there is a file called tpl_testimonials_manager.php. In it, there is a line that uses a defined constant: TESTIMONIALS_MANAGER_ADD_TESTIMONIALS. This page is located in inlcludes/templates/mytemplate/sideboxes. The defined constant is located in: includes/languages/english/extra_definitions/mytemplate/testimonials_manager_defines.php. It's as if it can't find any of the defined vars. Any ideas? Is there something that could get messed up during my site copy process that would make the testimonial manager scripts lose their defined vars? By the way, I tried uninstalling the entire testimonial add on, then reinstalling it. It still acts the same way. Suggestions? Thanks!!!
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
largomike1
Version 1.3.8
I've used your Testimonial manager for another site I created with no problems. Thanks.
I'm attempting to create a new site by copying my previous site, and everything else about the new site is working fine, except for the Testimonial manager. It appears that none of the 'define' variables can be found and the variable names themselves show up on the page, for instance: TESTIMONIALS_MANAGER_DISPLAY_ALL_TESTIMONIALS shows up instead of the words "View all Testimonials".
On my new site, I renamed all of the template folders to a new name, including those related to the testimonial manager. I don't understand why the define pages can not be found. For example, there is a file called tpl_testimonials_manager.php. In it, there is a line that uses a defined constant: TESTIMONIALS_MANAGER_ADD_TESTIMONIALS. This page is located in inlcludes/templates/mytemplate/sideboxes. The defined constant is located in: includes/languages/english/extra_definitions/mytemplate/testimonials_manager_defines.php. It's as if it can't find any of the defined vars. Any ideas? Is there something that could get messed up during my site copy process that would make the testimonial manager scripts lose their defined vars? By the way, I tried uninstalling the entire testimonial add on, then reinstalling it. It still acts the same way. Suggestions? Thanks!!!
url for your site
Re: Testimonial Manager Support Thread
hi, i can't will my chinese code in the testimonials,, do u have any latest version to support UTF-8, i have code converter software but i dun know which files to effect this..
Re: Testimonial Manager Support Thread
Quote:
Originally Posted by
guitarmong
hi, i can't will my chinese code in the testimonials,, do u have any latest version to support UTF-8, i have code converter software but i dun know which files to effect this..
All of the information for Testimonial Manager is stored in the database table so there are no files to edit.