_doctor Posted July 24, 2004 Posted July 24, 2004 Hi! I am selling cigarettes at http://smokingplaza.com Its natural that there are different size packs: usual size and big size. OsCommerce resizes all the product images to the same size. This might be ok for the main page, when products are shown in some kind of grid. But on the product description page I want image to be shown in its native size. How can I do it? I know PHP basics and was trying to play with arguments passed to tep_image.. (or something like this), but failed. How can I have native image size on the product description page?
♥ecartz Posted July 24, 2004 Posted July 24, 2004 admin > Configuration > Images > Small Image Height and Small Image Width, delete the numbers and leave blank. There is more advice floating around somewhere about how to get rid of the Click to Enlarge text. Hth, Matt Always back up before making changes.
_doctor Posted July 25, 2004 Author Posted July 25, 2004 I tried clearing small image width and height, but this removed picture sizing everywhere. As a result main page and categories pages look ugly. I want to remove picture sizing on orpduc_info pages only
_doctor Posted July 25, 2004 Author Posted July 25, 2004 There are links in the first post. Here is the main page, where images have to be resized to fit into the "New Products" grid: http://smokingplaza.com/ Here is the product description page where I want image to have original size: http://smokingplaza.com/product_info.php?products_id=48
Guest Posted July 25, 2004 Posted July 25, 2004 You have to change lines 109 and 112 in product_info.php (osc 2.2 ms2). Replace the SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT with null, so the default (no resizing) can be used in tep_image() (see this OsCommerce Tutorial)
♥ecartz Posted July 25, 2004 Posted July 25, 2004 You have to change lines 109 and 112 in product_info.php (osc 2.2 ms2). Replace the SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT with null, so the default (no resizing) can be used in tep_image() (see this OsCommerce Tutorial)You can't post outside osCommerce links in the forums. If you want them to be able to see that info, you should post the Tutorial in the forums and then link to that. That's why your posts keep getting edited. Hth, Matt Always back up before making changes.
_doctor Posted July 26, 2004 Author Posted July 26, 2004 Heh, I tried '', -1 and 0, but not null :) Thanx, I'll try it
Guest Posted July 26, 2004 Posted July 26, 2004 ecartz, thanks for the hint :) I realized very soon that outside links in signatures are disallowed per forum rules, but I couldn't find a policy prohibiting any outside links. I hope the link is ok. If not, please remove it. > Heh, I tried '', -1 and 0, but not null :) Hm, 0 actually should have worked. But anyway, I hope it works for you now as it worked for me.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.