Skip to content

magento man

How I can reference default magento tables regardless the prefix?

In my schema.xml I defined a table: <?xml version=”1.0″?> <schema xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd”> <table name=”mailing_list” resource=”default” engine=”innodb” comment=”customer_group_mailing_lists”> <column xsi:type=”varchar” name=”id” nullable=”false” identity=”true” comment=”List Id” /> <column xsi:type=”int” name=”customer_group_id” comment=”Customer Group id to assign” /> <column xsi:type=”boolean” name=”active” comment=”Check if senfing… Read More »How I can reference default magento tables regardless the prefix?

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