Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easiest Way To Change Main Picture?


handsumshooter

Recommended Posts

Posted

Newb here, my site is live at www.handsumshooter.com/shop/

I was wondering, what would be the easiest way to change the picture of the woman with the bags? The image is broken up into seperate pieces so It's not easy as just uploading my own picture. Thanks.

Posted

Did you try replacing one the files with your own image and leaving the rest with a .gif of 1x1 transparent?

 

The other fastest way i could figure is to broke your own image in the same ammount of pieces the other image have.

 

Your site seems to be a customized store, very different from the versions released here. So, it's difficult for us figure what piece of code change, but try the following.

 

Figure what is the piece of code that generates the following html code:

 

			  	<table cellpadding="0" border="0" cellspacing="0">
	  	 	 <tr>
			  <td valign="top"><img width="207" height="140" src="images/m08.jpg"></td>
		      <td valign="top"><img width="9" height="140" src="images/m09.jpg"></td>
		  	  <td valign="top"><img width="106" height="140" src="images/m10.jpg"></td>
		  	  <td valign="top"><img width="107" height="140" src="images/m11.jpg"></td>
		  	  <td valign="top"><img width="111" height="140" src="images/m12.jpg"></td>
		  	 </tr>
			 <tr>

			  <td valign="top">
			   <table cellpadding="0" cellspacing="0">
			    <tr>
				 <td><img width="207" height="16" src="images/m26.jpg"></td>
				</tr>
				<tr><td width="207" height="17" align="right" class="ch5" bgcolor="#F7D37E">*Offer expires Desember 16</td>
				</tr>
			   </table>

			   </td>
			   <td><img width="9" height="33" src="images/m28.jpg"></td>
			   <td><img  width="106" height="33"src="images/m27.jpg"></td>
			   <td><img width="107" height="33" src="images/m29.jpg"></td>
			   <td><img width="111" height="33" src="images/m30.jpg"></td>				   
			</tr>
			 <tr>
			  <td valign="top">
			   <table cellpadding="0" cellspacing="0">

			    <tr>
				 <td><img width="12" height="51" src="images/m31.jpg"></td>
				 <td>
				  <table cellpadding="0"  cellspacing="0">
				   <tr>
				    <td><img width="92" height="12" src="images/m33.jpg"></td>
					</tr>
					<tr>
					<td><a href=http://handsumshooter.com/shop/products_new.php><img border="0" width="92" height="27" src="images/m32.jpg"></a></td>

				    </tr>
					<tr>
					 <td><img width="92" height="12" src="images/m34.jpg"></td>
					</tr>
				   </table>
				  </td>
				  <td><img width="103" height="51" src="images/m35.jpg"></td>
				 </tr>
			   </table>

			  </td>
				  <td><img width="9" height="51" src="images/m36.jpg"></td>
			  <td><img width="106" height="51" src="images/m37.jpg"></td>
			  <td><img width="107" height="51" src="images/m38.jpg"></td>
			  <td><img width="111" height="51" src="images/m39.jpg"></td>				   
			</tr>
			</table>	

 

That piece of html code is likely to be the one controlling the main image. Find where it is generated, and replace with your own picture, something like:

 

<table cellpadding="0" border="0" cellspacing="0">
 <tr>
   <td>
     <img src="your-image-source.gif" alt="an alternative text to your image">
   </td>
 </tr>
</table>

 

Note that inside the 1rst piece of code there is a link. If you want to leave the link, make the changes needed on the 2nd piece of code.

Important: If you are not experienced with php and osC programming, you can leave the code above without any php code, that is, hardcode that piece of code into your php file. However, to place the link, it is strongly suggested that you try to generate it with php using the osC function tep_href_link(). Otherwise, you will have not support for customers with cookies disabled.

 

Consider breaking your image if you are not confident in making the changes.

 

Regards,

Hey!!... I still need help with this http://www.oscommerce.com/forums/index.php?showtopic=309208. Please, take a look on it.

Archived

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

×
×
  • Create New...