Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

create a hyperlink from the define


billyjack

Recommended Posts

Posted

I am trying to creat a hyperlink in an email after the user account has been created.

 

My problem is nothing seems to work and it only passes the text. I am putting this in the admin/includes/application_top.php file.

I have tried echo, " ect. but nothing seems to work.

any help would be appreciated.

 

define('EMAIL_TEXT_CONFIRM2', '<A href=\"www.handynursery.com\">Welcome to our Online Catalog<\/A>');

Posted

While this was done to add the Fedex tracking number link directly into the e-mail when that status is changed to "shipped" in admin/orders.php rather than the customer having to login to account to track.... it might give you some ideas of how to change the e-mail that goes out in create_account.php to include a link.

 

          $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n"  . EMAIL_TEXT_FEDEX_TRACK_NUM . " http://www.fedex.com/cgi-bin/tracking?tracknumbers=" . $fedex_track_num . "&action=track&language=english&cntry_code=us\n\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

Posted
define('EMAIL_TEXT_CONFIRM2', '<A href=\"www.handynursery.com\">Welcome to our Online Catalog<\/A>');

You need to not use the '\' slash in your A tags.

 

-Chris

Chris Sullivan

Archived

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

×
×
  • Create New...