Showing results for 
Search instead for 
Did you mean: 

Magento 1.9.3 wont save group prices

Magento 1.9.3 wont save group prices

Hi there,


I was assigned a Magento 1.9.3 project that would take in products in JSON format, and save customer group prices. However, even though there are no errors, nothing gets saved. The group prices won't show in the admin panel nor in the catalogue as expected.

Why is this? I've looked up every single article or stackexchange cases concerning group prices, but none of these seem to solve my problem.

Currently using the catalog_block_product_list_collection event.


$group_prices = $theProduct->getData('group_price');
if (is_null($group_prices)) {
    $attribute = $theProduct->getResource()->getAttribute('group_price');
    if ($attribute) {
        $group_prices = $theProduct->getData('group_price');

    $group_prices = array();
    $theProduct->addData(array('group_price' => $group_prices));

$new_price = array(array (
    'price'=> $singleProduct->Price));
$group_prices = array_merge($group_prices, $new_price);

$currentStore = Mage::app()->getStore()->getId();
    $size = count($group_prices);

    // First Delete all the group prices of product
    $theProduct->setData('group_price', array());
    // Again save the old prices and new prices
    $theProduct->setData('group_price', $group_prices);
} catch(Exception $e) {
    echo $e->getMessage();

And yet, no group prices are saved when checking in the admin panel. Any help is appreciated.