PHP code example of thelia / choice-filter-module
1. Go to this page and download the library: Download thelia/choice-filter-module 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/ */
thelia / choice-filter-module example snippets
smarty
{loop name="choice_filter" type="choice_filter" template_id=$template_id}
{if $TYPE == "feature" and $VISIBLE}
{loop type="feature" name="feature-$ID" id=$ID}
{* your code *}
{/loop}
{elseif $TYPE == "attribute" and $VISIBLE}
{loop type="attribute" name="attribute-$ID" id=$ID}
{* your code *}
{/loop}
{elseif $TYPE == "brand" and $VISIBLE}
{* your code *}
{elseif $TYPE == "price" and $VISIBLE}
{* your code *}
{/if}
{/loop}
smarty
{loop name="choice_filter" type="choice_filter" category_id=$category_id}
{if $TYPE == "feature" and $VISIBLE}
{loop type="feature" name="feature-$ID" id=$ID}
{* your code *}
{/loop}
{elseif $TYPE == "attribute" and $VISIBLE}
{loop type="attribute" name="attribute-$ID" id=$ID}
{* your code *}
{/loop}
{elseif $TYPE == "brand" and $VISIBLE}
{* your code *}
{elseif $TYPE == "price" and $VISIBLE}
{* your code *}
{/if}
{/loop}