Skip to content

magento man

Is it necessary to extend MagentoFrameworkModelAbstractModel for all custom model classes in Magento 2?

Is it necessary to extend MagentoFrameworkModelAbstractModel for all custom model classes in Magento 2? I am working on a custom model that does not involve any database interactions (e.g., saving, loading, or deleting records), and I noticed that AbstractModel depends… Read More »Is it necessary to extend MagentoFrameworkModelAbstractModel for all custom model classes in Magento 2?

In Magento 2.4.7, retrieving customer session data using the getCustomerData method is not Working

In Magento 2.4.7, the following code attempts to retrieve customer session data using the getCustomerData method, but it does not return any data <?php … use MagentoCustomerModelSession; use BlissPricePerCustomerModelCustomerPriceProdcut; use MagentoFrameworkAppConfigScopeConfigInterface; use MagentoStoreModelScopeInterface; use MagentoCatalogModelProduct as MainProduct; class Product {… Read More »In Magento 2.4.7, retrieving customer session data using the getCustomerData method is not Working

Magento 2 default checkout page too slow

3 with default checkout but it loading too slow in that too rest/default/V1/guest-carts/W4tUoafhV2AvU8CeJcnlzuALWRqSzfE1/shipping-information and payment-information these api call taking time i disabled used payment methods and shipping implemented cdn Fallowed https://onilab.com/blog/magento-checkout-slow-fix-it-in-8-simple-steps/ https://bsscommerce.com/blog/magento-2-checkout-slow/ Select one of the payment methods then Click… Read More »Magento 2 default checkout page too slow

Magento 2 is giving me Fatal error: Allowed memory size of 1073741824 bytes exhausted when i am trying to save product

I am getting following errros Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 73400328 bytes) in public_html/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php on line 228 Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are… Read More »Magento 2 is giving me Fatal error: Allowed memory size of 1073741824 bytes exhausted when i am trying to save product