Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding a "BACK" BUtton


speed2

Recommended Posts

Posted

hi guys, some one help me finding the contribution for adding a "back" button

to go back to main page to choose different product?

 

I went through the whole (almost) the forums and I can't find the posting or the contribution. Please help

 

thanks

Posted

java script:history.go(-1) would that work?

 

I have nav tools set up on my webpage in the header.

My Webpage

Posted

Thanks Streeflossin & nebng

 

I added

 

<?php

    $back = sizeof($navigation->path)-2;

    if (isset($navigation->path[$back])) {

?>

                <td class="main" align="center"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>

<?php

    }

?>

 

As nebng suggest, but its not working, please help

Archived

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

×
×
  • Create New...