Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. Error filtering template: Notice: Undefined offset: 1 in
  2. /home/tunxxx/public_html/xxxxxx.com/app/design/frontend/Etheme/yourstore/Nwdthemes_Revslider/templates/revslider.phtml on line 87
  3.  
  4. <?php
  5. // $attribute_model = $this->_objectManager->create('MagentoEavModelEntityAttribute');
  6.  
  7. $objectManager1 = MagentoFrameworkAppObjectManager::getInstance();
  8.  
  9. $attribute_model = $objectManager1->create('MagentoEavModelEntityAttribute');
  10.  
  11.  
  12. $attribute_code = $attribute_model->getIdByCode('catalog_product', 'ymmk_model');
  13. $attribute = $attribute_model->load($attribute_code);
  14. $value[0] = array('rrrrrrrrrfrrr','');
  15. $result = array('value' => $value);
  16. $attribute->setData('option',$result);
  17. $attribute->save();
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement