tags:

views:

1276

answers:

2

im running on version 1.3.2.1 but on my client's server they had magento 1.3.0 so my previous code to display images for my local copy:

echo $this->helper('catalog/image')->init($_product)->resize(163, 100);

does not work on the client's installation

looking at the results returned by their magento, ver 1.3.0 actually returns a url although it points to the skin's media folder

is there a way to get the absolute image path for the image? or should i make changes somewhere else that would tell magento that the media directory should be on the root?

A: 

You need set image type :small_image or image

echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(163, 100);
alex
i replaced my line with that and the problem still persists :(
lock
A: 
echo $_product->getImageUrl();

This method of the Product class should do the trick for you.

silvo