Get customer ID using Mage::getModel('customer/customer') – Magento
I not able to get the customersID am I calling it correctly with Mage::getModel $customer = Mage::getModel('customer/customer') ->setWebsiteId(2) ->load($this->getRequest()->getParam('customer')); $customer_id = $customer->getId(); $sku = 'BOX3151'; $sql = "SELECT sfoi.item_id FROM sales_flat_order_item sfoi INNER JOIN sales_flat_order sfo ON sfo.entity_id = sfoi.order_id…