Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quick Formatting Question?


peterpil19

Recommended Posts

Hi, hope someone can help...

 

In my product info page, there is the product picture, and then underneath there are a few category fields and then the description. The product picture by default is in a table, and the category fields and description are in separate tables.

 

For some reason, the category fields begin right next to my picture, rather than below..

 

Is there a HTML tag that will tell the 2nd table to begin underneath the first one, instead of wrapping?

 

Thanks for any help!

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

Hi, hope someone can help...

 

In my product info page, there is the product picture, and then underneath there are a few category fields and then the description. The product picture by default is in a table, and the category fields and description are in separate tables.

 

For some reason, the category fields begin right next to my picture, rather than below..

 

Is there a HTML tag that will tell the 2nd table to begin underneath the first one, instead of wrapping?

 

Thanks for any help!

 

--Peter

 

try <br> or better <p>

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Have tried those. Originally I had around 9 x <br>'s after the picture, however depending on picture size, the text would appear below the picture or next to it (going behind column_right). I really can't understand it. Have a look at www.greekandromancoins.com, choose a product to see.

 

Here's the relevant part of the code from product info.php, if anyone's willing?

 

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="20" vspace="20"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

</td>

</tr>

</table>

 

(HERE's WHERE I'd PUT the 8 <br>'s)

 

<!-- Category Fields //-->

<table border="0" cellspacing="0" cellpadding="2">

<?php

}

$extra_fields_query = tep_db_query("SELECT pef.products_extra_fields_name as name, ptf.products_extra_fields_value as value FROM ". TABLE_PRODUCTS_EXTRA_FIELDS ." pef LEFT JOIN ". TABLE_PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS ." ptf ON ptf.products_extra_fields_id=pef.products_extra_fields_id WHERE pef.products_extra_fields_status = 1 and ptf.products_id=". (int)$products_id ." ORDER BY products_extra_fields_order");

 

while ($extra_fields = tep_db_fetch_array($extra_fields_query)) {

if ($extra_fields['value'] != '') {

?>

<tr>

<td class="main" valign="top"><b><?php echo $extra_fields['name']; ?>:</b></td>

<td class="main"><?php echo $extra_fields['value']; ?><br/></td>

</tr>

<?

}

}

 

?>

</table>

<!-- Category Fields EOF //-->

 

 

Thanks again,

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

Problem Fixed! i don't know how either! This is the point where I make a full backup....

 

--Peter

CE PHOENIX SUPPORTER

Support the Project, go PRO and get access to certified add ons

Full-time I am a C-suite executive of a large retail company in Australia. In my spare time, I enjoying learning about web-design.

Download the latest version of CE Phoenix from gitHub here

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...