Difference between revisions of "X-Cart:X-ProductNotifications"

From X-Cart 4 Classic
Jump to: navigation, search
m
m
Line 124: Line 124:
 
* 'Back in stock' notifications: Product quantity in stock becomes greater than 0 (zero).
 
* 'Back in stock' notifications: Product quantity in stock becomes greater than 0 (zero).
 
* 'Low stock' notifications: Product quantity in stock becomes smaller than the value of the <u>Minimal product available amount for low-stock notifications</u> field.
 
* 'Low stock' notifications: Product quantity in stock becomes smaller than the value of the <u>Minimal product available amount for low-stock notifications</u> field.
* 'Price drop' notifications: Product price decreases compared to the time when the 'Price drop' notification subscription was set up + (for further notifications) Product price decreases compared to the time when the previous 'Price drop' notification was sent.
+
* 'Price drop' notifications: Product price decreases compared to the time when the 'Price drop' notification subscription was set up.
  
 
By default, 'Back in stock' and 'Low stock' notifications are sent only once, after which the customer's subscription is automatically terminated by the system. As for the 'Price drop' notifications, by default they can be sent as many times as the price decreases; the customers remain subscribed to the notification until they choose to cancel their subscription using the unsubscribe link in one of the 'Price drop' notificaion email messages or are unsubscribed by the store's personnel with notification subscription management privileges.
 
By default, 'Back in stock' and 'Low stock' notifications are sent only once, after which the customer's subscription is automatically terminated by the system. As for the 'Price drop' notifications, by default they can be sent as many times as the price decreases; the customers remain subscribed to the notification until they choose to cancel their subscription using the unsubscribe link in one of the 'Price drop' notificaion email messages or are unsubscribed by the store's personnel with notification subscription management privileges.

Revision as of 10:26, 2 July 2012

X-Cart 4.5or above

Overview

X-ProductNotifications is a module that enables three types of product notifications for which your customers can sign up to stay tuned with your store's inventory updates:

  • Price-drop notifications. These are used to alert subscribed customers whenever the price for the product they are interested in goes down.
  • Low-stock notifications. These are sent to subscribed customers when the product is about to run out of stock, and there are just a few items left.
  • Back in stock notifications. These are sent to subscribed customers when an out-of-stock item becomes available again.

The module works with product variations (like "T-shirt, Size M, Black") as well as with regular products.


The store administrator enables the module and controls its configuration. For example, he or she can define which types of inventory notifications should be enabled in the store, which type of pages (just product details, or both product details and product list pages) should have links (buttons) for notification sign up, etc.

Depending on the module settings, the product nofications links (buttons) in Customer area can be displayed in the product list section (main column):

X-product notifications pl.png

or on product details pages:

X-product notifications pd.png


Existing notification subscriptions are managed by admin and (X-Cart PRO) provider users in the Product Notifications section of the store's back end (Catalog menu -> Product notifications). Users with notification management privileges can view existing notification subscriptions as a list, filter notifications by type / product name / email address and, if necessary, bulk cancel existing notification subscriptions.


X-product notifications admin area.png

System requirements for installing the X-ProductNotifications module

To be able to successfully install and use the X-ProductNotifications module, you must have a working copy of X-Cart Gold or X-Cart Pro v4.5.0 or later already installed on your server. Make sure that the version of the X-ProductNotifications module you are installing is the same as the version of X-Cart on which your store is based.

Note: If you do not remember the version of X-Cart on which your store is based, you can look it up in the Environment info section of the Summary page in X-Cart Admin area (Tools menu -> Summary).

Installing the X-ProductNotifications module

X-ProductNotifications installation process is the same for both X-Cart Gold and X-Cart Pro.

To install X-ProductNotifications:

  1. Obtain the X-ProductNotifications distribution package by downloading it from the File Area section of your X-Cart Account. The distribution package you need is contained in the archive file X-ProductNotifications-x.y.z-with-installer.tgz where x, y and z stand for X-Cart version (These need to match the version of X-Cart on which your store is based).
  2. Put the distribution package to the X-Cart root directory on your server or hosting account.
    • If you use a Windows-based server, or a UNIX-based server without terminal access:
    a) Decompress the archive with the X-ProductNotifications distribution package to a directory on your system using your favorite compression program (WinZIP or any other archiver with support for TAR files).
    b) Use an FTP client to upload all the files contained in the archive (retaining the directory structure) to the X-Cart root directory on your server or your hosting account.
    • If you use a UNIX-based server with terminal access:
    a) Use an FTP client to upload the archive with the distribution package to the X-Cart root directory on your server or your hosting account.
    b) Decompress the package using the following command:
    tar -xzvf X-ProductNotifications-x.y.z-with-installer.tgz
    Important: Make sure you keep the directory structure while unpacking and uploading the distribution package, otherwise some necessary files can be overwritten!
  3. In a web browser, run the installation script httр://<YOUR_XCART_DOMAIN>/install-product-notifications.php, replacing <YOUR_XCART_DOMAIN> with the actual domain name of your X-Cart based store.
  4. Enter the Auth code, accept the License Agreement and click the Next button.
    Note: The Auth code is a random code that was generated after you installed your copy of X-Cart. If you do not remember the Auth code, find it in the Summary section of the X-Cart Admin area (Administration menu -> Summary) before the License info subsection. Another way to obtain the code is to retrieve the value of the variable $installation_auth_code from the file <xcart_dir>include/install.php
  5. The installation script copies the files and activates the module. Click the Next button to continue the installation.
  6. The installation script generates a new system fingerprint. Click the Next button to complete the installation.
  7. Use the ADMINISTRATOR AREA link to access the Admin area.

Enabling the X-ProductNotifications module

After the X-ProductNotifications installation has been completed, the module you have installed needs to be enabled in your store:

  1. In Admin area, go to the Modules section (Settings menu->Modules).
  2. Choose the Product Notifications module by selecting the respective check box on the left.
  3. Click the Apply changes button. This activates the module.

Configuring the X-ProductNotifications module

After the X-ProductNotifications module has been enabled in your store, you should check and adjust its configuration:

  1. In the Modules section (Settings menu->Modules), click the Configure link opposite the module name ('Product Notifications').
    The module configuration page (titled by the name of the module) opens:
    X-product notificatons configuration page.png
  2. Adjust the settings on the module configuration page as needed. Detailed information regarding the Product Notifications module configuration settings is available below.
  3. Click the Apply changes button to save the changes.

Product Notifications module configuration settings

Here are a few notes on the X-ProductNotifications module configuration settings:

General product notifications settings

  • Product notifications per page (in the admin area): Specify the number of notification subscription records that should be visible per page in the Product Notifications section in the Admin/Provider area(s) (Catalog menu -> Product notifications).

'Back in stock' notifications settings

  • Enable 'Back in stock' notifications: Select the checkbox to enable the 'Back in stock' type of notifications; this also adds 'Back in stock' notification sign up buttons/forms on the store's product details pages.
X-product notifications back in stock pd.png

'Back in stock' notifications regarding a specific product will be sent to subscribed customers when the product's quantity in stock (defined by the value of the Quantity in stock (items) field in the product details) is greater than 0 (zero) and exceeds the product's minimum order quantity (as defined by the value of the Minimum order quantity field in the product details).

  • Show notification request forms in the product list: Select the checkbox to add 'Back in stock' notification sign up buttons/forms on the store's product list pages.
X-product notifications back in stock pl.png

'Low stock' notifications settings

  • Enable 'Low stock' notifications: Select the checkbox to enable the 'Low stock' type of notifications; this also adds 'Low stock' notification sign up buttons/forms on the store's product details pages.
X-product notifications low stock pd.png
  • Show notification request forms in the product list: Select the checkbox to add 'Low Stock' notification sign up buttons/forms on the store's product list pages.
X-product notifications low stock pl.png
  • Minimal product available amount for low-stock notifications: Specify the low-stock limit for customer 'Low stock' notifications. 'Low stock' notifications will be sent to subscribed customers when the product's quantity in stock becomes smaller than the value defined by this field. Note that this value also has effect on the display of 'Low stock' notification sign up buttons/forms: for the products whose current quantity in stock is smaller than or equal to the value defined by this field, the notification sign up buttons/forms are not displayed.

'Price drop' notifications settings

  • Enable 'Price drop' notifications: Select the checkbox to enable the 'Price drop' type of notifications, this also adds 'Price drop' notification sign up buttons/forms on the store's product details pages.
X-product notifications price drop pd.png
  • Show notification request forms in the product list: Select the checkbox to add 'Price drop' notification sign up buttons/forms on the store's product list pages.
X-product notifications price drop pl.png

Adjusting the module's notification subscription termination behaviour (advanced)

When a customer signs up for a certain notification, a notification subscription is set up for them. This means that from this moment and until such time as the subscription is terminated, a notification message will be sent to the customer every time the condition for sending the respective notification occurs.

The conditions for sending product notifications are as follows:

  • 'Back in stock' notifications: Product quantity in stock becomes greater than 0 (zero).
  • 'Low stock' notifications: Product quantity in stock becomes smaller than the value of the Minimal product available amount for low-stock notifications field.
  • 'Price drop' notifications: Product price decreases compared to the time when the 'Price drop' notification subscription was set up.

By default, 'Back in stock' and 'Low stock' notifications are sent only once, after which the customer's subscription is automatically terminated by the system. As for the 'Price drop' notifications, by default they can be sent as many times as the price decreases; the customers remain subscribed to the notification until they choose to cancel their subscription using the unsubscribe link in one of the 'Price drop' notificaion email messages or are unsubscribed by the store's personnel with notification subscription management privileges.

If necessary, it is possible to change the default module behaviour regarding when and how subscriptions for product notifications should be terminated by adjusting some configuration settings in the file modules/Product_Notifications/config.php. The configuration settings that need to be adjusted use names like the following:

  • prod_notif_auto_unsubscribe_<notification type>
  • prod_notif_send_unsub_link_<notification type>

where the <notification type> part is one of the following notification type letter codes:

  • B for 'Back in stock';
  • L for 'Low stock';
  • P for 'Price drop'.

prod_notif_auto_unsubscribe_<notification type> can take the following values:

  • Y = Automatically unsubscribe the customer after the notification has been sent.
  • N = Keep the customer subscribed.

prod_notif_send_unsub_link_<notification type> can take the following values:

  • Y = Send an unsubscribe link in the notification message.
  • N = Do not send an unsubscribe link in the notification message.

For example, for 'Back in stock' notifications the default subscription termination behaviour is coded as follows:

$config['Product_Notifications']['prod_notif_auto_unsubscribe_B'] = 'Y';
$config['Product_Notifications']['prod_notif_send_unsub_link_B'] = 'N';

The default values for the notification unsubscribe configuration settings for the various types of product notifications are shown in the table below:

Notification type Auto unsubscribe Send unsubscribe link
Back in stock Y N
Low stock Y N
Price drop N Y