getRequest()->getParam('want_to_buy_id'); return $want_to_buy_id; } public function getCustomer(){ $om = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $om->get('Magento\Customer\Model\Session'); $customer = $customerSession->getCustomer(); return $customer; } }