Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public function BrandsAction()
  2. {
  3. $brandNameId = $this->getRequest()->getPost("brand_id");
  4. $status = $this->getRequest()->getPost("status");
  5. $brandsNameCat = Mage::getModel('catalog/category')
  6. ->load($brandNameId)
  7. ->setEdpaProm($status)
  8. ->save();
  9.  
  10. //$brandsNameCat->saveAttribute($brandsNameCat, 'edpa_prom');
  11.  
  12. $result = json_encode(array('element' => $element, 'category' => $categoryId, 'brand' => $brandNameId, 'status' => $status));
  13. echo $result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement