For now I modified code in product_listing_col.php like that:
if ($new_products_id_in_cart == $listing[$i]['id']){
$lc_text .= '';
$lc_text .= '<a class="buttton2" href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'], 'NONSSL') . '">' . '</a>';
}
else
{
$lc_text .= '<a class="buttton" href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'], 'NONSSL') . '">' ;
}
With this modification I have a successfull button image change event, but after clicking any other "buy_now" button it reverts back to the first stage. So it works only for one item in a time.
Could anyone advice how to modify code to make "if" compare $listing[$i]['id'] with product_id wich is storred in current session?









