Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to replace "buy now" with external link


prettyswan

Recommended Posts

Posted

i changed

$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>

 

to

$lc_text = '<a href="' . tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>

 

but it doesn't work.

the url shows:

http://www.site.com/redirect.php...n=url&goto=

i don't know how to get the right url.

can anyone help me?

thanks

Archived

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

×
×
  • Create New...