Skip to content

magento man

unable to access Magento 2.4.6 backend on a fresh install with sampledata

I’m unable to access the Magento 2.4.6 backend on a fresh install with sampledata I get this when I try to open the Magento Backend URL Error: Class “MagentoThemeSampleDataPluginViewPageConfig” not found in /bitnami/magento/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121? The frontend is working fine. any idea… Read More »unable to access Magento 2.4.6 backend on a fresh install with sampledata

check condition in foreach loop with dynamic variable in knockout js

I have html file at the path /var/www/html/nelson-avnet-app/code/vendor/module/view/frontend/web/template/shipping-address/list.html <!– ko if: (visible)–> <div class=”field addresses”> <div class=”control”> <input id=”query” type=”text” name=”query” data-bind=”textInput: query, valueUpdate: ‘afterkeydown’, event: { keyup: check }”/> <div class=”shipping-address-items”> <input type=”text” data-bind=”value: customTotal” /> <!– ko foreach:… Read More »check condition in foreach loop with dynamic variable in knockout js

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