I have created an attribute for image as "custom_image" to show it in the in the header for every product.
I have get the base_image with the following code:
<?php $_product = Mage::registry('current_product')->getId(); $product = Mage::getModel('catalog/product')->load($_product); $product_image = $product->getImageUrl();
Now i want to get the custom_image and i have tried it like:
$product_image = $product->getImageUrl(custom_image);
but it is not working kindly guide me what wrong i am doing and how i can get the custom image attribute.