Magento – Get Original Image URL of a Product

$productId = 'SOME_PRODUCT_ID'; $product = Mage::getModel('catalog/product')->load($productId); $productMediaConfig = Mage::getModel('catalog/product_media_config');   $baseImageUrl = $productMediaConfig->getMediaUrl($product->getImage()); $smallImageUrl = $productMediaConfig->getMediaUrl($product->getSmallImage()); $thumbnailUrl = $productMediaConfig->getMediaUrl($product->getThumbnail()); more info: http://www.anyknowledge.com/magento-get-original-image-url-of-a-product/ http://www.magentocommerce.com/boards/viewthread/69911/

Export Products To XML – Magento

setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); //echo getcwd(); $_urlPath = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); $_imagePath = $_urlPath . "media"; $_logFileName = getcwd()."export_products.log"; $_xmlPath = getcwd()."/var/export"; $xmlFile = $_xmlPath . "/" . "productexport.xml"; $doc = new DomDocument('1.0', 'UTF-8'); $doc->preserveWhiteSpace…