How to get full product image url in magento ,i need to migrate the data from magento to django so i need to get the product full image url to migrate the site
here is my code
<?php
@ob_start();
@session_start();
ini_set('display_errors', 1);
//for order update
include '../../../../app/Mage.php';
Mage::app('default');
echo '<pre>';
if(isset($_REQUEST['productid'])){
$productId = $_REQUEST['productid'];
}else{
echo 'Default Product => ';
$productId = '12402'; // product ID 10 is an actual product, and used here for a test
}
$product = Mage::getModel('catalog/product')->load($productId); //load the product
print_r($product->getthumbnail());<br/>
print_r($product->getcreated_at());
?>
You can try below code
first of all call helper of catalog
From this code you can get cache path also.