Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I use tep_href_link in html pages?


Skittles

Recommended Posts

Posted

I've diligently used the search feature, hoping to find the answer. However, it either doesn't exist or I'm just not searching on the right words.

 

So here's my problem:

1) I'm integrating osCommerce with an existing site, doing all my development on my computer using xampp.

2) I've successfully installed osCommerce in a subdirectory off of "mysite" [

3) The files in "mysite" [
are straight html.

4) I know I should use the tep_href_link function to maintain sessions ids.

What I don't know is
how to use the tep_href_link function
from inside my html files.

Any help would be greatly appreciated. Thanks,

-Skittles

 

FYI: I've already made the changes in my .htaccess file that allow php code to be parsed in the html files.

Posted

Since your html pages won't have session ID's, there is no reason to use that function. Just link to it using an absolute url. There is a contribution that allows you to use oscommerce code outside of the oscommerce shop (sorry, don't recall the name) but unless you change your html pages to php pages, there is no way to attach a SID.

 

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
Since your html pages won't have session ID's, there is no reason to use that function. Just link to it using an absolute url. There is a contribution that allows you to use oscommerce code outside of the oscommerce shop (sorry, don't recall the name) but unless you change your html pages to php pages, there is no way to attach a SID.

 

Jack

 

Jack,

 

Thanks for getting back to me so quickly!

 

Sounds like I should force cookies, then. I don't want a frustrated shopper who's item(s) disappear from the cart just because they decided to check me out further before whipping out the plastic...

 

-Skittles

Posted
http://www.oscommerce.com/community/contributions,3257

 

Since you already have the Apache server parsing HTML files the above contribution will do exactly what you need.

 

Bobby

 

Thanks Bobby!

 

I've downloaded the contrib, and I'll check it out just as soon as Norton finishes it's virus scan! I'll check back and let you, and the community, know if it solves my problem.

 

-Skittles

Archived

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

×
×
  • Create New...