Skip to content

magento man

Magento 2 + Checkout Billing address Telephone Number Validation

I have created a plugin for billing address phone number validation, but it’s giving me an error Exception #0 (Exception): Notice: Undefined index: dataScopePrefix in /var/www/html/test/vendor/magento/module-customer-custom-attributes/Block/Checkout/LayoutProcessor.php on line 139 below is my code CustomBillingAddressetcdi.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type… Read More »Magento 2 + Checkout Billing address Telephone Number Validation

Magento 2 plugin not working for MagentoBundleModelProductType when also applied on AbstractType

I am trying to use plugins on the following Magento 2 core methods: MagentoBundleModelProductType::checkProductBuyState() MagentoBundleModelProductType::getOptionsIds() MagentoCatalogModelProductTypeAbstractType::checkProductBuyState() Core classes (simplified) MagentoBundleModelProductType extends MagentoCatalogModelProductTypeAbstractType: class MagentoBundleModelProductType extends MagentoCatalogModelProductTypeAbstractType { public function checkProductBuyState($product) { parent::checkProductBuyState($product); $productOptionIds = $this->getOptionsIds($product); // … more logic return… Read More »Magento 2 plugin not working for MagentoBundleModelProductType when also applied on AbstractType