Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

IE7 broke some functionality


JonoB

Recommended Posts

Posted

This always used to work fine, but IE7 has now broken some functionality in my site.

 

When a stock item reaches zero, my site removes the "Add to cart" button and replaces it with a "Out of stock" image. The out of stock image cannot be clicked, so it prevents customers trying to add the item to their cart.

 

Here is the code from my product_info.php page:

<!--Begin Sold Out-->

<?php

$prod_quantity = tep_get_products_stock($products_id);

if ($prod_quantity > 0) {

$submit_button = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART,'align=absmiddle');

} else {

$submit_button = tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/button_sold_out.gif', 'Sold Out', IMAGE_BUTTON_SOLD_OUT,'align=center');

}

?>

<td class="main" align="right"><?php echo TEXT_QUANTITY . tep_draw_input_field('quantity', '1', 'SIZE=2 maxlength=2') . tep_draw_separator('pixel_trans.gif', '5', '1') . tep_draw_hidden_field('products_id', $product_info['products_id']) . $submit_button; ?></td>

<!--End Sold Out-->

 

 

This always worked fine in IE, and still works fine in Firefox. Any ideas on why IE7 doesnt work?

 

Thanks for the help!

Posted
This always used to work fine, but IE7 has now broken some functionality in my site.

 

When a stock item reaches zero, my site removes the "Add to cart" button and replaces it with a "Out of stock" image. The out of stock image cannot be clicked, so it prevents customers trying to add the item to their cart.

 

Here is the code from my product_info.php page:

<!--Begin Sold Out-->

<?php

$prod_quantity = tep_get_products_stock($products_id);

if ($prod_quantity > 0) {

$submit_button = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART,'align=absmiddle');

} else {

$submit_button = tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/button_sold_out.gif', 'Sold Out', IMAGE_BUTTON_SOLD_OUT,'align=center');

}

?>

<td class="main" align="right"><?php echo TEXT_QUANTITY . tep_draw_input_field('quantity', '1', 'SIZE=2 maxlength=2') . tep_draw_separator('pixel_trans.gif', '5', '1') . tep_draw_hidden_field('products_id', $product_info['products_id']) . $submit_button; ?></td>

<!--End Sold Out-->

This always worked fine in IE, and still works fine in Firefox. Any ideas on why IE7 doesnt work?

 

Thanks for the help!

 

you are putting IMAGE_BUTTON_SOLD_OUT in the width parameter and 'align=center' in the height parameter.

Treasurer MFC

Posted
you are putting IMAGE_BUTTON_SOLD_OUT in the width parameter and 'align=center' in the height parameter.

 

Thanks for the reply.

 

Apologies for this, but I am a complete newbie - how do I change it so that it works correctly?

 

Thanks again.

Archived

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

×
×
  • Create New...