Jump to content
Sign in to follow this  
Peter Warmerdam

Change image directory to language images directory

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.


-----------------------------------------------------------------------------

OSC user for years and no coder, so I've earned my stripes.

 

Feel free to private message me.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.


-----------------------------------------------------------------------------

OSC user for years and no coder, so I've earned my stripes.

 

Feel free to private message me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×