$productId =1;
$loadpro=Mage::getModel('catalog/product')->load($product->getId());
$mediaApi = Mage::getModel("catalog/product_attribute_media_api");
$mediaApiItems = $mediaApi->items($product->getId());
foreach($mediaApiItems as $item)
{
$mediaApi->remove($loadpro->getId(), $item['file']);
}
$loadpro->save();
I have experienced problems when installing two monitors in Ubuntu. Following script will help you to solve this problem. I had problems when saving below values so I created a script and put it to the startup. #!/bin/sh xrandr --output VGA-0 --mode 1920x1080 --pos 1280x0 --rotate normal --output DVI-I-1 --off --output DVI-I-0 --mode 1280x1024 --pos 0x0 --rotate normal --output HDMI-0 --off
Comments
Post a Comment