Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Return to catagory


stevemasson

Recommended Posts

Posted

Can someone please help me out, i'm trying to add a return to catagory button when someone is viewing an item within the catagory. I hope you understand what i mean.

 

Click on this link to see what i mean:-

example

 

There is no button to return to the catagory, you and me would know how to go back one step, however my visitors may not?

 

Thank you for your help

 

Regards

 

steve Masson

Posted

Add this after the reviews button:

 

<?php
   $back = sizeof($navigation->path)-2;
   if (isset($navigation->path[$back])) {
?>
               <td class="main"><?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_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>
<?php
   }
?>

 

Matti

Archived

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

×
×
  • Create New...