Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error filtering template: Notice: Undefined offset: 1 in
- /home/tunxxx/public_html/xxxxxx.com/app/design/frontend/Etheme/yourstore/Nwdthemes_Revslider/templates/revslider.phtml on line 87
- <?php
- // $attribute_model = $this->_objectManager->create('MagentoEavModelEntityAttribute');
- $objectManager1 = MagentoFrameworkAppObjectManager::getInstance();
- $attribute_model = $objectManager1->create('MagentoEavModelEntityAttribute');
- $attribute_code = $attribute_model->getIdByCode('catalog_product', 'ymmk_model');
- $attribute = $attribute_model->load($attribute_code);
- $value[0] = array('rrrrrrrrrfrrr','');
- $result = array('value' => $value);
- $attribute->setData('option',$result);
- $attribute->save();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement