Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Two quick questions


HighHobbies.com

Recommended Posts

Posted

I have two questions and I have recieved little or no help from generall support forum on oscommerce. So here it goes:

 

I have 2 stores on the same server. I want to transfer about 50 products out of 200 to the new store. How can i do this?

&

Here is the image code:

 

 

CODE

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="left" width="100%"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'topbanner.jpg', 'HighHobbies.Com') . '</a>'; ?></td>

</tr>

</table>

 

 

How would i go about making the image <width=100%> because if i dont make it 100% then in different browsers there will be different sizes of the header image...

 

 

 

 

 

Thanks to all that are able to help in advance.

 

~George

Posted

If you have Calculate Image Size set to true in Admin > Configuration > Images then you will need to specify both the width and the height. Otherwise the tep_image() function will calculate the ratio based on which parameter (width or height) you have specified.

 

to make the image width=100% and the height 30 you would change the code to the following:

<td valign="left" width="100%"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'topbanner.jpg', 'HighHobbies.Com', '100%', '30') . '</a>'; ?></td>

 

If you set Calculate Image Size to false then you can set the width to 100% and the height will automatically be set to whatever the image height is. IMHO it is good practice to specify both regardless.

Do you ship UPS?

Give your customers order tracking without leaving your site. Track multi-package shipments. XML, cURL

 

Download the contribution here:

UPS Tracking

Archived

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

×
×
  • Create New...