Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function BrandsAction()
- {
- $brandNameId = $this->getRequest()->getPost("brand_id");
- $status = $this->getRequest()->getPost("status");
- $brandsNameCat = Mage::getModel('catalog/category')
- ->load($brandNameId)
- ->setEdpaProm($status)
- ->save();
- //$brandsNameCat->saveAttribute($brandsNameCat, 'edpa_prom');
- $result = json_encode(array('element' => $element, 'category' => $categoryId, 'brand' => $brandNameId, 'status' => $status));
- echo $result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement