Sends a reminder to logged in customers who have abandoned a shopping cart with items in it. The message will not be sent until the customer is logged off the site. You may set the number of hours to wait before sending the reminder.
Requirements: Zencart 1.5 or greater and the ability to set a cron job.
Cart Reminder is licensed under GPL. For complete terms of the license, see: http://www.gnu.org/licenses/licenses.html#GPL.
Installation instructions:
BACK UP YOUR DATABASE. Back up the header.php.php files in includes/modules/pages/create_account_success and includes/modules/pages/login
A reminder: We have done everything humanly possible to make this module easy for you to install, but you do so at your own risk and we do not provide support. You can report bugs at http://support.abovemedia.com
To install Cart Reminder, upload the files in the include folder to the appropriate directory of your server. The install directory structure is the same as Zen Cart. If you have modified the header_php.php files in the create_account_success or login directories, you will have to merge the changes. Don't forget to put the YOUR_ADMIN files into your admin folder, and the YOUR_TEMPLATE files into your template folder. Make sure that includes/languages/english/YOUR_TEMPLATE/define_cart_reminder.php has the same permissions as the other define files in the folder (Example: if you had to set the other define files to 777, be sure to change the new file to 777).
Upload cart_reminder_install.php to whatever directory your store is in and go to it in your browser. (Example: if your store is in the folder "shop", upload the install file to "shop" and then open your browser and go to yourdomain.com/shop/cart_reminder_install.php)
The administration settings page should be the last item on the configuration menu. When you go there for the first time, it will attempt to remove the install file. If it can't, you will have to remove it manually before you can access the settings.
Set up the cron
In order to have the reminders sent automatically, you must set up a cron job on your server.
Example Cron command (runs every hour):
0 * * * * cd ROOT_PATH_TO_YOUR_STORE_FILES; php cart_reminder_cron.php > /dev/null
If you aren't sure of the root path to your store files, you can generally find it in /includes/configure.php, it's the DIR_FS_CATALOG value.
Included files:
includes/functions/extra_functions/cart_reminder.php
includes/languages/english/cart_reminder.php
includes/languages/english/html_includes/YOUR_TEMPLATE/define_cart_reminder.php
includes/languages/english/html_includes/define_cart_reminder.php
includes/modules/pages/checkout_success/cart_reminder.php
includes/modules/pages/create_account_success/cart_reminder.php
includes/modules/pages/login/cart_reminder.php
YOUR_ADMIN/cart_reminder.php
YOUR_ADMIN/languages/english/cart_reminder.php
YOUR_ADMIN/languages/english/extra_definitions/cart_reminder.php
cart_reminder_install.php
cart_reminder_uninstall.php
readme.html
Available variables for mail templates:
{CUSTOMER_FIRSTNAME}
{CUSTOMER_LASTNAME}
{CUSTOMER_EMAIL_ADDRESS}
{SHOPPING_CART} Note: Plain text version of the items in the customer's cart
{HTML_SHOPPING_CART} Note: HTML version of the items in the customer's cart.
This should never be used on the define_cart_reminder page.
{WEBSITE_ADDRESS}
{STORE_NAME}
{STORE_TELEPHONE}
Changelog
Version 1.2 - 7/18/2013: Fixed issue with link to web site in Cron script not using the web folder (DIR_WS_CATALOG).
Version 1.1 - 2/23/2012: Fixed several sql statements in the install, uninstall and cron files which did not include the DB_PREFIX constant.