Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New sessionID created when item added to cart


scarlett0512

Recommended Posts

I have modified the header so that all of the links are images, as well as making an image map for the main categories. Here's a little preview of what my links look like:

 

<table border="0" cellpadding="0" cellspacing="0" width="100%">

<tr>

<td align="right"><img border="0" src="images/spacer2.gif" width="31" height="28"></td>

<td align="right"><img border="0" src="images/spacer2.gif" width="59" height="28"></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_shoppingbag2.gif', HEADER_TITLE_CART_CONTENTS) . '</a>'; ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_myaccount.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>'; ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CUSTOMER_SERVICE) . '">' . tep_image(DIR_WS_IMAGES . 'header_customerservice2.gif', HEADER_TITLE_CUSTOMER_SERVICE) . '</a>'; ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_GIFT_CERTIFICATE) . '">' . tep_image(DIR_WS_IMAGES . 'header_giftcertificate.gif', HEADER_TITLE_GIFT_CERTIFICATE) . '</a>'; ?></td>

<td align="right"><img border="0" src="images/spacer2.gif" width="20" height="28"></td>

</tr>

<tr>

<td align="right">

<img border="0" src="images/spacer4.gif" width="10" height="71"></td>

<td align="right" colspan="5" rowspan="2" valign="bottom">

<!-- ImageReady Slices (header8.psd) -->

<MAP NAME="header_Map">

<AREA SHAPE="rect" ALT="sale items" COORDS="430,5,475,20" <?php echo '<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . '</a>'; ?>>

<AREA SHAPE="rect" ALT="create-a-sections" COORDS="294,5,424,20" <?php echo '<a href="' . tep_href_link(FILENAME_CREATE_SECTIONS) . '">' . '</a>'; ?>">

<AREA SHAPE="rect" ALT="accessories" COORDS="185,5,290,20" <?php echo '<a href="' . tep_href_link(FILENAME_ACCESSORIES) . '">' . '</a>'; ?>">

<AREA SHAPE="rect" ALT="tees" COORDS="132,5,182,19" <?php echo '<a href="' . tep_href_link(FILENAME_TEES) . '">' . '</a>'; ?>">

<AREA SHAPE="rect" ALT="jewelry" COORDS="60,5,130,20" <?php echo '<a href="' . tep_href_link(FILENAME_JEWELRY) . '">' . '</a>'; ?>">

<AREA SHAPE="rect" ALT="handbags" COORDS="5,5,55,20" <?php echo '<a href="' . tep_href_link(FILENAME_BAGS) . '">' . '</a>'; ?>">

</MAP>

<IMG SRC="images/header.gif" WIDTH=483 HEIGHT=24 BORDER=0 ALT="" USEMAP="#header_Map">

<!-- End ImageReady Slices --></td></tr>

</table>

</td>

</tr>

</table>

 

When I hover over any of these links, I receive the same sessionID, but whenever I try to add a product into the shopping cart, I receive a new sessionID. If I continue to add products into the shopping cart, I get new sessionIDs every time. So, it looks as though the cart was empty before adding the new product. BUT, when I log in and go to checkout, then everything that was previously added to the cart shows up together.

 

Does anyone know why I receive different sessionIDs when adding products to the shopping cart?

 

P.S. The shop is heavily modified, but this is a new problem. The shop isn't live yet...

 

Thx in advance.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...