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