Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to change this to active link?


minghoo

Recommended Posts

Posted

Hi Guys,

 

How can i change this source code to active link:

 

$email_body .= sprintf(TEXT_EMAIL_LINK, tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])) . "\n\n" .
				 sprintf(TEXT_EMAIL_SIGNATURE, STORE_NAME . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n");

 

 

since those code from tell a friend email, what i want is product link, and store name can be active links when customer receive tell a friend email.

 

 

Thanks

 

sean

Posted

you could add the <a> tags around the tep_href_link something like this:

 

		$email_body .= sprintf(TEXT_EMAIL_LINK, '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']), false, false) . '">' . $product_info['products_name'] . '</a>' . "\n\n" .
		   sprintf(TEXT_EMAIL_SIGNATURE, STORE_NAME . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n");

Posted
you could add the <a> tags around the tep_href_link something like this:

 

		$email_body .= sprintf(TEXT_EMAIL_LINK, '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']), false, false) . '">' . $product_info['products_name'] . '</a>' . "\n\n" .
		   sprintf(TEXT_EMAIL_SIGNATURE, STORE_NAME . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n");

 

Thank you so much.

 

sean

Archived

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

×
×
  • Create New...