I am using Magento version and having around 6000 products in my stores with varies categories. Now I need to change the product Price by increasing 8% for all products.

I have tried adding excel sheet and importing it and its taking very longer time to import.

Is there any other options to change the Price for all products at same time?

1 Answer 1


Try this:

ini_set('memory_limit', '8024M');

require_once './app/Mage.php';


$collection = Mage::getResourceModel('catalog/product_collection');

foreach($collection as $product) {

    $_product = Mage::getModel('catalog/product')->load($product->getId());
    $price = ($_product->getPrice() * 1.02);


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.