NoID Posted February 12, 2010 Posted February 12, 2010 Hello Guys, I am starting to make my own osCommerce store, but wanted to ask if anyone knows a contribution or a way of easily being able to adjust the product page. As i need it to be like this, but am not sure what will be the file that will have the correct layout changes. Thank you guys. Have a good day.
multimixer Posted February 12, 2010 Posted February 12, 2010 Well the file is catalog/product_info.php and you don't need a contribution to change the look. What you need is some html knowledge. PS: No idea what you mean with those blue squares. You want that your product info show blue squares? My community profile | Template system for osCommerce - New: Responsive | Feedback channel
NoID Posted February 12, 2010 Author Posted February 12, 2010 Hello, Thank you for replying back and for the info. THose boxes are to show you guys how i want the layout to be, for example The one of the far left, is to have a picture, the top right to be info and the bottom 3 to be "Buy" "Tell a Friend" "Whatever". I was hoping that someone might have an example on that. THank you :)
multimixer Posted February 12, 2010 Posted February 12, 2010 All you need to do is to move the different "elements" you have in the html part of your product_info.php Example: This here is the product name and price <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> The real info is this here <?php echo $products_name; ?> You can "treat" this as if it would be number 100 in plain html Other example, the description <?php echo stripslashes($product_info['products_description']); ?> You treat it like having a text So, what you can do, is to cancel the existing html structure completely and create a new one, taking the info that is getting "echoed" and placing it into your new structure. Obviously you can not echo something before the query, so you need to do this after My community profile | Template system for osCommerce - New: Responsive | Feedback channel
NoID Posted February 12, 2010 Author Posted February 12, 2010 Hello, Thank you for the information, will help me when i start doing it. Thank you :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.