X-Cart:Infinite Scroll

From X-Cart 4 Classic
Jump to: navigation, search
X-Cart 4.3.0+

Overview

X-Cart's Infinite Scroll add-on module is a SEO friendly, quick, trendy Ajax-based extension which replaces boring pagination with Facebook-wall-like infinite scrolling to the pages of your X-Cart store. When you get to the bottom of the page it automatically loads more products.

In addition to stylish and convenient scrolling, it uses an adaptive number of products per line depending on monitor width -whatever display your customers use, standard or widescreen, the module will adjust the products list accordingly. 3 columns style is left in the past, use every inch of the customer’s monitor, display 4,5,6 - as many as possible - products per row.

Why Infinite Scroll?

Page speed - your customers no longer need to reload the entire page every time. Now that only the products are loaded (via Ajax), you save customer’s time. The faster the site, the better user experience, the more sales!

On top of that:

  • Products scrolling for 4 lists. You can enable the functionality for search results page, category products page, manufacturer products, featured products ( each type of pages is managed individually).
  • Pagination type selector. The customers may still switch to standard pagination they’re used to - via ‘display mode’ selector ( which can be hidden by the admin at all, though).
  • Convenient back to top. ‘Back to top’ button in the bottom right corner for quick jump to the top of the page - tiny but so essential detail!
  • Adaptive products list. Whatever display your customers use, standard or widescreen, the module will adjust the products list accordingly.
  • SEO-friendly and quick

System requirements

To be able to successfully install and use the Infinite Scroll module, you must have a working copy of X-Cart version 4.3.0 or later installed on your server. Make sure that the version of the module is the same as the version of the installed copy of X-Cart.

Note: If you do not remember the version of installed X-Cart, find it in the Environment info section of the Summary page in X-Cart Admin area.

Installation

To install the module for X-Cart 4.3.0 or higher:

  1. Obtain a distribution package for the Infinite Scroll add-on module by downloading it from the File Area section of your X-Cart Account. The distribution package you need is contained in the archive file infinite-scroll-x.y.z.tgz where x, y and z are the version numbers of the module. Make sure the version of the module is the same as the version of the installed X-Cart.
  2. Copy the distribution package to the X-Cart root directory on your server or hosting account.
    • If you are using a Windows-based server, or a UNIX-based server without terminal access:
    a) Decompress the archive with the Infinite Scroll 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 are using 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 infinite-scroll-x.y.z.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-infinite-scroll.php replacing the variable <YOUR_XCART_DOMAIN> with the actual domain name of your X-Cart store.
  4. Enter the Auth code, accept the License Agreement and click Next.
  5. The installation script patches the files and activates the module. Click Next to continue the installation.
    Note: if you are using custom skin, you will need to manually apply the patches to it. Otherwise, the module will not work in this skin.
  6. The installation script generates a new system fingerprint. Click Next to complete the installation.
  7. Use the ADMINISTRATOR AREA link to log in to the Admin area.

Important: If you do not see the module in action after it has been installed and enabled, you are probably using a custom skin that overrides skin/common_files/customer/main/products.tpl.

In this case, add the following lines of code:

  {if $active_modules.Infinite_Scroll ne ''}
    {include file="modules/Infinite_Scroll/main.tpl"}
  {/if}

before the last {/if} statement in the corresponding template file of your custom skin (e.g. skin/my_custom_skin/customer/main/products.tpl).

Enabling the Infinite Scroll add-on module

After the Infinite Scroll add-on module 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 Infinite Scroll module by selecting the respective check box on the left.
  3. Click the Apply changes button. This activates the module.

Managing Infinite Scroll

Infinite scroll admin settings.png


You can enable the functionality for:

  • search results page
  • category products page
  • manufacturer products
  • featured products

Enable content loading indicator - defines whether to display content loading indicator or not.

Enable display mode selection in customer area - customers can switch between display mods ("Page by page/All at once"). By disabling this field admin can hide the display mode section from the customer area.

Inf scroll display mod.png

Enable "View more products" button - when this option is enabled, the next page is not loaded automatically just by scrolling; to get more products displayed, the user needs to click the "View more products" button.