richard05 Posted April 10, 2005 Posted April 10, 2005 I would like to disable "Add to Cart" button function or make it invisible. How can I do this? Since I use osCommerce for linking purpose meaning that I only make links to the products of other sites offer. So I don't really need "Add to Cart" function. Would anyone let me know which file should be modified? Richard
Dez Posted April 10, 2005 Posted April 10, 2005 Remove the following code from product_info.php <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr>
richard05 Posted April 10, 2005 Author Posted April 10, 2005 After removing the code (I commented out) I got the following message: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request." I have to upload the original file, but It did not work even with the original file without any change made. Can you let me know what should I do? Richard
Recommended Posts
Archived
This topic is now archived and is closed to further replies.