jhande Posted May 21, 2010 Posted May 21, 2010 I have tried everything regarding the back button on the product info page; the original code, javascript, different edits found online and the below code which DID work. Suddenly it no longer works correctly. Instead of returning me to (say) page four in the category list, it returns me to page one. That's the same problem I've had with the other code versions. What really has me stumped, it works on my localhost site but not my live site. As I said... It did work and I haven't changed anything since. <!--new back button fix --> <?php $back = sizeof($navigation->path)-2; $others = ''; if (isset($navigation->path[$back])) { if ( ($isort!='') || ($ipage!='') ) { if ( $isort != '') $others .= '&sort=' . $isort; if ( $ipage != '') $others .= '&page=' . $ipage; } ?> <td width="180" align="left" class="light"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')) . $others, $navigation->path[$back]['mode']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td> <?php } ?> <!-- end back button fix --> Any help would be greatly appreciated! I'm just about ready to delete the button all together. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
jhande Posted May 21, 2010 Author Posted May 21, 2010 Never mind!!! Found another contribution... so far so good. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Recommended Posts
Archived
This topic is now archived and is closed to further replies.