Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move "Add to Cart" Button to the Top


k1w1guy

Recommended Posts

The bit you need it:

 

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

 

It's near the bottom of the file

 

If you look in the same filem near the top, for :

 

      <tr>

        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

          <tr>

            <td class="pageHeading" valign="top"><?php echo $products_name; ?></td>

            <td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>

          </tr>

 

This is the start of where the layout of the product page is defined - all you need to do now is decide where to put it!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...