Peter Warmerdam Posted November 26, 2006 Share Posted November 26, 2006 In de header.php there is a line wich points to some images in de catalog/images directory. But because we want some images to be changed for some languages we want to point to another directory in de language section /includes/languages/language/images. Can someone tell me what the code shoud change to realise this ? <tr><td colspan=2><a href=<?=tep_href_link('index.php')?>><img src=images/b01.gif width=128 height=35 border=0></a><a href=<?=tep_href_link('products_new.php')?>><img src=images/b02.gif width=129 height=35 border=0></a><a href=<?=tep_href_link('account.php')?>><img src=images/b03.gif width=131 height=35 border=0></a><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/b04.gif width=148 height=35 border=0></a><a href=<?=tep_href_link('checkout_shipping.php')?>><img src=images/b05.gif width=118 height=35 border=0></a></td></tr> In this line the pictures are b01.gif and b02.gif Peter Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 26, 2006 Share Posted November 26, 2006 You need to use the tep_image_button function. Just take a look at any Continue button code to see how it is used. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
marciak Posted November 27, 2006 Share Posted November 27, 2006 I have finally gotten the right output.html file in my store and the images are all there. I do have a question on the images though. I have set up the images in the admin panel like this: Small Image Width 50 Small Image Height 75 Heading Image Width 57 Heading Image Height 40 Subcategory Image Width 100 Subcategory Image Height 57 Calculate Image Size true Image Required false My problem seems to be that my images are diffent sizes, in the thumbnail form and some are squished while others are elongated. No matter how I set up the image sizes, if I set up one the fit the squished images, the others are ridiculously long. Is there a way to set this so they are sized appropiately per image? Maybe by percentage or something? Marcia Quote Link to comment Share on other sites More sharing options...
driftwood Posted November 27, 2006 Share Posted November 27, 2006 I have finally gotten the right output.html file in my store and the images are all there. I do have a question on the images though. I have set up the images in the admin panel like this: Small Image Width 50 Small Image Height 75 Heading Image Width 57 Heading Image Height 40 Subcategory Image Width 100 Subcategory Image Height 57 Calculate Image Size true Image Required false My problem seems to be that my images are diffent sizes, in the thumbnail form and some are squished while others are elongated. No matter how I set up the image sizes, if I set up one the fit the squished images, the others are ridiculously long. Is there a way to set this so they are sized appropiately per image? Maybe by percentage or something? Marcia Leave off on side size; Small Image Width 50 Small Image Height Width for all Small images will be 50 and height will be calculated to match. Quote ----------------------------------------------------------------------------- OSC user for years and no coder, so I've earned my stripes. Feel free to private message me. Link to comment Share on other sites More sharing options...
marciak Posted November 27, 2006 Share Posted November 27, 2006 Leave off on side size; Small Image Width 50 Small Image Height Width for all Small images will be 50 and height will be calculated to match. Much better! Unfortunately now, my "click to enlarge" images are the same size as the thumbnails. I dont' mind that so much with these products but I will have other products I'll want enlarged. Do I just have to have bigger pix to start with? Makes sense even to my neophyte mind! Marcia Quote Link to comment Share on other sites More sharing options...
driftwood Posted December 17, 2006 Share Posted December 17, 2006 Much better! Unfortunately now, my "click to enlarge" images are the same size as the thumbnails. I dont' mind that so much with these products but I will have other products I'll want enlarged. Do I just have to have bigger pix to start with? Makes sense even to my neophyte mind! Marcia I think you might find contributions to help but in general if you want that you are best to have the images the right size. One option is to edit the underlying code that shows that image in the php file by adding somethiing like "x 2" to the images code to double it in the case of those product images. Sorry don't have an example. Quote ----------------------------------------------------------------------------- OSC user for years and no coder, so I've earned my stripes. Feel free to private message me. 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.