Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent Help Needed! Please


melindaSA

Recommended Posts

Posted

I have added an image to my index.php page and use an image map to link to the categories. The links work just fine, but when I add a product to my shopping cart, and then continue shopping using the image to select another category, I loose the sessionID and whatever I have put in the shopping cart.

 

I have searched this forum for an answer with no luck!

 

Here is my code:

 

<map name="FMap0">
<area href="index.php?cPath=22" shape="rect" coords="58, 57, 149, 195">
<area href="index.php?cPath=23" shape="rect" coords="160, 57, 244, 198">
<area href="index.php?cPath=24" shape="rect" coords="260, 54, 355, 199">
<area href="index.php?cPath=25" shape="rect" coords="363, 56, 449, 200">
<area href="index.php?cPath=26" shape="rect" coords="466, 53, 558, 198">
<area href="index.php?cPath=27" shape="rect" coords="566, 54, 656, 199">
<area href="index.php?cPath=28" shape="rect" coords="90, 201, 172, 341">
<area href="index.php?cPath=32" shape="rect" coords="186, 211, 303, 322">
<area href="index.php?cPath=33" shape="rect" coords="310, 212, 419, 324">
<area href="index.php?cPath=30" shape="rect" coords="430, 214, 544, 325">
<area href="index.php?cPath=31" shape="rect" coords="552, 205, 644, 340">
</map>

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=2') . '">' . tep_image(DIR_WS_IMAGES . 'CartMainMenu.jpg', 'welcome','','','USEMAP="#FMap0" ') . '</a>'; ?>

 

Please any help would be greatly appreciated!

Posted

You have to use te_href_link() for the coordinates of the map. For instance:

<area href=" <?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=22'); ?> " shape="rect" coords="58, 57, 149, 195">

Posted
You have to use te_href_link() for the coordinates of the map.  For instance:

<area href=" <?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=22'); ?> " shape="rect" coords="58, 57, 149, 195">

 

Thank you so much, it works.......... :thumbsup:

Archived

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

×
×
  • Create New...