In magento 1.9 multiple store product images are not showing the default base image. You can check when going into a specific store view in the image settings Use default value is not checked.
Here I give you script for set that settings for all product:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
try { $count = 0; //Check total count for how many products are update Store Wise $products = Mage::getModel('catalog/product')->getCollection(); echo 'Time Start : '.Mage::getModel('core/date')->gmtDate('Y-m-d H:i:s'); //Start time tracking here echo '<br>'; $setStoreIds = array(1,7); //Put here multiple store ids run one by one store products foreach ($setStoreIds as $setStoreId) { echo 'Start Store ID : '.$setStoreId; //Display store id which store is running now echo '<br>'; foreach($products as $prod) { $product = Mage::getModel('catalog/product') ->load($prod->getId()) ->setStoreId($setStoreId) ->setData('image', false) ->setData('small_image', false) ->setData('thumbnail', false) ->save(); $count++; } } echo 'Time End : '.Mage::getModel('core/date')->gmtDate('Y-m-d H:i:s'); echo '<br>'; echo 'Total Products Counts : '.$count; //Display total time script taken } catch (Exception $exception) { var_dump($exception); die('Exception Thrown'); } |
[crayon-63e09017bff9a281676014/] Using above fucntion Images can be imported directly from...
Override view block using di.xml and add the below code...
You can check a list of called layout XML for...
Follow the below steps to install and set up PWA...
If you want to remove all leading zero's from order,...
Let our Magento expert connect to discuss your requirement.
We offer Magento
certified developers.
Our Magento clientele
is 500+.
We sign NDA for the
security of your projects.
We’ve performed 100+
Magento migration projects.
Free quotation
on your project.
Three months warranty on
code developed by us.