mivecxtr Posted December 8, 2005 Posted December 8, 2005 When oscommerce displays products, the add to cart button and reviews button are shown in a frame which is below the product description. How can I move this above the product description frame. This way the add to cart button will be more pronounced.
tina_boots Posted December 8, 2005 Posted December 8, 2005 When oscommerce displays products, the add to cart button and reviews button are shown in a frame which is below the product description. How can I move this above the product description frame. This way the add to cart button will be more pronounced. Before doing anything backup your product_info.php. I haven't tested this, I've only studied the code for a few minutes, I suggest doing the same. It might take some trial and error and you may have to make other adjustments to make it look nice. So I am just trying to point you in the direction of what you are attempting to do. Beginning around line 206 fine this section of code which defines the reviews and add to cart buttons: <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> Around line 89 is this code which defines the product title and price in large text: <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> </table></td> </tr> Be very careful about changing any of the code that resides above this last segment, because the code above it are the calls to the database and you want to be careful not to mess that up. So those are your anchor points, now its up to you to move things around and try to make them look nice. Again make sure you have a backup before you change anything. Good luck Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.