![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/code/Soon/AjaxScroll/ |
# User's Guide TBD # Installation > **CAUTION** - Make sure that you have active credentials on packages.agence-soon.fr for downloading Soon_* extensions. Please read https://confluence.kaliop.net/pages/viewpage.action?pageId=35009827 ## Update your project's composer.json file Edit the `composer.json` file at the root of your installation and, in the `repositories` section, make sure that you find the following: ``` { "type": "composer", "url": "http://packages.agence-soon.fr/" } ``` ## Get the extension and deploy it - Require the extension: `composer require "soon/module-ajax-scroll"` - Enable the extension: `php bin/magento module:enable Soon_AjaxScroll` - Run system upgrade: `php bin/magento setup:upgrade` ## Update your theme In order to enable ajax scroll, you must flag the product list container with the `soon_ajaxscroll` attribute. Example with `vendor/magento/module-catalog/view/frontend/templates/product/list.phtml`: ``` ... <div class="products wrapper <?php /* @escapeNotVerified */ echo $viewMode; ?> products-<?php /* @escapeNotVerified */ echo $viewMode; ?>" soon_ajaxscroll> ... ``` ## Enable infinite scroll if needed Please have a look at the `etc/config.xml` file. Then, create your own module that overrides the `catalog/soon_ajaxscroll/is_infinite` node. ## Enable in container item loading if needed By default this module load the next list and his container, and append it after the current list container, These option allow you to append contianer content into cuurrent container Please have a look at the `etc/config.xml` file. Then, create your own module that overrides the `catalog/soon_ajaxscroll/repeat_container` node.