Guest User

Untitled

a guest
Aug 20th, 2019
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. protected $customerSession;
  2.  
  3. public function __construct(
  4. MagentoCustomerModelSession $customerSession
  5. ){
  6. $this->customerSession = $customerSession;
  7. }
  8.  
  9. // Set Value
  10. $this->customerSession->setMyValue('test');
  11. // Get Value
  12. $this->customerSession->getMyValue();
  13.  
  14. $customerSession = $this->_objectManager->create('MagentoCustomerModelSessionFactory')->create(); return $customerSession->getMyValue();
RAW Paste Data