skip to Main Content

Preference in Mysql resultset – Magento

While executing the below query in Mysql I am getting multiple records. SELECT * FROM catalog_product_entity_int WHERE attribute_id = 99 and row_id = 378050 +----------+--------------+----------+--------+-------+ | value_id | attribute_id | store_id | row_id | value | +----------+--------------+----------+--------+-------+ | 12101931 |…

VIEW QUESTION

Magento: Get Customer ID in Admin

In Magento 1.9 I want to get the customerId of opened customer in Mage_Adminhtml_Block_Customer_Edit_Tab_View. I tried like this: $customer_session = Mage::getSingleton('customer/session'); //I saw here in Stackoverflow this $customer = $customer_session->getCustomer(); $customerID = $customer->getId(); But I got a null. I also…

VIEW QUESTION
Back To Top
Search