New Zenner
- Join Date:
- Jan 2006
- Location:
- New York
- Posts:
- 14
- Plugin Contributions:
- 0
Recover Cart [Support Thread]
Thank you so much for the help. I totally appreciate it!
Denise
Views: 219,165
New Zenner
Thank you so much for the help. I totally appreciate it!
Denise
New Zenner
Hi, I have downloaded this mod, and I have to say its such an excellent idea!
I am wanting to change the email, so its slightly more relevant for our shop and more personal.
I have found where the email is created (shop/admin/includes/languages/english/recover_cart_sales.php) so no problem editing the actual text there.
The one thing I want to remove is the shopping cart contents that appears in the email between 'EMAIL_TEXT_BODY_HEADER' and 'EMAIL_TEXT_BODY_FOOTER'. I was wondering someone could tell me which bit of code (and where) I need to delete to remove the contents of the shopping cart from the email.
New Zenner
I think you may find that the fix suggests you add $cust_array = array(); below the $custlist = ''; and not replace that line.........
bigjoed:
On your file admin/stats_recover_cart_sales.php replace the following code on line 96:
$custlist = '';
Replace with:
$cust_array = array();
It was posted here.
Totally Zenned
For ZenCart Version 1.3.8a the following install worked for me:
From the ZenCart Downloads section:
Download and install "Recover Cart Sales" V3.0 August 12 2007.
Modify admin/stats_recover_cart_sales.php as follows:
find around line 96:
$custlist = '';
change to:
$custlist= '';
$cust_array = array();
Modify admin/recover_cart_sales.php as follows:
Find around line 381:
if ((time()-(RCS_EMAIL_TTL*24*60*60)) <= strtotime($basket->fields['datemodified'])) {
change to:
if ($basket->fields['datemodified'] != '' && (time()-(RCS_EMAIL_TTL*24*60*60)) <= strtotime($basket->fields['datemodified'])) {
These modifications are the same as posted by Andrew Berezin in post #199. I can confirm that this modification works with ZenCart version 1.3.8a with the listed modifications installed.
Zen Follower
I have this installed with 1.38 and have applied the patches. When testing, existing customers receive the EMAIL_TEXT_NEWCUST_INTRO rather than the EMAIL_TEXT_CURCUST_INTRO.
Can someone confirm that EMAIL_TEXT_CURCUST_INTRO is being sent on their install?
Totally Zenned
If you receive an error message on line 153 of stats_recover_cart_sales.php regarding an invalid argument supplied for the foreach() function, then before line 119:
if (!$orders->EOF) {
$custknt++;
$total_recovered += $orders->fields['value'];
$cust_array[$custknt] = array_merge($scart->fields, $orders->fields);
}
add:
$cust_array = array();
New Zenner
Hi,
I have been editing the recover_cart_sales.php to customize the email sent out. I do want to make it more personal by having the customers first name only. Can anyone help with how I can achieve this. TIA
Totally Zenned
i have the fllowing error on the reports tool of this mod. getting this error,
Warning: Invalid argument supplied for foreach() in /public_html/store/admin/stats_recover_cart_sales.php on line 153
this is in the Amount section of the table. This is a fress install on 1.3.7. is this error because the mod has no detils to work with yet or is it a problem??
Sensei
Perhaps scrolling up 2 posts might give you the answer you're seeking?
Totally Zenned
fixed thanks, i did see the post but thought i would post the whole error code as this help people searching for the error code etc :D
Zen Follower
naturalolive:
Hi,
I have been editing the recover_cart_sales.php to customize the email sent out. I do want to make it more personal by having the customers first name only. Can anyone help with how I can achieve this. TIA
I would really like to know the answer to this, too. Using the last name in emails is just WAY too impersonal for my customers, too.
Any help is welcomed and appreciated.
Zencart ROCKS!
Totally Zenned
So as to not confuse anyone, my post had a mistake. The change should be added before the loop at around line 97 as someone else had mentioned.
Totally Zenned
numinix:
So as to not confuse anyone, my post had a mistake. The change should be added before the loop at around line 97 as someone else had mentioned.
which fix are you refering to??
New Zenner
Hi PPL
Thanks for this great contribution... simple question does this work on Zen Cart Version 1.3.8 and if not are there any plans or release date for recover cart sales for this version
Thanks
Totally Zenned
Doodlebuckets:
Well, I fixed the closing of the email to have what I want. But the link to the product that the customer had in their cart is something I don't think I will ever get because it's a database query. The code is:
For the product in question, the link that is generated in the email is:
1 x Valentine Teddy Bear
giftsofcharacter.com/catalog/index.php?main_page=product_info&products_id=395:c092a7870d3e389151055a5cba2da44fIf you take off the ":c092a7870d3e389151055a5cba2da44f" part of the URL, it goes to the right place. How do I get rid of the extra stuff on the URL? I think it is probable that if a customer were to click that link to go back and purchase and it goes to an error page, they are much less likely to buy.
I've the same issue: where's the solution?
Totally Zenned
100asa:
I've the same issue: where's the solution?
I'll grant that it's not a pretty looking url but it works just fine. It won't give an error unless something else is wrong with your site.
With all do respect, if this is the top of your to-do list, I envy you.
Totally Zenned
jeking:
I'll grant that it's not a pretty looking url but it works just fine. It won't give an error unless something else is wrong with your site.
With all do respect, if this is the top of your to-do list, I envy you.
Unfortunately, as Doodlebuckets said, if customer click the complete url
giftsofcharacter.com/catalog/index.php?main_page=product_info&products_id=395:c092a7870d3e389151055a5cba2da44 f
it goes on error page
Totally Zenned
100asa:
Unfortunately, as Doodlebuckets said, if customer click the complete url
giftsofcharacter.com/catalog/index.php?main_page=product_info&products_id=395:c092a7870d3e389151055a5cba2da44 f
it goes on error page
That's not how I read her post. She wrote 'I think it is probable that if a customer were to click that link to go back and purchase and it goes to an error page, they are much less likely to buy.'
'if' it was an error page. Try the link, it goes to the product page not an error.
Totally Zenned
sometimes, as this email, I've this link:
http://www.100asa.it/index.php?main_page=product_info&products_id=1895:8dba468e673d03b12eae4108dfcd5a2b
as you see, it goes on page not found.
If I cut the :8dba468e673d03b12eae4108dfcd5a2b, it goes well.
Totally Zenned
100asa:
sometimes, as this email, I've this link:
http://www.100asa.it/index.php?main_page=product_info&products_id=1895:8dba468e673d03b12eae4108dfcd5a2b
as you see, it goes on page not found.
If I cut the :8dba468e673d03b12eae4108dfcd5a2b, it goes well.
It looks like you've got an url rewrite mod installed. Oops, so does doodlebuckets. Maybe her version does not affect the links while yours does.
Does this happen with the links in all your emails or only some?
Fields marked required must be completed.
Tell staff why this post should be reviewed.