Jump to content
Sign in to follow this  
fleeced

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)

Share this post


Link to post
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>';

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×