Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change image directory to language images directory


Peter Warmerdam

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

Link to comment
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

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
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

Link to comment
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.

Link to comment
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

Link to comment
Share on other sites

  • 3 weeks later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...