SHARE
TWEET

Untitled

a guest Aug 20th, 2019 56 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top