Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Page Layout


NoID

Recommended Posts

Posted

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.

 

11691421.gif

 

Thank you guys.

Have a good day.

Posted

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

Posted

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

Archived

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

×
×
  • Create New...