PHP code example of amadeco / module-elasticsuite-stock

1. Go to this page and download the library: Download amadeco/module-elasticsuite-stock library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

amadeco / module-elasticsuite-stock example snippets

xml
<type name="Smile\ElasticsuiteCatalog\Model\Layer\FilterList">
    <arguments>
        <argument name="filterTypeProviders" xsi:type="array">
            <item name="stock" xsi:type="object">Amadeco\ElasticsuiteStock\Model\Layer\Filter\TypeProvider\Stock</item>
        </argument>
    </arguments>
</type>