Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement