fleeced Posted June 24, 2015 Share Posted June 24, 2015 Any ideas how I can replace the code below that creates the "Buy" button on the New products homepage with a custom small image(.jpg) that I will add the text "15% off Marked Price" to //$new_prods_content .= ' <a href="' . tep_href_link($PHP_SELF, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products['products_id']) . '" class="btn btn-success" role="button">' . SMALL_IMAGE_BUTTON_BUY . '</a>'; (Code is taken from line 36 in includes/modules/new_products.php in OSC Bootstrap 2.3.4) Link to comment Share on other sites More sharing options...
Hotclutch Posted June 24, 2015 Share Posted June 24, 2015 Just replace it: //$new_prods_content .= '<img src="images/image.jpg" alt="" title="" width="" height="" class="img-responsive" />'; Or if you want to link the image somewhere: //$new_prods_content .= '<a href=""><img src="images/image.jpg" alt="" title="" width="" height="" class="img-responsive" /></a>'; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.