Skip to content

magento man

Magento 2 – Add two custom attributes to customer in a new section

In a Magento 2 (2.4.5) instance, I created a new section in CUSTOMER > CUSTOMER INFORMATION, after “Customer View” (thanks to the tutorial of @rakeshjesadiya https://www.rakeshjesadiya.com/create-tab-in-admin-customer-edit-page-in-magento-2). Now, I need to create two custom customer attributes: “OFFICE” and “LEVEL”. Each customer… Read More »Magento 2 – Add two custom attributes to customer in a new section

Custom Payment Method issue in Magento 2.4.5

Create a Custom Payment Method in Magento 2 but face this issue on the checkout page. { “message”: “Please enter a valid credit card expiration date.”, “trace”: “#0 /home/css/public_html/magento245/vendor/magento/module-quote/Model/Quote/Payment.php(202): MagentoPaymentModelMethodCc->validate()n#1 /home/css/public_html/magento245/vendor/magento/module-quote/Model/PaymentMethodManagement.php(79): MagentoQuoteModelQuotePayment->importData(Object(MagentoFrameworkDataObject))n#2 /home/css/public_html/magento245/vendor/magento/module-checkout/Model/PaymentInformationManagement.php(181): MagentoQuoteModelPaymentMethodManagement->set(311, Object(MagentoQuoteModelQuotePayment))n#3 /home/css/public_html/magento245/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCheckoutModelPaymentInformationManagement->savePaymentInformation(311, Object(MagentoQuoteModelQuotePayment), NULL)n#4 /home/css/public_html/magento245/vendor/magento/framework/Interception/Interceptor.php(138):… Read More »Custom Payment Method issue in Magento 2.4.5