Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a text link - to body of text


smart

Recommended Posts

Posted

I have text after the login e.g.

 

Welcome back Name! Would you like to see which new products are available to purchase?

 

Then more text - saying Purchase from us XXX - Link To and Link To

 

these link go to a Catalogue link.

 

But when they go I loose the session.

 

And index.php?cPath=21&osCsid

 

The client has to log in again

 

Can this be done?

 

Thanks

Posted

Try something like this

      <?php echo '<a title="Some text" href="' . tep_href_link('product_info.php?cpath=37&products_id=408', '', 'NONSSL') . '">' . "Some Text" . '</a>'; ?>

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Does not work

 

Here is where I need the link.

 

define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?<BR> Purchase from Us - <a href="index.php?cPath=21&osCsid"><u>Link One</u></a> range and from the <a href="index.php?cPath=22&osCsid"><u>Link Two</u></a> range .</a>');

?

  • 3 years later...
Posted
Try something like this
      <?php echo '<a title="Some text" href="' . tep_href_link('product_info.php?cpath=37&products_id=408', '', 'NONSSL') . '">' . "Some Text" . '</a>'; ?>

 

Jack

 

 

I am trying to add a link in the product description over to another useful product that the customer might be interested in. I have TinyMCE installed and when I enter the code for the link and save it, the link is displayed but I get a 404 error page when I click it. So I went back to the description and looked at the HTML and found that when saved the code gets truncated and messed up. Any ideas on how to easily fix this since I would like to link quite a few products to one another.

 

The code I am adding looks like this and can you tell me if it will keep the session_id alive so the cart doesn't get emptied?

 

<a href="<?php echo tep_href_link('product_info.php','cPath=25_41&products_id=427'); ?>" class="main"> Words that are clickable </a>

Archived

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

×
×
  • Create New...