Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS - Linking to shipping.php inside a filename.php.html ?


dredd15

Recommended Posts

I'm a bit lost.

 

I'm running OSCommerce RC2 and STSv4.5.8.

 

I'm inside my sts_template.html and I added a few graphics to the sidebar of my template ... one of which needs to link to shipping.php ... but it is my understanding that if I simply link to "shipping.php" it will break my session.

 

The file is a .html file, so I can't use the PHP tep_href stuff ...

 

How do I do this? Help?

 

Jason

Link to comment
Share on other sites

I'm a bit lost.

 

I'm running OSCommerce RC2 and STSv4.5.8.

 

I'm inside my sts_template.html and I added a few graphics to the sidebar of my template ... one of which needs to link to shipping.php ... but it is my understanding that if I simply link to "shipping.php" it will break my session.

 

The file is a .html file, so I can't use the PHP tep_href stuff ...

 

How do I do this? Help?

 

Jason

Jason, you need to familiarize yourself with STS and its capabilities.

 

  1. You can use PHP coding inside your STS template.
  2. You can create a STS tag that is session ID friendly:
    $sts->template['urlshipping'] = tep_href_link(FILENAME_SHIPPING, '', 'NONSSL');


  3. You can also simply link the image as so:
    <a href="<?php echo tep_href_link('shipping.php', 'NONSSL'); ?>"


IMPORTANT: Please post all STS related questions in the proper STS support thread. The link is published in the STS User Manual as well as in my signature below (STSv4 Forum). Hope to see you there.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...