Skip to content

rules

Auto Added by WPeMatico

How to create catalog price rule while initializing module?

I’m trying to create catalog rule by installing the module, but it’s not working. This is my CreateRuleSetupInstallData.php file <?php namespace PerspectiveCreateRuleSetup; use Exception; use MagentoFrameworkSetupModuleDataSetupInterface; use MagentoFrameworkSetupInstallDataInterface; use MagentoFrameworkSetupModuleContextInterface; class InstallData implements InstallDataInterface { /** * @var MagentoFrameworkSetupModuleDataSetupInterface */… Read More »How to create catalog price rule while initializing module?

How to override Validation.xml from module-customer

I want to override vendor/magento/module-customer/etc/validation.xml This validation.xml in custom module. Baically I want to change below file location with my custom module file <rule name=”check_name”> <entity_constraints> <constraint alias=”name_validator” class=”MagentoCustomerModelValidatorName” /> </entity_constraints> </rule> This MagentoCustomerModelValidatorName with VendorModuleModelValidatorName If anyone have any… Read More »How to override Validation.xml from module-customer