Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Print osCsid


Recommended Posts

I want add this:


define('TEXT_MAIN', '<table align="center">

<tr align="center">

<td><a href="http://localhost/shop/index.php?cPath=8"><img src="/shop/images/index/aparatologia.jpg" border="0"><br><center>Aparatolog?a</center></a></td>

<td><a href="http://localhost/shop/index.php?cPath=11"><img src="/shop/images/index/complementos.jpg" border="0"><br><center>Complementos</center></a></td>


<tr align="center">

<td><a href="http://localhost/shop/index.php?cPath=7"><img src="/shop/images/index/estetica.jpg" border="0"><br><center>Est?tica</center></a></td>

<td><a href="http://localhost/shop/index.php?cPath=1"><img src="/shop/images/index/peluqueria.jpg" border="0"><br><center>Peluquer?a</center></a></td>

<td><a href="http://localhost/shop/index.php?cPath=12"><img src="/shop/images/index/solarium.jpg" border="0"><br><center>Solarium</center></a></td>




I want put this img link at my categories, but I can't add osCsid :\ ?It's posible?

Link to comment
Share on other sites

I, too, would like to know how this is done. Hope someone can help.


When I create a link (image or text) , it does not have the seession ID (oscID) attatched to it. so if a person is logged in before clicking the link, that person will no longer be logged in because the link does not have the a seession ID attached to it, therefore when the it is clicked, the site loses the current session and creates a new one.


Any help would be appreciated.

Link to comment
Share on other sites



Thanks. I saw your post but I have a problem understanding what you mean (as I feel the starter of this thread does, too).


What do you mean by "tep_image function"? Where do you put that code? I tried inserting it in the link somehow but was unsuccessful.


If you or anyone could elaborate on this for a newbie, I am sure I and the starter of this thread would appreciate it.


Again, thanks.

Link to comment
Share on other sites

Example, taken from header.php:


echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>';


Here you are using two functions:


1/ tep_href_link - this should be used for EVERY link within your Store, as this is what will maintain your SID


2/ tep_image - this writes HTML to allow you to place an image.


Mix them up and you can place an image inside a <a> as shown in the code above.


So, a text only link example:


<a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>


Creates a link to "logoff.php" with the text "logout"


An image link example:


echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>';


This creates a link to "account.php" using an image named "header_account.gif".

Link to comment
Share on other sites


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

  • Create New...