OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: For those new beginners
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Tips and Tricks
blr044
I found this link for a page full of great tips. So i thought I would pass this along.

Basic osCommerce Tutorials


blr044
digilee
There's plenty about - This one is quite good for beginners as well - oscommercehowto.com
peteschulte
Thank you Lee and Bennett. Though I've worked quite a bit with osc, I got some good new tips here!
blr044
QUOTE (digilee @ Mar 10 2008, 03:13 PM) *
There's plenty about - This one is quite good for beginners as well - oscommercehowto.com



I did follow your steps ti remove reviews button, but it is still there. Below is what my code looks like:

CODE
<?php
//$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
//$reviews = tep_db_fetch_array($reviews_query);
//if ($reviews['count'] > 0) {
?>
<!-- <tr>
<td class="main"><?php // echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
</tr>
<tr>
<td><?php // echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr> -->
<?php
//}
and the piece is:

CODE
<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_path($current_category_id = '')) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
<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>
<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>


Am I missing something?

blr044

Sorry, but I bet this should be posted in general support...
blr044
QUOTE (blr044 @ Mar 23 2008, 09:57 AM) *
I did follow your steps ti remove reviews button, but it is still there. Below is what my code looks like:

CODE
<?php
//$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
//$reviews = tep_db_fetch_array($reviews_query);
//if ($reviews['count'] > 0) {
?>
<!-- <tr>
<td class="main"><?php // echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
</tr>
<tr>
<td><?php // echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr> -->
<?php
//}
and the piece is:

CODE
<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_path($current_category_id = '')) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
<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>
<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>


Am I missing something?

blr044

Sorry, but I bet this should be posted in general support...


I have it removed now. It was with an earlier mod install.
repT|Le
What happened to the oscommercehowto.com site?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.