Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Productlink in email does not work


Kjolebutikken

Recommended Posts

Hi,

 

When an email is sent out from the tell a friend page, there is a link in this email to the product that is recommended you from your friend.

 

This does not work. It has to be copied and pasted in the browser.

 

Can anyone tell me how to make this link clickable, so that the person receiving this email can click on the link and go directly to the productpage for this product?

 

Thanks :-)

Best regards

Kjolebutikken

Link to comment
Share on other sites

Hi,

 

When an email is sent out from the tell a friend page, there is a link in this email to the product that is recommended you from your friend.

 

This does not work. It has to be copied and pasted in the browser.

 

Can anyone tell me how to make this link clickable, so that the person receiving this email can click on the link and go directly to the productpage for this product?

 

Thanks :-)

 

I found the answer at last. Thank you Enigma 1 for answering this in another post :-)

For others that wonder, here is the solution. In tell_a-friend.php, change:

 

$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");

 

to:

 

$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");

 

 

Thanks,

Best regards

Kjolebutikken

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...