Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

puting weight in product info page


Recommended Posts

i am using this code to display weight in product info page

       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr height="40">
           <td class="pageHeading"><?php echo $product_info['products_name']; ?></td>
           <td align="right" class="pageHeading"><?php if (tep_session_is_registered('customer_id')) { echo $products_price;} ?></td>

            <td align="right" class="pageHeading">$<?php if (tep_session_is_registered('customer_id')) { echo $product_info['products_weight'];} ?>/Box</td>


two problems

1-i need "$"and"/box" to follow the if statments .

2-i don't want either the price or the weight to appear if it is=0.

3-i have added a field called key_id both in table_customers and table_products.

i want the if statment to also require a match beetween the two.

in another word i want the price weight and incart button to appar only if the key fields match.customer is registered and values are not zero.

Link to comment
Share on other sites


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

  • Create New...