PHP code example of magendoo / module-catalog-quality
1. Go to this page and download the library: Download magendoo/module-catalog-quality 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/ */
magendoo / module-catalog-quality example snippets
xml
<type name="Magendoo\CatalogQuality\Model\Scoring\ProductScorer">
<arguments>
<argument name="conditionalGroups" xsi:type="array">
<item name="baseprice" xsi:type="array">
<item name="enabledBy" xsi:type="string">baseprice_is_enabled</item>
<item name="attributes" xsi:type="array">
<item name="0" xsi:type="string">baseprice_product_amount</item>
<item name="1" xsi:type="string">baseprice_unit_id</item>
<item name="2" xsi:type="string">baseprice_reference_amount</item>
</item>
</item>
</argument>
</arguments>
</type>
xml
<type name="Magendoo\CatalogQuality\Model\Rule\RulePool">
<arguments>
<argument name="rules" xsi:type="array">
<item name="my_custom_rule" xsi:type="object">
Vendor\Module\Model\Rule\Enrichment\MyCustomRule
</item>
</argument>
</arguments>
</type>