I need to change this
Original Code
<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
to
Updated Code
<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . '" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'button_in_cart\',\'\',\'includes/languages/english/images/buttons/button_in_cart_f2.gif\',1);"><img name="button_in_cart" src="includes/languages/english/images/buttons/button_in_cart.gif" width="83" height="30" border="0" alt="">'; ?>
It works on other buttons but its not working on the add to cart button
But i get this displayed
[code=php]onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('button_in_cart','','includes/languages/english/images/buttons/button_in_cart_f2.gif',1);">
?>[/code]
then the button image without the rollover image.
The Add to Cart is linked to the code below which is entered in the beginning of the file.
<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>
I did the chnage on another button below
Original Code :
<?php // echo '<a href="' . tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=add_wishlist') . '">' . tep_image_button('button_wishlist.gif', IMAGE_BUTTON_ADD_WISHLIST) . '</a>'; ?>
Updated code which works
<?php echo '<a href="' . tep_href_link(FILENAME_WISHLIST, tep_get_all_get_params(array('action')) . 'action=add_wishlist') . '" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'button_wishlist\',\'\',\'includes/languages/english/images/buttons/button_wishlist_f2.gif\',1);"><img name="button_wishlist" src="includes/languages/english/images/buttons/button_wishlist.gif" width="126" height="30" border="0" alt=""></a>'; ?>
It worked.
But it's not working for the Add to Cart button which I have pasted on the Top.
Can anyone help me