Add php Links with Session IDLast Update: 22nd November, 2005
Article ID: 252



Introduction

A regular graphic for a product in the right or left columns may be used for design purposes which would be linked to the product of that graphic. When this graphic is linked up it should carry with it the "session id" so the customer can shop and purchase from this link. If you don't want to have the session ID in the url, you will need to enable the force cookie usage option in the store admin. The preference is to link up correctly.

Graphic Links

Adding php links to a regular graphic uses the tep_href_link() function which is what carries the session id.




Text Links

Text links can be added a couple of ways which is a matter of preference.

<?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT) . '">' . 'CHECKOUT' . '</a>'; ?>


Or like this:

<a href="<?php echo tep_href_link(FILENAME_CHECKOUT, '', 'SSL'); ?>" class="links"><?php echo HEADER_TITLE_CHECKOUT; ?></a>

 

 

Trademark Policy | Copyright Policy | Sitemap

Copyright © 2000-2005 osCommerce. All rights reserved.