Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Buy Now Button to More Info in Category Listing


islandgeek

Recommended Posts

This is my second problem tonight!

 

I want to change the buy now button on all my category pages to read More Info and to have it link to the individual product information page rather than adding the item to cart, this is because many of the products contain a high voltage disclaimer that has to be read.

 

I know how to change the text on the button from english.php to read more info but how do I change the link from adding to cart to going to the individual product info page?

 

Here is one of the pages where I want this to work:

 

http://www.magsells.co.uk/industrial-microwave-parts-c-5.html#top

 

Many thanks for any help on this.

Link to comment
Share on other sites

Hi

 

In the file /includes/modules/product_listing.php

 

you'll have to find the code for the 'buy now' button and replace it with something like this (but it needs modification based on your code in product_listing)

 

<?php echo tep_draw_button(IMAGE_BUTTON_MORE_INFO, 'info', tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_listing['products_id']); ?>

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...