Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

More Info button above buy now button


daisy janie

Recommended Posts

I'm adding a "more info" button above my "buy now" button on the product listing page.

 

Following a previous post that seems to make logical sense, I edited the modules/product_listing.php from this:

 

case 'PRODUCT_LIST_BUY_NOW':

$lc_align = 'center';

$lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';

break;

 

to this:

 

case 'PRODUCT_LIST_BUY_NOW':

$lc_align = 'center';

$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image_button('button_more_info.gif', IMAGE_BUTTON_MORE_INFO) . '</a><br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'pName')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';

break;

 

I added the appropriate button in the languages/english/images/buttons file and also added define('IMAGE_BUTTON_MORE_INFO', 'More Info'); to the languages/english/images/buttons file.

 

BUT THIS BUTTON IS SHOWING UP! Seems to me if I were doing something wrong, the "buy Now" button wouldn't show up either. If you have any insight, please let me know!

 

Thanks

Jan

www.daisyjanie.com

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...