Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove "Reviews" button with "Back" button


pgrinder

Recommended Posts

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!

Link to comment
Share on other sites

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>'; ?>

Link to comment
Share on other sites

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>'; ?>

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • 4 weeks later...
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!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...