Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick question


ksaun

Recommended Posts

Hey All, :P

 

How do I remove the "Customers who bought this product also purchased" box from my site?

 

It really doesn't apply to my site.

 

Also How do I remove the Review Buttons from my site?

 

:blink:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

The quickest/easiest way i found to remove the reviews button is to replace includes/languages/english/images/buttons/button_reviews.gif with

images/pixal_trans.gif

 

This will make the button invisible and unclickable

 

*and it only takes 2 seconds to do* :D

 

Not sure how to remove the "also purchased"

Link to comment
Share on other sites

Anybody?? :blink:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

1. remove reviews button...

 

 

Remove this code from product_info.php

 

 <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>

 

2. Remove also purchased:

 

Remove this code from product_info.php

 

       <td>
<?php
   if ((USE_CACHE == 'true') && empty($SID)) {
     echo tep_cache_also_purchased(3600);
   } else {
     include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
   }
 }
?>
       </td>

Link to comment
Share on other sites

1. remove reviews button...

Remove this code from product_info.php

 

 <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>

 

2.  Remove also purchased:

 

Remove this code from product_info.php

 

 ? ? ? <td>
<?php
? ?if ((USE_CACHE == 'true') && empty($SID)) {
? ? ?echo tep_cache_also_purchased(3600);
? ?} else {
? ? ?include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
? ?}
?}
?>
? ? ? ?</td>

 

I removed the code for the Review Button OK. But when I remove the code for the other code for the "also purchased" I get this error.

 

Parse error: parse error, unexpected $ in /hsphere/local/group-1/home/ksaun/tonerjunction.com/catalog/product_info.php on line 297

 

any ideas? :huh:

 

BTW there is no code on line 297

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

I removed the code for the Review Button OK. But when I remove the code for the other code for the "also purchased" I get this error.

any ideas? :huh:

 

BTW there is no code on line 297

 

Yes, you did get errors. You cannot remove the cells, it will cause coding problems with incomplete table/rows/cells problems.

 

In the 2 areas mentioned, right after the <?php enter a space, then /* and just before the closing ?> in each section, enter */

 

This will comment out the calls, and not interfere with table structures. Also won't change the line numbers for future reference to problems.

 

hth

GEOTEX from Houston, TX

 

(George)

Link to comment
Share on other sites

Yes, you did get errors. You cannot remove the cells, it will cause coding problems with incomplete table/rows/cells problems.

 

In the 2 areas mentioned, right after the <?php enter a space, then /* and just before the closing ?> in each section, enter */

 

This will comment out the calls, and not interfere with table structures. Also won't change the line numbers for future reference to problems.

 

hth

 

OK I did what you suggested and I still get an error.....

 

Parse error: parse error, unexpected $ in /hsphere/local/group-1/home/ksaun/tonerjunction.com/catalog/product_info.php on line 304

 

Here is Line 304

 

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

Here is a copy of my code for the "Also Purchaced" after the changes:

 

<?php /*
   if ((USE_CACHE == 'true') && empty($SID)) {
     echo tep_cache_also_purchased(3600);
   } else {
     include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
   }
 }
*/ ?>

 

Any Ideas? :blink:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

I guess you found the problem, as I don't get any errors on your site.

 

No, I didn't I just removed the /* and */ from the statement.

 

I still need a fix for this :blush:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

You put the */ after the wrong closing bracket. Try:

 

<?php
  /* if ((USE_CACHE == 'true') && empty($SID)) {
    echo tep_cache_also_purchased(3600);
  } else {
    include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
  } */
}
?>

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

You put the */ after the wrong closing bracket.  Try:

 

<?php
? /* if ((USE_CACHE == 'true') && empty($SID)) {
? ? echo tep_cache_also_purchased(3600);
? } else {
? ? include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
? } */
}
?>

 

Thanks :thumbsup:

My Favorite Quote from a movie.

 

Question: How do you know women sooo well?

 

Answer: I think of a man, then take away reason and accountability.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...