chrometweaks.org

What type of iPage hosting services do you prefer?

Click Here To View All Answers...


Got a question, hope someone can answer... What type of iPage hosting services do you prefer? Many thanks for any answer or 2. Another question... Hi, Does anyone know if it is possible to edit the product info page so that it just displays information on an item, but doesnt give the customer the choice of reading the reviews or adding to a shopping cart..

Comments (157)

Hmm... I need to find out myself. I don't know what is the answer to your question. I'll do some poking around and get back to you if I discover an answer. You should email the people at iPage as they probably could help you..

Comment #1

Just remove the lins that deal with that function..

Comment #2

Sorry, dont know much about html editing, which lines do I need to delete, in which folder is the code I need to edit located..

Comment #3

This.

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

   }.

   if (tep_not_null($product_info['products_url'])) {.

?>.

     <tr>.

       <td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto='urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

<?php.

   }.

   if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {.

?>.

     <tr>.

       <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>.

     </tr>.

<?php.

   } else {.

?>.

     <tr>.

       <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>.

     </tr>.

<?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"><?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>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

             </tr>.

           </table></td>.

         </tr>.

       </table></td>.

     </tr>.

In product info..

Comment #4

Thanks, for your help, which lines is it I would need to remove?..

Comment #5

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

<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"><?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>.

              <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

            </tr>.

          </table></td>.

        </tr>.

      </table>..

Comment #6

Thanks for your help again, one last question tho, in which folder is the hmtl I need to edit, is it the product_info file?..

Comment #7

Hi, Does anyone know if it is possible to edit the product info page so that it just displays information on an item, but doesnt give the customer the choice of reading the reviews or adding to a shopping cart..

Comment #8

Ok, would anyone mind sharing the information on how to do this please.

Cheers..

Comment #9


This question was taken from a support group/message board and re-posted here so others can learn from it.