Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Move "Add to cart" button to top of screen


808smokey

Recommended Posts

Posted

Hello,

 

I apologize if this has been asked b4 but I was unable to find anything through a search. But I would like to add the "reviews & Add to cart" buttons, located at the bottom of each product page, to the top. Right below the Item name.

 

WIll someone please point me in the right direction?

 

Thanks for the help :)

Posted

You can just add this table row to to the top of the html table in product_info.php

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

Posted

I copied that from product_info.php from Milestone 2.2ms2. You have to make sure you paste it inside the table tags. You also have to make sure that the image names are the same as the file you are using. Are you familiar with html?

  • 4 weeks later...

Archived

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

×
×
  • Create New...