Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
attribute_weight_filterable.php
Go to the documentation of this file.
1 <?php
9  \Magento\Catalog\Setup\CategorySetup::class
10 );
11 
12 $installer->updateAttribute('catalog_product', 'weight', 'is_filterable', 1);