Recover Cart Sales
#1
Posted 26 November 2003 - 12:37 AM
If you are using Unsold Carts and are ready to move up from a report to a sales tool, then this is the next generation.
Originally this code was released in a thread on abandoned carts as scart.php. Over time the report from that thread became Unsold Carts and made it to a stable release in version 1.7. At that time the Unsold Carts 1.7 code was tacken and scarts was rewritten on that code base. That created version 1.0 of the Recover Cart Sales.
A pointer to the location in Contribs will follow.
(I needed to create this thread for the readme).
¿ Do you really know what is and isn't working in your store? ≡ ¤
#2
Posted 26 November 2003 - 01:06 AM
But to make it easy, I used zip.
http://www.oscommerce.com/community/contributions,1688
The code has been released.
¿ Do you really know what is and isn't working in your store? ≡ ¤
#3
Posted 26 November 2003 - 05:32 AM
#4
Posted 26 November 2003 - 07:25 AM
One of the most useful contibutions ever !
I discovered 66 Abandoned carts which I didn't know
were there ! Could contact all of them by the press of a
Button . this is amazing.
It will be nice to know what the actual E mail says somewhere !
without digging to find out in the code.
#5
Posted 26 November 2003 - 07:56 AM
valley, on Nov 25 2003, 11:25 PM, said:
One of the most useful contibutions ever !
I discovered 66 Abandoned carts which I didn't know
were there ! Could contact all of them by the press of a
Button . this is amazing.
It will be nice to know what the actual E mail says somewhere !
without digging to find out in the code.
New -> Thank you for stopping by STORE_NAME and considering us for your purchase. We noticed that in your visit to our store that you placed the following item(s) in your shopping cart, but did not complete the transaction with us. "\n\n" Cart Contents: "\n\n".'%s' . "\n\n" . 'We are always interested in knowing what happened and if there was a reason that you decided to not purchase with STORE_NAME at this time. If you could be so kind as to let us know if you had any issues or concerns, we would like to address them as getting this feedback from you and others is how we can help make your experience at STORE_NAME better. "\n\n" Again, thank you for your time and consideration in helping us make STORE_NAME "\n\n" STORE_OWNER ."\n".STORE_NAME . "\n". HTTP_SERVER .DIR_WS_CATALOG Customer -> Firstoff, we would like to thank you for having purchased from STORE_NAME in the past. Secondly, We noticed that in your visit to our store that you placed the following item(s) in your shopping cart, but did not complete the transaction with us. "\n\n" 'Cart Contents:'. "\n\n".'%s' . "\n\n" . 'We are always interested in knowing what happened and if there was a reason that you decided to not purchase with STORE_NAME at this time. If you could be so kind as to let us know if you had any issues or concerns, we would like to address them as getting this feedback from you and others is how we can help make your experience at STORE_NAME better. "\n\n". 'Again, thank you for your time and consideration in helping us make STORE_NAME ."\n\n". STORE_OWNER ."\n".STORE_NAME . "\n". HTTP_SERVER DIR_WS_CATALOG
The uppercase items are picked up from the defines (or the store configuration) The %s is the cart contents. All this is in the /languages/english php files... like I said, read the readme.
¿ Do you really know what is and isn't working in your store? ≡ ¤
#6
Posted 26 November 2003 - 08:43 AM
Now I want to help the german users with the german translation:
<?php
/*
$Id: recover_cart_sales.php,v 1.0 2003/11/23 21:01:31 $
Recover Cart Sales contrib: JM Ivler (c)
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Released under the GNU General Public License
*/
define('EMAIL_TTL', '90');
define('BASE_DAYS', '10');
define('EMAIL_SEPARATOR', '------------------------------------------------------');
define('EMAIL_TEXT_SUBJECT', 'Anfrage von '. STORE_NAME );
define('EMAIL_TEXT_NEWCUST', "\n\n".'Vielen Dank für Ihren Besuch bei ' . STORE_NAME . ' und Ihr uns entgegengebrachtes Vertrauen. Wir haben gesehen, daß Sie bei Ihrem Besuch in unserem Onlineshop den Warenkorb mit folgenden Artikeln gefüllt haben aber den Einkauf nicht vollständig durchgeführt haben. ' . "\n\n" . 'Inhalt Ihres Warenkorbes:'."\n\n".'%s' . "\n\n" . 'Wir sind immer bemüht unseren Service im Interesse unserer Kunden zu verbessern. Aus diesem Grund interessiert es uns natürlich, was die Ursachen dafür waren, Ihren Einkauf dieses Mal nicht bei '. STORE_NAME . ' zu tätigen. Wir wären Ihnen daher sehr dankbar, wenn Sie uns mitteilen würden, ob Sie bei Ihrem Besuch in unsererm Onlineshop Probleme oder Bedenken hatten den Einkauf erfolgreich abzuschließen. Uns Ziel ist es Ihnen und anderen Kunden den Einkauf bei '. STORE_NAME . ' leichter und besser zu gestalten. '."\n\n". 'Nochmals, vielen Dank für Ihre Zeit und Ihre Hilfe den Onlineshop von '. STORE_NAME . ' zu verbessern.' . "\n\n". 'Mit freundlichen Grüßen' . "\n". 'Ihr Team von ' . STORE_NAME . "\n". HTTP_SERVER . DIR_WS_CATALOG . "\n");
define('EMAIL_TEXT_CUST', "\n\n".'Vielen Dank für Ihren erneuten Besuch bei ' . STORE_NAME . ' und Ihr wiederholtes uns entgegengebrachtes Vertrauen. Wir haben gesehen, daß Sie bei Ihrem Besuch in unserem Onlineshop den Warenkorb mit folgenden Artikeln gefüllt haben aber den Einkauf nicht vollständig durchgeführt haben. ' . "\n\n" . 'Inhalt Ihres Warenkorbes:'."\n\n".'%s' . "\n\n" . 'Wir sind immer bemüht unseren Service im Interesse unserer Kunden zu verbessern. Aus diesem Grund interessiert es uns natürlich, was die Ursachen dafür waren, Ihren Einkauf dieses Mal nicht bei '. STORE_NAME . ' zu tätigen. Wir wären Ihnen daher sehr dankbar, wenn Sie uns mitteilen würden, ob Sie bei Ihrem Besuch in unsererm Onlineshop Probleme oder Bedenken hatten den Einkauf erfolgreich abzuschließen. Uns Ziel ist es Ihnen und anderen Kunden den Einkauf bei '. STORE_NAME . ' leichter und besser zu gestalten. '."\n\n". 'Nochmals, vielen Dank für Ihre Zeit und Ihre Hilfe den Onlineshop von '. STORE_NAME . ' zu verbessern.' . "\n\n". 'Mit freundlichen Grüßen' . "\n". 'Ihr Team von ' . STORE_NAME . "\n". HTTP_SERVER . DIR_WS_CATALOG . "\n");
define('HEADING_TITLE', 'Recover Cart Sales v1.0');
define('DAYS_FIELD_PREFIX', 'Zeige letzen ');
define('DAYS_FIELD_POSTFIX', ' Tage ');
define('DAYS_FIELD_BUTTON', 'Anzeigen');
define('TABLE_HEADING_DATE', 'Datum');
define('TABLE_HEADING_CONTACT', 'kontaktieren?');
define('TABLE_HEADING_CUSTOMER', 'Kunden Name');
define('TABLE_HEADING_EMAIL', 'E-Mail');
define('TABLE_HEADING_PHONE', 'Telefon');
define('TABLE_HEADING_MODEL', 'Artikel');
define('TABLE_HEADING_DESCRIPTION', 'Beschreibung');
define('TABLE_HEADING_QUANTY', 'Menge');
define('TABLE_HEADING_PRICE', 'Preis');
define('TABLE_HEADING_TOTAL', 'Summe');
define('TABLE_GRAND_TOTAL', 'Summe netto Gesamt: ');
define('TABLE_CART_TOTAL', 'Summe netto: ');
define('PSMSG', 'Zusätzliche Nachricht (PS) am Ende der Mail: ');
?>
<?php
/*
$Id: report_recover_cart_sales.php,v 2.0 2003/10/24 21:01:31 $
report_recover_cart_sales contrib: JM Ivler 11/23/03
(c) Ivler/ osCommerce
http://www.oscommerce.com
Released under the GNU General Public License
*/
define('BASE_DAYS', '3');
define('HEADING_TITLE', 'Recover Cart Sales Report v1.0');
define('DAYS_FIELD_PREFIX', 'Zeige die letzen ');
define('DAYS_FIELD_POSTFIX', ' Tage ');
define('DAYS_FIELD_BUTTON', 'OK');
define('TABLE_HEADING_CUSTOMER', 'KUNDEN NAME');
define('RECORDS', 'In Überprüfung befindliche Datensätze:');
define('SALES', 'Verkäufe:');
?>
Gruß Matthias
#7
Posted 26 November 2003 - 08:11 PM
The Readme file said the PS mesage would be after the signature...
(This was tested on a customer acount that had previosly made a purchase from the store)
#8
Posted 26 November 2003 - 08:19 PM
ahearn, on Nov 26 2003, 12:11 PM, said:
¿ Do you really know what is and isn't working in your store? ≡ ¤
#9
Posted 27 November 2003 - 07:36 PM
PS I was wondering if this is allowed, looking up what customer havent puchased and sending them a reminder. E-Commerce Laws??
Steven
#10
Posted 27 November 2003 - 08:53 PM
Great job, Met00!
I have just posted on the contributions site un updated package that contains polish and german (by bodyfeelings) translations. I also have moved some things to the language files, namely the "Send e-mail" button description and the "Back to report" text.
By the way, on my site the contrib DOES put the PS message after the signature, contrary to what ahearn suggested.
#11
Posted 27 November 2003 - 09:57 PM
Examined Records: 0
Sales: 0
And it doesn't matter how much days I check.
I know there is my test abadoned cart and it's not showing.
The scart database is empty. (Just as it was when it was added).
Could anyone help me?
Thanks in advance.
Kind regards,
Raul
#12
Posted 28 November 2003 - 12:31 AM
p-r, on Nov 27 2003, 12:53 PM, said:
¿ Do you really know what is and isn't working in your store? ≡ ¤
#13
Posted 28 November 2003 - 12:32 AM
raul, on Nov 27 2003, 01:57 PM, said:
Examined Records: 0
Sales: 0
And it doesn't matter how much days I check.
I know there is my test abadoned cart and it's not showing.
The scart database is empty. (Just as it was when it was added).
Could anyone help me?
Thanks in advance.
Kind regards,
Raul
¿ Do you really know what is and isn't working in your store? ≡ ¤
#14
Posted 28 November 2003 - 12:57 AM
Quote
I did write the name of the table in the application_top.php.
I checked the customer cart table and there are carts (but no final price) and date.
My shop is MS2. Only polish languge and the date format is changed to d m Y. Maybe that's the problem?
Kind regards,
Raul
Edited by raul, 28 November 2003 - 01:01 AM.
#15
Posted 28 November 2003 - 06:01 AM
the new SQL table
CREATE TABLE `scart` (
`scartid` INT( 11 ) NOT NULL AUTO_INCREMENT,
`customers_id` INT( 11 ) NOT NULL ,
`dateadded` VARCHAR( 8 ) NOT NULL ,
PRIMARY KEY ( `scartid` )
);
and then later says
Create the database table scart
I have no idea where or how to create this database. After hours of searching and reading, I am hoping that someone here can lend a hand. I think that this is all that is left for me to do to get this contribution up and running. Thanks.
#16
Posted 28 November 2003 - 07:16 AM
This is a fantastic contribution! Thanks for you hard work!
Do you use VJ's Link Manager, by chance? If so, have you considered adding the email and color coding to his admin reports? I've managed to hack together several canned emails to use with the Links Mgr mod, along with a modified report, but I don't have the ability to color code in any meaningful way or select multiple contacts to send a "personalized" form letter in bulk.
Thanks again for a great mod!
Lee
#17
Posted 28 November 2003 - 09:03 AM
JanetMor, on Nov 27 2003, 10:01 PM, said:
the new SQL table
CREATE TABLE `scart` (
`scartid` INT( 11 ) NOT NULL AUTO_INCREMENT,
`customers_id` INT( 11 ) NOT NULL ,
`dateadded` VARCHAR( 8 ) NOT NULL ,
PRIMARY KEY ( `scartid` )
);
and then later says
Create the database table scart
I have no idea where or how to create this database. After hours of searching and reading, I am hoping that someone here can lend a hand. I think that this is all that is left for me to do to get this contribution up and running. Thanks.
¿ Do you really know what is and isn't working in your store? ≡ ¤
#18
Posted 28 November 2003 - 09:05 AM
raul, on Nov 28 2003, 12:57 AM, said:
I did write the name of the table in the application_top.php.
I checked the customer cart table and there are carts (but no final price) and date.
My shop is MS2. Only polish languge and the date format is changed to d m Y. Maybe that's the problem?
Kind regards,
Raul
I'm using polish translation (exactly the one posted in the contribution section), have d-m-y date format and everything works fine for me. Maybe you don't see any carts in recover_cart_sales.php simply because there was nobody who put items in the cart and didn't finished the checkout procedure?
My hint: set up a account by yourself, put something in the cart and then check the recover carts in the admin section once again.
#19
Posted 28 November 2003 - 09:06 AM
Edited by p-r, 28 November 2003 - 09:07 AM.
#20
Posted 28 November 2003 - 09:07 AM
LeeH, on Nov 27 2003, 11:16 PM, said:
This is a fantastic contribution! Thanks for you hard work!
Do you use VJ's Link Manager, by chance? If so, have you considered adding the email and color coding to his admin reports? I've managed to hack together several canned emails to use with the Links Mgr mod, along with a modified report, but I don't have the ability to color code in any meaningful way or select multiple contacts to send a "personalized" form letter in bulk.
Thanks again for a great mod!
Lee
¿ Do you really know what is and isn't working in your store? ≡ ¤









