forest1 Posted April 25, 2011 Share Posted April 25, 2011 Hi I have couple of issues still left to fix One is image size for product info pages mystore.com/product_info.php?cPath=3_10&products_id=12 at the moment it is picking up the size from the small image width and height parameters in the admin panel This is fine for the tumbnails on the product list page but I want a larger image on the product info pages I have tried messing with the php files but I keep getting errors. What the store is selling is very visual so i would like a larger image Thanks Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted April 25, 2011 Share Posted April 25, 2011 (edited) You can make some new db values for larger images and then modify product_info.php to use the new values. or You can also simply hard-code size values directly in products_info.php Edited April 25, 2011 by toyicebear Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
forest1 Posted April 25, 2011 Author Share Posted April 25, 2011 Hi where can I hard code the sizes in the product info file the code that relates to the images as far as I can see is <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted April 25, 2011 Share Posted April 25, 2011 change these SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT to something like this '200', '200' Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
forest1 Posted April 26, 2011 Author Share Posted April 26, 2011 thanks that worked like a dream I knew that was the line I need to change but earlier I was adding width="200", height="200" which didnt work Thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.