Magento set base Image Programmatically

By | February 23, 2014

Magento with vast extendable functionality help developer to reach the as per the Client Requirement

Recently need to set the base,thumbnail,small image after lot of R & D found the solution.Just we need to set the current  in the current code

<?php $setbaseimage=Mage::getModel('catalog/product')->load($objProduct);

and once store is set images will get saved

Hope this will help you

2 thoughts on “Magento set base Image Programmatically

  1. Rocky

    where do i put this code please give me the path, as i am new to magneto..

  2. sandeep gulati Post author

    @rocky as we have added in our custom module …so you can add in product controllers save action! ..but for that you need to over write the controllers


Leave a Reply