Ads dependable drop-downs to select following categories levels.
- PHP >= 7.0
- Magento ~2.0
- jQuery ~1.5
- Composer
- magento-hackathon/magento-composer-installer
-
Add git repository address to your composer.json
{ "type": "git", "url": "https://git.miply.no/miply_module-categories-selectors" }
-
Install the extension via Composer
$ composer require "miply/module-categories-selectors" -vvv -
Enable the extension
$ bin/magento module:enable Miply_CategoriesSelectors -
Enable the extension
$ bin/magento module:enable Miply_CategoriesSelectors -
Add block to allowed blocks on frontend
System > Permissions > Blocks > Add Block:- Block Name: miply_categoriesselector/selectors
- Allowed: Yes
-
Add block with drop-downs to:
- layout of your choice, e.g. cms_index_index.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="content"> <block class="Miply\CategoriesSelectors\Block\Selectors" name="miply_categoriesselector.selectors" template="Miply_CategoriesSelectors::selectors.phtml" /> </referenceContainer> </body> </page>
- your custom layout using one of predefined handles:
<update handle="miply_categoriesselector_selectors_root" />
<update handle="miply_categoriesselector_selectors_content" />
- ...many other ways
- layout of your choice, e.g. cms_index_index.xml
-
Add number of drop-downs to display to configuration (table core_config_data, default value: 3)
- path:
miply_categoriesselector/categories/levels
, e.g. value: "5"
- path:
-
Add default text for each drop-down to configuration (table core_config_data)
- path:
miply_categoriesselector/drop_down/default_text_0
, e.g. value: "Select Make" - path:
miply_categoriesselector/drop_down/default_text_1
, e.g. value: "Select Model" - path:
miply_categoriesselector/drop_down/default_text_2
, e.g. value: "Select Year" - ...
- path:
miply_categoriesselector/drop_down/default_text_x
, e.g. value: "Select X"
- path:
-
Clear the cache, logout from the admin panel and then login again.
If you have any issues with this extension, notify author.
Miply Patryk Makowski
https://miply.no
[email protected]
See LICENSE.md
(c) 2018 Miply Patryk Makowski https://miply.no