This contribution is great. Thank you Clyde.
Everything seems to be working fine for me now. Below are further comments and questions.
Tweak: to make this side box similar to the Reviews one, instead of “false”, I set the "title link" to display_all_testimonials in includes/modules/sideboxes/YOUR_Template/testimonials_manager... and turned off the link at the bottom.
1. Minor bug: When adding a testimonial from the admin, if you insert a past date and forget to fill out a required field or if you do not format the date as suggested, after giving you an error it will change the date field to a random date. You cannot modify that date from the admin once you submit the testimonial. To correct that you need to delete and reenter the testimonial.
2. Is there an easy admin fix to change just the “Testimonial submission” email address sent to the store owner? Or should I change that in the code (and where/how)?
3. I would like to have the single testimonial breadcrumbs to be a sub-page of the All Testimonials page, using a tweak similar to this for EZ-Pages:
http://www.zen-cart.com/forum/showpo...40&postcount=7
Any ideas on how to implement that?
4. Is there a way to allow customers to upload their own picture?
5. Is it possible for the side box to rotate only the testimonials that do have pictures?
6. For a future update, the language in the submission email has a minor misspelling :"Please verify thie testimonial and activate."
2. Is there an easy admin fix to change just the “Testimonial submission” email address sent to the store owner? Or should I change that in the code (and where/how)?
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
4. Is there a way to allow customers to upload their own picture?
Currently, No.
5. Is it possible for the side box to rotate only the testimonials that do have pictures?
Currently, No.
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
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?