X-Cart:Email Notifications Options
Contents
Email Notifications
You can choose to automatically notify your store's users about different types of events by enabling the respective types of email notifications.
Any email notifications sent by your store can be changed/customized using X-Cart templates. These templates can be found under the following directories of your X-Cart installation:
X-Cart 4.4.х-4.5.х:
<xcart_dir>/skin/common_files/mail - plain text email templates
<xcart_dir>/skin/common_files/mail/html - html formatted email templates
X-Cart 4.3.2 and earlier versions:
<xcart_dir>/skin1/mail - plain text email templates
<xcart_dir>/skin1/mail/html - html formatted email templates
Note that some skins also have their own email templates located in the <xcart_dir>/skin/<skin_dir> folder, for example <xcart_dir>/skin/ideal_comfort/mail/html/order_invoice.tpl
See also:
Adjusting Email Notifications options
The 'General settings/Email Notifications options' page allows you to define which types of email notifications should be sent to the users of your store.
Site administrator notifications
Select all the notifications that you wish to be sent to the store administrator:
- Notify the site administrator by email if unallowed request to site occurs: If selected, the store administrator receives an email notification if the system detects a potentially harmful GET or POST request to the store site (which may be a sign of a hacker attack).
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
-- | -- |
- Notify the site administrator about SQL errors in the store by email: If selected, the store administrator receives notifications about any SQL errors that occur in the store.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
-- | -- |
- Login error notification to site administrator: If selected, the store administrator receives email notifications about failed login attempts to his administrator account.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/login_error.tpl
mail/login_error_subj.tpl |
mail/html/login_error.tpl
mail/login_error_subj.tpl |
- All login error notifications to site administrator: If selected, the store administrator receives email notifications about failed login attempts to customer, partner (Affiliate module) and provider (X-Cart PLATINUM or PRO) accounts.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
Same as for "Login error notification to site administrator" | Same as for "Login error notification to site administrator" |
- Notify the site administrator if the blowfish key is wrong: If selected, the store administrator receives an email notification if the value of the $blowfish_key variable in config.php is changed. Important: You should remember that the Blowfish key must never be changed by editing config.php. The notification enabled by the option 'Notify the site administrator if the blowfish key is wrong' was implemented in X-Cart to help you track down the change if it happens by accident. It is recommended that you keep this notification enabled. If you receive a notification saying the blowfish key is wrong, you should open config.php for editing and replace the wrong blowfish key value with the correct one.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/wrong_bf_key.tpl
mail/wrong_bf_key_subj.tpl |
mail/html/wrong_bf_key.tpl
mail/wrong_bf_key_subj.tpl |
Orders department notifications
Select all the notifications which you want to be sent to the orders department of your store:
- 'Order is placed' notification to orders department: If selected, a notification is sent to the store orders department when an order gets initially placed using an online payment method. The order gets the status 'I' (Not finished), which means the transaction is neither failed nor successful yet.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/order_notification_admin.tpl
mail/init_order_notification_subj.tpl |
mail/html/order_notification_admin.tpl
mail/init_order_notification_subj.tpl |
- 'Order is queued/pre-authorized' notification to orders department: If selected, an email notification is sent to the store orders department when an order gets initially placed using an offline payment method and gets the status 'Q' (Queued), or when an order being placed using an online payment method gets the status 'A' (Pre-authorized).
Plain text mail templates for 'Order is queued' notification | HTML mail templates for 'Order is queued' notification |
---|---|
mail/order_notification_admin.tpl
mail/order_notification_subj.tpl |
mail/html/order_notification_admin.tpl
mail/order_notification_subj.tpl |
Plain text mail templates for 'Order is pre-authorized' notification | HTML mail templates for 'Order is pre-authorized' notification |
---|---|
mail/preauth_order_notification.tpl
mail/preauth_order_notification_subj.tpl |
mail/html/preauth_order_notification.tpl
mail/preauth_order_notification_subj.tpl |
- 'Order is processed' notification to orders department: If selected, a notification is sent to the orders department of your store when an order gets the status 'P' (Processed).
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/order_notification tpl
mail/order_notification_subj.tpl |
mail/html/order_notification tpl
mail/order_notification_subj.tpl |
- Enable low limit warning to orders department: If selected, a low limit warning message is sent to the orders department when the quantity in stock of any of the products reaches the 'low limit'.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/lowlimit_warning_notification_admin.tpl
mail/lowlimit_warning_notification_subj.tpl |
mail/html/lowlimit_warning_notification_admin.tpl
mail/lowlimit_warning_notification_subj.tpl |
Users department notifications
Select all the notifications which you want to be sent to the users department of your store:
- 'Profile is created' notification to users department: If selected, a notification is sent to the users department when a new user profile gets created.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/signin_admin_notification.tpl
mail/signin_admin_notif_subj.tpl |
mail/html/signin_admin_notification.tpl
mail/signin_admin_notif_subj.tpl |
- 'Profile is modified' notification to users department: If selected, a notification is sent to the users department when a user profile gets modified.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/profile_admin_modified.tpl
mail/profile_admin_modified_subj.tpl |
mail/html/profile_admin_modified.tpl
mail/profile_admin_modified_subj.tpl |
- 'Profile is deleted' notification to users department: If selected, a notification is sent to the users department when a user profile gets deleted.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/profile_admin_deleted.tpl
mail/profile_admin_deleted_subj.tpl |
mail/html/profile_admin_deleted.tpl
mail/profile_admin_deleted_subj.tpl |
Provider notifications
Select all the notifications which you want to be sent to the store provider(s):
- Send email notifications about placed orders to providers who uploaded the purchased products (in addition to the orders department): If selected, when an order gets initially placed, notifications are sent not only to the orders department, but also to individual providers who own the products included into the order.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/order_notification.tpl
mail/order_notification_subj.tpl |
mail/html/order_notification.tpl
mail/order_notification_subj.tpl |
- 'Order is processed' notification to provider: If selected, a notification is sent to the provider when an order gets processed.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/order_notification tpl
mail/order_notification_subj.tpl |
mail/html/order_notification tpl
mail/order_notification_subj.tpl |
- Low limit warning to provider: If selected, a notification is sent to the provider when the quantity in stock of any of his products reaches the 'low limit'.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/lowlimit_warning_notification_admin.tpl
mail/lowlimit_warning_notification_subj.tpl |
mail/html/lowlimit_warning_notification_admin.tpl
mail/lowlimit_warning_notification_subj.tpl |
- 'Provider profile is created' notification to profile owner: If selected, any user for whom a provider profile is created receives the 'Provider profile is created' notification.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/signin_provider_notif.tpl
mail/signin_notification_subj.tpl |
mail/html/signin_provider_notif.tpl
mail/signin_notification_subj.tpl |
- 'Provider account is approved' notification to provider: If selected, any user whose provider profile is approved receives the 'Provider profile is approved' notification.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/provider_approved.tpl
mail/provider_approved_subj.tpl |
mail/html/provider_approved.tpl
mail/provider_approved_subj.tpl |
- 'Provider account is declined' notification to provider: If selected, any user whose provider profile is declined receives the 'Provider profile is declined' notification.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/provider_declined.tpl
mail/provider_declined_subj.tpl |
mail/html/provider_declined.tpl
mail/provider_declined_subj.tpl |
Customer notifications
Select all the customer notifications that you want to be sent:
- Enable email notifications for customers about placed orders (online payment methods): If selected, a customer gets a notification when his or her order gets initially placed using an online payment method. The order gets the status 'I' (Not finished), which means that the transaction is neither failed nor successful yet.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/init_order_customer.tpl
mail/init_order_customer_subj.tpl |
mail/html/init_order_customer.tpl
mail/init_order_customer_subj.tpl |
- 'Order is processed' notification to customer: If selected, a customer gets a notification when his or her order gets processed (the status 'P' or Processed).
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/order_customer_processed.tpl
mail/order_cust_processed_subj.tpl |
mail/html/order_customer_processed.tpl
mail/order_cust_processed_subj.tpl |
- 'Order is completed' notification to customer: If selected, a customer gets a notification when his or her order gets completed (the status 'C' or Complete).
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/order_customer_complete.tpl
mail/order_cust_complete_subj.tpl |
mail/html/order_customer_complete.tpl
mail/order_cust_complete_subj.tpl |
- 'Order is declined' notification to customer: If selected, a customer gets a notification when his or her order gets declined (the status 'D' or Declined).
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/decline_notification.tpl
mail/decline_notification_subj.tpl |
mail/html/decline_notification.tpl
mail/decline_notification_subj.tpl |
- 'Order is queued/pre-authorized' notification to customer: If selected, a customer gets a notification when his or her order gets initially placed using an offline payment method and gets the status 'Q' (Queued), or when his or her order being placed using an online payment method gets the status 'A' (Pre-authorized).
Plain text mail templates for 'Order is queued' notification | HTML mail templates for 'Order is queued' notification |
---|---|
mail/order_customer.tpl
mail/order_customer_subj.tpl |
mail/html/order_customer.tpl
mail/order_customer_subj.tpl |
Plain text mail templates for 'Order is pre-authorized' notification | HTML mail templates for 'Order is pre-authorized' notification |
---|---|
mail/preauth_order_customer.tpl
mail/preauth_order_customer_subj.tpl |
mail/html/preauth_order_customer.tpl
mail/preauth_order_customer_subj.tpl |
- 'Profile is created' notification to profile owner: If selected, an owner of a user profile gets a notification when his or her user profile gets created.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/signin_notification.tpl
mail/signin_notification_subj.tpl |
mail/html/signin_notification.tpl
mail/signin_notification_subj.tpl |
- 'Profile is modified' notification to profile owner: If selected, an owner of a user profile gets a notification when his or her user profile gets modified.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/profile_modified.tpl
mail/profile_modified_subj.tpl |
mail/html/profile_modified.tpl
mail/profile_modified_subj.tpl |
- 'Profile is deleted' notification to profile owner: If selected, an owner of a user profile gets a notification when his or her user profile gets deleted.
Plain text mail templates for this notification | HTML mail templates for this notification |
---|---|
mail/profile_deleted.tpl
mail/profile_deleted_subj.tpl |
mail/html/profile_deleted.tpl
mail/profile_deleted_subj.tpl |
FAQ
Q: When an order fails (is declined by payment gateway), the inventory stays not decreased, but the administrator receives the low limit notification email entitled "Product #1 quantity decreased!" Don't understand, why?
A: Let's say, you have 3 items in stock, and the low limit is 2.
- A customer adds 1 item to cart, then goes to checkout.
- When the customer clicks on Submit button at the last checkout page, a new order is created with status "Not finished", and the product's quantity in stock is decreased by 1. The product quantity in stock is decreased in order to prevent the situation when 2 customers simultaneously purchase the last item of the same product in the store.
- The low limit notification email is sent to the store administrator.
- If the order fails (for example, due to the customer's credit card being declined by the payment gateway), the order status is changed to "Failed", and the quantity is increased back to its original value.
For more information about order statuses please refer to: Statuses of orders paid for by online payment methods.