X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Review Reminder Email (https://forum.x-cart.com/showthread.php?t=65416)

Johnwiggity 11-20-2012 04:06 AM

Review Reminder Email
 
I'm trying to modify the Advanced Customer Reviews Review Reminder Email that would be sent.

One, will it send to all customers, or those who have created an account?

Two, where do I modify the review reminder email at?

Thanks.

not_so_young_greg 11-20-2012 05:53 AM

Re: Review Reminder Email
 
Well, in my case it does not send remainders at all. It shows that they were sent but I find nothing in my mailbox. It works fine in test mode though.
Anybody knows what I am doing wrong?

karina 11-20-2012 06:15 AM

Re: Review Reminder Email
 
Quote:

Originally Posted by Johnwiggity
One, will it send to all customers, or those who have created an account?


Yes, reminders will be send to all customers. It doesn't matter if they are registered customers or anonymous.

Quote:

Originally Posted by Johnwiggity
Two, where do I modify the review reminder email at?


Review reminder email can be changed in the 'skin/common_files/mail/html/acr_review_reminder.tpl' file. Please do not forget about the plain template 'skin/common_files/mail/acr_review_reminder.tpl. It should be changed too.

Johnwiggity 11-20-2012 06:38 AM

Re: Review Reminder Email
 
Thanks.

Is there a language file that is associated with the email text? Also how would I go about testing the email?

karina 11-20-2012 06:43 AM

Re: Review Reminder Email
 
Quote:

Originally Posted by not_so_young_greg
Well, in my case it does not send remainders at all. It shows that they were sent but I find nothing in my mailbox. It works fine in test mode though.
Anybody knows what I am doing wrong?


There are two possible solutions
1. Check your 'send_review_reminders.php' file. If you find such part of code:
PHP Code:

//define('TEST_MODE', true);
//define('TEST_EMAIL', 'testemail@example.com'); 


then uncomment it and replace with:

PHP Code:

define('TEST_MODE'false);
define('TEST_EMAIL'''); 



---- OR -----

2. In the 'send_review_reminders.php' file find the following part of code:
PHP Code:

$result func_acr_send_review_reminders(ORDERS_PER_LAUNCHTEST_MODETEST_EMAIL); 


and replace it with:

PHP Code:

$result func_acr_send_review_reminders(
    
func_constant('ORDERS_PER_LAUNCH'),
    
func_constant('TEST_MODE'),
    
func_constant('TEST_EMAIL')
); 


karina 11-20-2012 07:06 AM

Re: Review Reminder Email
 
Quote:

Originally Posted by Johnwiggity
Is there a language file that is associated with the email text?


The 'txt_acr_add_products_reviews' variable is used in this template.

By the way the content of this template can be changed with 'Edit templates' feature in your admin area:
<your_xcart_store>/admin/file_edit.php?dir=%2Fcommon_files%2Fmail%2Fhtml&fi le=%2Fcommon_files%2Fmail%2Fhtml%2Facr_review_remi nder.tpl

Quote:

Originally Posted by Johnwiggity
Also how would I go about testing the email?


Default email is:
http://help.x-cart.com/images/7/72/Acr_review_reminder_email.gif

In my test store I use the following part of code in the '<xcart_root_dir>/send_review_reminders.php' file:
PHP Code:

define('TEST_MODE'true);
define('TEST_EMAIL''mytestemail@example.com'); 


In test mode emails will be sent to the specified TEST_EMAIL only and for ALL orders. I do not recommend use it on the live store.

Johnwiggity 11-20-2012 07:20 AM

Re: Review Reminder Email
 
Thanks a lot!

John

not_so_young_greg 11-20-2012 07:40 AM

Re: Review Reminder Email
 
Thanks for quick reply. Yes, the second solution seems to work, I commented out the first two lines though. But it sent a reminder and inserted an Y into my database. Need to test it more but we are almost there.

But it still does not include mail templates. I receive a mail with only product listing and bottom signature. Link is ok.

I get this in my log:
Warning: Smarty error: unable to read resource: "skin/common_files/mail/salutation.tpl" in /var/www/...
but it is there and always has been.
Second, the mail template uses a different coding for some reason.
Could you help me with that?

Johnwiggity 11-20-2012 07:49 AM

Re: Review Reminder Email
 
One final question is that can I set the reviews.php page to nofollow to avoid SEO duplicate content?

John

karina 11-21-2012 05:37 AM

Re: Review Reminder Email
 
Quote:

Originally Posted by not_so_young_greg
Thanks for quick reply. Yes, the second solution seems to work, I commented out the first two lines though. But it sent a reminder and inserted an Y into my database. Need to test it more but we are almost there.



If TEST_MODE is 'true' then database is not updated. If TEST_MODE is 'false' then database will be updated with 'Y' in 'xcart_orders' table.

But you can delete these updates with the following SQL-queries:
PHP Code:

DELETE FROM xcart_product_review_reminders;
UPDATE xcart_orders SET review_reminder='N'


As you can see both queries are without any conditions, so ALL reminders that were sent earlier will be deleted. Be careful, use it on the test store only please.


---

Quote:

Originally Posted by not_so_young_greg
But it still does not include mail templates. I receive a mail with only product listing and bottom signature. Link is ok.

I get this in my log:
Warning: Smarty error: unable to read resource: "skin/common_files/mail/salutation.tpl" in /var/www/...
but it is there and always has been.
Second, the mail template uses a different coding for some reason.
Could you help me with that?


I suggest to compare reminder template with another one. As example with customer registration notification ('signin_notification.tpl') template, because it also includes 'salutation.tpl'. And also check that customer registration notification email is correct. May be it's the common issue?

But unfortunately I can't say more exactly what is wrong. It will be better if you contact with our support team via helpdesk, they will be glad to help you.


All times are GMT -8. The time now is 05:40 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.