| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Review Reminder Email | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||
|
|||||||
Re: Review Reminder Email
Hi Karina,
I've checked the functions that you identified in post #27 and in both the $sql_tbl array has been defined. I've also added the require get_language.php mod that you have prescribed and still get the SQL error if the interval is set for 9 days, but I know this change was required for the subject line fault, which I had noticed in customers' emails that had been rejected by their mail service and bounced back to me. Just an observation: Running send_review_reminders.php with the above mod found 487 emails to send that were not found yesterday!! Would you have expected this or should I take a closer look at my SQL problem?
__________________
X-Cart GOLD Plus v4.5.4 CDSEO Pro ewdhosting Dedicated Server Dedicated SSL Stone Edge OM |
|||||||
#32
|
|||||||
|
|||||||
Re: Review Reminder Email
Here is an example of what the subject line looks like thanks to a customer using a waitlist:
Quote:
This was generated after I had included the above mod.
__________________
X-Cart GOLD Plus v4.5.4 CDSEO Pro ewdhosting Dedicated Server Dedicated SSL Stone Edge OM |
|||||||
#33
|
|||||||||
|
|||||||||
Re: Review Reminder Email
Quote:
Below is investigation about possible reason of SQL error. 1. The mentioned SQL-error is from include/func/func.order.php, 3144: SQL query : SELECT product, descr, fulldescr FROM WHERE productid = '2404' LIMIT 1 /home/xxx/public_html/include/func/func.order.php:3144 Let's have a look at this line of code: PHP Code:
This is the 'func_translate_products()' function. It's used for every type of emails to customer in X-Cart. 2. From SQL error we can make a conclusion that '$sql_tbl['products_lng_' . $code]' is not set. It means that $code contains some language code that is not presented in the store. The $code is taken from 'language' column of 'xcart_orders' table. So the possible reason is: there are some orders with language that don't have assosiated tables in database. But I cannot say exactly why. May be there was some language and later it was removed? Check your 'xcart_orders' table with MySQL query: Code:
Code:
Quote:
I'm not sure that SQL-error and number of emails are connected. It can be caused by the limitation in the 'send_review_reminders.php': PHP Code:
__________________
Karina Lipnyagova The "Advanced Customer Reviews", "Root Categories" and "Pop-up Anywhere" author |
|||||||||
|
#34
|
|||||||
|
|||||||
Re: Review Reminder Email
Hi Karina, I think you've solved my problem
The xcart_orders table had a mix of languages, 'en' and 'US' - and for us the correct language is 'en', for which we have products_lng_en table but we don't have a 'products_lng_US table. Clearly the mix-up occurred during database upgrade and syncing because new orders since going live have language = 'en'. It all makes perfect sense, because when I set the delay period to 3 days I set the first order number to be since the upgraded site went live, so language would have been 'en' and no SQL error raised. So you are right that 9 days or 3 days made no difference. When I used 9 days I set first order to be from the "old" site. I shall update the xcart_orders table to set all orders to 'en' and report back. At the risk of being premature - thank you very much I hear what you say about only 500 orders being checked at a time - that's good.
__________________
X-Cart GOLD Plus v4.5.4 CDSEO Pro ewdhosting Dedicated Server Dedicated SSL Stone Edge OM |
|||||||
#35
|
|||||||
|
|||||||
Re: Review Reminder Email
Karina,
Updating my xcart_orders.language column has fixed my SQL error. Thank you. But, I'm still not seeing a sensible subject line in the outgoing email reminder, I'm seeing things like: Subject:=?UTF-8?B?RGVhciBUcmFjeSwgeW91ciBvcGluaW9uIG1hdHRlcnMgdG 8gRGFuY2VtYW5pYSBEYW5jZXdlYXI=?=
__________________
X-Cart GOLD Plus v4.5.4 CDSEO Pro ewdhosting Dedicated Server Dedicated SSL Stone Edge OM |
|||||||
#36
|
|||||||||
|
|||||||||
Re: Review Reminder Email
Quote:
Please check your file 'modules/Advanced_Customer_Reviews/func.php'. There is the function func_acr_send_review_reminder(). Two global variables are responsible for right encoding, $to_customer and $all_languages. These variables should be presented in the function. Please, check if they are there. The code is below: PHP Code:
Let me know about results.
__________________
Karina Lipnyagova The "Advanced Customer Reviews", "Root Categories" and "Pop-up Anywhere" author |
|||||||||
#37
|
|||||||
|
|||||||
Re: Review Reminder Email
Hi Karina,
No, they are both abscent: $to_customer, $all_languages are not declared as global.
__________________
X-Cart GOLD Plus v4.5.4 CDSEO Pro ewdhosting Dedicated Server Dedicated SSL Stone Edge OM |
|||||||
#38
|
|||||||
|
|||||||
Re: Review Reminder Email
Quote:
Karina, FYI, this is absent from my installation as well. My ACR came with 4.5.4 gold plus distribution. I can confirm that the file that came in 4.5.4 goldplus, looks like this: line 467 PHP Code:
But I don't think I am having the same problem. At least my customers have not said anything and I am sending many review reminders daily. I don't recall seeing this issue during testing. ???
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#39
|
|||||||
|
|||||||
Re: Review Reminder Email
Karina,
I added $to_customer and $all_languages to the Global declarations and the subject line is still not correct. Interestingly, when in Test Mode the subject is correct.
__________________
X-Cart GOLD Plus v4.5.4 CDSEO Pro ewdhosting Dedicated Server Dedicated SSL Stone Edge OM |
|||||||
#40
|
|||||||||
|
|||||||||
Re: Review Reminder Email
To summarize up:
================= "How to fix wrong encoding in review reminder email?" 1. Open your '<xcart_dir>/send_review_reminders.php' file and found this part of code: PHP Code:
and replace it with: PHP Code:
2. Open your '<xcart_dir>/modules/Advanced_Customer_Reviews/func.php' file and found this part of code: PHP Code:
and replace it with: PHP Code:
3. In the '<xcart_dir>/modules/Advanced_Customer_Reviews/func.php' file found this part of code: PHP Code:
and replace it with: PHP Code:
=================
__________________
Karina Lipnyagova The "Advanced Customer Reviews", "Root Categories" and "Pop-up Anywhere" author |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|