Hi All
When i add a new simple or grouped product, the layout of the product page is all messed up. Also there is a image attached to the product but it don’t show. Anyone know the fix? I have attached a picture for better understanding.
3 answers
Because this product dont’ have image so it shows no-image with default width=265px.
You can change this width in app\design\frontend\base\defaulttemplate\catalog\ product\view\media.phtml, line 62
Code:
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
I did add a image, you can see the blue image with the woman next to other views
Because this product dont’ have image so it shows no-image with default width=265px.
You can change this width in app\design\frontend\base\defaulttemplate\catalog\ product\view\media.phtml, line 62Code:
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
Oh yes, I added a image but you’ve not set it as Base Image yet so product show default image with width = 265px
Pls see attach file.
This question is now closed