Add Product – Layout Issue

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

congtq 0.00 $tone August 17, 2010
Public

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()).'" />';
#1
rhys_daniels 0.00 $tone August 17, 2010
Public

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 62

Code:

$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
#2
congtq 0.00 $tone August 18, 2010
Public

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.

#3

This question is now closed

Written By

Comments