Skip to content

Instantly share code, notes, and snippets.

@ironizm
Last active December 24, 2015 23:38
Show Gist options
  • Save ironizm/4a4d3a053b4bf71fdde9 to your computer and use it in GitHub Desktop.
Save ironizm/4a4d3a053b4bf71fdde9 to your computer and use it in GitHub Desktop.
$product = Mage::getModel('catalog/product')->load($id);
$groupPrice = $product->getData('group_price');
$product->setData('group_price',array (
array (
"website_id" => 0,
"cust_group" => $cutGrpId,
"price" => $arrprice['someprice']
)));
try{
$product->save();
}catch (Exception $e)
{
Mage::log(print_r($e,true), NULL, 'my_exception.log',true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment