Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

simple question.....


Guest

Recommended Posts

Hey all,

 

I have scanned this forum, read the documentation and still I cant find an answer to this seemingly simple question:

 

how do I add the text 'price' before the product price, and the word 'QTY' before the product quantity? As of now, it just lists the price and quantity, but there is no indication as to what these numbers are.

 

Please help a newbie out..... :D

 

Luke

Link to comment
Share on other sites

I need to have 'price' and 'QTY' to appear in the catalog under the product descriptions. Right now the product description lists the price, but its just a number - as in $12.00. I would like it to appear as 'Price: $12.00'.

 

Luke

Link to comment
Share on other sites

If it's only in product_info.php you need it you might be able to edit:

      <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><h1><?php echo $products_name; ?></h1></td>
           <td id="headingPricePM"><h1><?php echo $products_price; ?></h1></td>
         </tr>
       </table></td>
     </tr>

I made some changes so it's a little different probably than your product_info.php

 

change it to:

      <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><h1><?php echo $products_name; ?></h1></td>
           <td id="headingPricePM"><h1>Price: <?php echo $products_price; ?></h1></td>
         </tr>
       </table></td>
     </tr>

or if you want to do it right (the above is one language only), something like:

      <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><h1><?php echo $products_name; ?></h1></td>
           <td id="headingPricePM"><h1><?php echo TEXT_PRICE . ' ' . $products_price; ?></h1></td>
         </tr>
       </table></td>
     </tr>

and then you should define TEXT_PRICE in the language file as 'Price:'

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...