Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do i change this to link to .jpg instead of .gif?


Cheeky Chino

Recommended Posts

Posted

Take a look in catalog/includes/classes/boxes.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

You would:

 

let's say you want to change the image "button_continue.gif" on the contact_us.php page. (which I have)

 

locate the following code in the contact_us.php page:

 

<?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?>

 

change this code to:

 

<?php echo tep_image_submit('button_submit.gif', IMAGE_BUTTON_SUBMIT); ?>

 

Notice I changed the "continue" to "submit" because I felt the continue was misleading....Usually when you have a continue button on a webpage the user thinks that there will be something else coming, like additional information to be filled in before the form is submitted.

 

You could as well make this button named button_send.jpg

 

Notice! If you do create an additional image that normally doesn't excist in osC you must add a field into the catalog/includes/languages/english.php file.

 

You would add something like this:

 

define('IMAGE_BUTTON_SUBMIT', 'Submit');

 

Hope that helps!

Posted

Yes i think this helps me understand, cause what i am doing is making new graphics for the buttons but are saved as .jpg, so need so make OSC load the .jpg files instead of the .gif files.

 

So what i have to do is manually goto every page and change the file extention yeah?

Posted

Why dont you save your new graphics as .GIF ?

Would be a lot easyer

 

The_Bear

Posted

I agree with The_Bear. It would be a lot easier if you can save your button images in a GIF format. The GIF format can also be faster as goes download time. But sometimes if you have very graphic intensive images the JPG might be better.

 

If GIF is an alternative to you I would create your own buttons and save them with the same respective name in the languages/english/images/button folder

 

Then you would upload your images and you wouldn't have to change any of the coding.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...