Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Replace a "Buy Now" button with a "Special Offer" image (New_Products)


Recommended Posts

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

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

Archived

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

×
×
  • Create New...