pgrinder Posted July 9, 2008 Posted July 9, 2008 I know I've seen this some place but I can't find it in the post, I want to get rid of the button that says "Reviews" when looking at a product and replace it with a "Back" button that will take you to the front page. Someone had posted a way to do that but I can't find it. Thanks!
youcool51 Posted July 9, 2008 Posted July 9, 2008 go and find ur product_info.php replace: <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?> with: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?>
pgrinder Posted July 9, 2008 Author Posted July 9, 2008 Thank You!! go and find ur product_info.php replace: <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?> with: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?>
Guest Posted July 9, 2008 Posted July 9, 2008 Why take them all the way back to the beginning? Why not take them to where they were? Hence your topic title Remove "Reviews" button with "Back" button Replace the above with <a href="java script:history.go(-1)"><?php echo tep_image_button('button_back.gif', IMAGE_BYTTON_BACK); ?></a>
Guest Posted August 1, 2008 Posted August 1, 2008 Why take them all the way back to the beginning? Why not take them to where they were? Hence your topic title Remove "Reviews" button with "Back" button Replace the above with <a href="java script:history.go(-1)"><?php echo tep_image_button('button_back.gif', IMAGE_BYTTON_BACK); ?></a> Short changes to previous code as there are some small errors in it for the inexperienced user. There should be no space between 'java' and 'script'... <td><a href="java script:history.go(-1)"><?php echo tep_image_button('button_back.gif', IMAGE_BUTTON_BACK); ?></a></td> Otherwise great stuff, I used it on my site, got rid of the reviews button and added a back button. Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.