mmbeenen Posted January 18, 2007 Posted January 18, 2007 Hi! I'm making a web shop for one of my customers and I have worked with a basic setup of OsCommerce, which included Reviewing. Now the customer wants that there is no reviewing possibily. Can anybody tell me how to take it all off? Thanks in advance, Maaike :blink:
CurrierSites Posted January 18, 2007 Posted January 18, 2007 Hi! I'm making a web shop for one of my customers and I have worked with a basic setup of OsCommerce, which included Reviewing. Now the customer wants that there is no reviewing possibily. Can anybody tell me how to take it all off? Thanks in advance, Maaike :blink: In the following file: /includes/column_right.php Try commenting out (add // in front of the line) the line shown here in red: include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> so it should look like this: include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } //require(DIR_WS_BOXES . 'reviews.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } ?> If you ever want to add reviews back, then just remove the //
mmbeenen Posted January 19, 2007 Author Posted January 19, 2007 :D :D :D Great Dan, thanks! It works :lol: :lol: :lol:
Guest Posted January 19, 2007 Posted January 19, 2007 The reviews button is also shown in the product info page too.. If you also want it removed from there then -- In product_info.php change: <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> to <td class="main"><?php //echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> 3. change: <td class="main"><?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>'; ?></td> to <td class="main"><?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>'; ?></td>
JakeWear Posted January 30, 2007 Posted January 30, 2007 I tried this and it didn't work for me. I'm not sure if my computer is caching but I thought I cleared it. I double checked my code and it still shows that I commented out these lines. The reviews button is also shown in the product info page too.. If you also want it removed from there then -- In product_info.php change: <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> to <td class="main"><?php //echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> 3. change: <td class="main"><?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>'; ?></td> to <td class="main"><?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>'; ?></td>
JakeWear Posted January 30, 2007 Posted January 30, 2007 :D YEAH... I got it to work. I tried this and it didn't work for me. I'm not sure if my computer is caching but I thought I cleared it. I double checked my code and it still shows that I commented out these lines.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.