Hi
Sorry for my english
in the catalog/index.php
i have
<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>
and i want remplace with:
<!--Begin Sold Out-->
<?php
$products_sold_out = '';
$stock_left = tep_get_products_stock($products_id) - $products_quantity;
$products_sold_out = stock_left;
if ($stock_left > 0) {
$submit_button = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
} else {
$submit_button = tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/button_sold_out.gif', 'Sold Out', IMAGE_BUTTON_SOLD_OUT);
}
?>
<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . $submit_button; ?></td>
<!--End Sold Out-->
and in the
catalog/advanced_search_result.php
but if i change it
the website showme add to cart yet
10x