Enlarge the size of images of home featured product pannel
In mirantech/lib/templates/product_panel.php find following lines....
if (isc_strlen($desc) < 120) {
$GLOBALS['ProductSummary'] = $desc;
} else {
$GLOBALS['ProductSummary'] = isc_substr($desc, 0, 120) . "...";
}
and after these lines add following lines......
/*start code to show large images in homefeatured product panel at home page*/
$stdImage = $row['imagefilestd'];
//if no product images
if($stdImage == '') {
if(GetConfig('DefaultProductImage') == 'template') {
$stdImage = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';
}
else {
$stdImage = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');
}
} else {
$stdImage = GetConfig('ShopPath').'/product_images/'.$stdImage;
}
$GLOBALS['ProductStd'] = $stdImage;
/*end code to show large images in homefeatured product panel at home page*/
if (isc_strlen($desc) < 120) {
$GLOBALS['ProductSummary'] = $desc;
} else {
$GLOBALS['ProductSummary'] = isc_substr($desc, 0, 120) . "...";
}
and after these lines add following lines......
/*start code to show large images in homefeatured product panel at home page*/
$stdImage = $row['imagefilestd'];
//if no product images
if($stdImage == '') {
if(GetConfig('DefaultProductImage') == 'template') {
$stdImage = $GLOBALS['IMG_PATH'].'/ProductDefault.gif';
}
else {
$stdImage = GetConfig('ShopPath').'/'.GetConfig('DefaultProductImage');
}
} else {
$stdImage = GetConfig('ShopPath').'/product_images/'.$stdImage;
}
$GLOBALS['ProductStd'] = $stdImage;
/*end code to show large images in homefeatured product panel at home page*/
This is relay help full....
ReplyDeleteThanks.