Finding products with and without custom options using SQL (Magento 1)

To find all products that have keine no custom options, run this query:

To find all products that do have custom options, simply remove “NOT” from the query above.

Where does Magento Connect Manager store version numbers?

The Magento Connect Manager’s version numbers are stored in serialized form in the file /downloaderinside the directory (which should be renamed for security reasons) cache.cfg . You can read that file using the following code:

Changing the data stored…

Reading recurring profile data (Magento 1)

Magento stores the recurring profile directly on the customer object. You can read its data using the following code: $collection = Mage::getResourceModel(‘sales/recurring_profile_collection’)->addFieldToFilter(‘customer_id’, $customerId); $profileData = $collection->getData(); $profileData = Mage::getModel(‘sales/recurring_profile’)->load($profileData[0]['profile_id']); $profileShippingAddress = $profileData->getShippingAddressInfo(); // …