Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Make link to product id in html


al3ks

Recommended Posts

How can I make a link to one of my products within html code (in the language definitions pages)?

 

I'm guessing may something to do with using "%s" but not sure.

 

 

Some help would be very appreciated.

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

@@al3ks

 

I have been watching your recent posts and all I can say is............don't do it ! You will not be able to maintain the OSCID and session if you try to pull data into HTML pages. Browser back buttons, multiple tabs (windows) and other factors are going to cause failing checkout processes. You are better off to use the cart as it is intended and forego the headaches cart failures.

 

 

 

Chris

Link to comment
Share on other sites

@@DunWeb

 

I think you've misunderstood me. Basically I have a new page like shipping.php and in there I have text from english language folder. I want to put a hyperlink to one product/category on that page.

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

@@multimixer

 

but it doesn't work in the language definition files like this one: /catalog/includes/languages/english/shipping.php for example...

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

How do you add it?

 

Try this

 


define('TEXT_INFORMATION', 'Put here your Privacy Notice information.
<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=123') . '">' . 'my great product' . '</a>
');

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...