Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Whats the best way to link in osc?


Tye

Recommended Posts

Posted

Hi

 

I have been creating some extra static pages for my store and just linking directly to them like this:

<a href="http://www.store.com/aboutus.php">About Us </a>

But I have noticed that there is another method using 'tep' links

'<a href="' . tep_href_link(FILENAME_ABOUT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_ABOUT_US . '</a>'

 

My questions are:

 

1 - Will both methods work? My store seems to function normally using non tep links

2 - What is the reason for Tep linking?

3 - My site is heavily modified with lots of 'static' pages - which method do you think I should use?

 

Thanks

 

Tye

Posted

TEP ensures the sessions id is carried whereas sometimes static links don't.

 

I would go with Tep.

Your online success is Paramount.

Posted
Hi

 

I have been creating some extra static pages for my store and just linking directly to them like this:

<a href="http://www.store.com/aboutus.php">About Us </a>

But I have noticed that there is another method using 'tep' links

'<a href="' . tep_href_link(FILENAME_ABOUT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_ABOUT_US . '</a>'

 

My questions are:

 

1 - Will both methods work? My store seems to function normally using non tep links

2 - What is the reason for Tep linking?

3 - My site is heavily modified with lots of 'static' pages - which method do you think I should use?

 

Thanks

 

Tye

1 - You will have problems with losing SID's if you use the first method.

2 - To add the SID's.

3 - The second one.

 

Try visiting a page that links with the tep function. Notice the SID in the URL. Now click on one of the HTML links. Notice you no longer have the 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

Thanks yesudo, Jack_mcs

 

I am using the STS (simple Template System) and I can include the session ids with the links using the '$sid' tag.

 

Is there anyother benefit of using the 'tep' linking?

Posted

Sorry for being such a novice but could someone explain a little more about tep_href_link?

 

I, too, have static pages that are referenced using traditional html. Although they appear to be functional, after reading this post, I'm concerned that there is something that I'm missing.

Posted
TEP ensures the sessions id is carried whereas sometimes static links don't.

 

I would go with Tep.

 

 

I think this is the explanation.

Posted

I have HTML links on my site and i lose the "SID's" during normal play (onload of site) you dont even have to click the link. sometimes i get an SID and sometimes i dont. I would use the TEP if i were you. its just i havent worked out how.

the only think i have noticed with non tep links is the "whos online" function is allways recording you as a different user everytime you open your page.

eg.

i logged in and closed the page reopened the page and it said i was there twice, and 3 times......etc..... then after about 10-15 mins it would reset.

 

is there any other problems that can happen? will it affect the order process?

Thanks in advance!

 

Ben

Archived

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

×
×
  • Create New...