bkellum Posted January 1, 2007 Share Posted January 1, 2007 Marion, A simple way to make a "text" link to another PHP file from within your store is to add the following into the HTML of your template: <?php echo '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . 'Contact Us Link' . '</a>'; ?> The above would add a text line "Contact Us Link" and it will link to your osCommerce "contact_us.php" file. Now if you want to make an STS template for your "contact_us.php" file, simply create a HTML page and name it "contact_us.php.html". Be sure you have included the required HTML in that template. You can see what is required by looking at the "sts_blank_template.html" template in the "test" folder. Once you create your "contact_us.php.html" template, the link that you added above would automatically pull up your STS version of your contact us page (contact_us.php.html). You can also create a STS tag (placeholder/variable) to be used as your "contact us" text link. See my STS Tips, Tricks, and How To's in the STS4 Power Pack contribution site for more details. Hope this has helped, Bill Kellum Here is another way of making that link as well:<a href="<?php echo tep_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>" class="links"><?php echo Contact Us Link; ?></a> Quote 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 More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.