Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image map instead of a language box


leadfoot

Recommended Posts

Hi!

 

I searched the whole forum but didn't find anything! Maybe someone here can help? The thing i'm trying to do is to replace a language box with an image map in header. I've done a couple of changes to header.php:

 

<tr class="header">

<td align="left" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'header.gif', 'myshopname','','','usemap="#map"') . '<map name="Map">

<area shape="rect" coords="223,7,311,25" href="' . tep_href_link(basename($PHP_SELF) . '?language=xx"' . tep_session_name() . '=' . tep_session_id()) . '>

<area shape="rect" coords="195,30,286,48" href="' . tep_href_link(basename($PHP_SELF) . '?language=xx"' . tep_session_name() . '=' . tep_session_id()) . '>

<area shape="rect" coords="165,52,236,69" href="' . tep_href_link(basename($PHP_SELF) . '?language=xx"' . tep_session_name() . '=' . tep_session_id()) . '>

</map></a>'; ?></td>

</tr>

 

Now image maps are working and languages are switching but I can't make it remember the current path! So every time I switch languages browser goes back to index.php! So is it possible to keep the path? Obviously, I need something else instead of (basename($PHP_SELF)? PLZ help!

 

Paul

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...