b@bushka Posted October 18, 2005 Posted October 18, 2005 Hello all, New to this forum and to osCommerce. As I added some product pictures, I noticed that this cart uses same picture and size for browsing page, product info page, and left and right column's special info box and new product info box. This creates a bit of inconvinience for me, because I was hoping to show a bigger picture or even a different picture in the product info page. So before I go bastardizing the code, I was wondering if any one knows if there is a contribution made to accomodate my issue. Thank you.
Guest Posted October 18, 2005 Posted October 18, 2005 check the contributions, do a search for images like this one http://www.oscommerce.com/community/contributions,1289
b@bushka Posted October 19, 2005 Author Posted October 19, 2005 Thank you very much for quick response. I have search quiet a bit before posting this question and didn't find much. You have gave me a solution for my other issue that I have not yet tackled. So thank you. I have installed this Extra Images and all of a sudden started to get a lot of "1030 - Error 12 in table hadler...." on a lot of different pages. I think it has to do with MySQL and not the newly installed contribution. I tried to run the error queries directly in phpMyAdmin and got same errors. I have no idea why it started but next morning, today, i can not see any of these errors. Hopefully it was just a glitch on the host. But if you have any ideas please share. I have found a lot more additional contributions that: 1. give additional images; or 2. give small, med, large size image controll. I need more of the size controll. But unfortunately all the contributions i saw were using small image on the left/right columns as well as the browsing the catigory page. Then medium on the product info, and large on the popup. What i need is different size for left/right collumns images, category browsing image, and product info image. Please let me know if you know of a contribution that does this specifically.
Guest Posted October 19, 2005 Posted October 19, 2005 ok I see I think the problem is the sizes that control the images on the left/right navigation panels. Each time the tep_image function is called to display an image the width/height or the bounding box are passed also. You could alter this for a specific box say but for the left/right navigation there is a definition in application_top.php that limits the width of the box (default is 125). Before messing with these however visit the osc admin of your store configuration->Images and set the values you want there.
b@bushka Posted October 20, 2005 Author Posted October 20, 2005 I have installed Extra Images, 3-Size Images, Different Left from Right Wdth, and InfoBox Admin contributions. Took a bit of tweaking to get extra and 3 size to work togather. But my original problem remains. On the index page when you select the catigory, it shows all products in that category i nthe table manner. So the size of the products is very small and if i make it bigger it also makes the info boxe pictures bigger because it uses the same variable for the size (...SMALL_IMAGE...). So now that I have MEDIUM and LARGE _IMAGE varibales in the database and Admin tool, I wanted to modify the code, but cannot locate it. So my question is, Where is the picture for the category browsing displayed from (what file?) when index.php is displayed? I studied index.php, and no go. PLEASE Help!!!
Guest Posted October 20, 2005 Posted October 20, 2005 its in the catalog\index.php <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> So you could create a bunch of definitions in the dbase or in the language file to use different sizes for each case.
b@bushka Posted October 21, 2005 Author Posted October 21, 2005 its in the catalog\index.php <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> So you could create a bunch of definitions in the dbase or in the language file to use different sizes for each case. Thank you, but isn't this for the little icon/image of the category displayed in the top right corner of that page? I was asking about the images for the products that show up in the column fashion when you select a specific category, along with name, price. (I'm sorry if I was unclear in the previous post.) Thanks again. Please help.
Guest Posted October 21, 2005 Posted October 21, 2005 yes it is I thought it was what you were asking about. For the lising the products images are in catalog\includes\modules\product_listing.php. Look for the: case 'PRODUCT_LIST_IMAGE': near the end of the file. There is another tep_image call that passes the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT parameters. You could replace them with new definitions.
b@bushka Posted October 22, 2005 Author Posted October 22, 2005 enigma1, You have helped me with my question and gave me quiet a bit more information that prevented me asking a lot of other questions. THANK YOU very much! I was able to hybrid several contributions into one and get the functionality I needed. Again, many thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.