Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

image alignment


joekilo

Recommended Posts

Posted

can someone advise me on how to align my pictures in my catorgories.....they look untidy unaligned but in my whats new section they all align on the left nice.....how is this acieved thanks

 

 

also how can i get rid of the statement "lets see what we have here" cheers

jk

Posted

ps in addition to the alignment querie....my pics are too list close together also where as in my whats new section they are spaced out evenly and look much nicer....can this also be achieved thanks

jk

Posted

thanks but ive used this formula and its great ...but my problem isnt the image sizes....i want them to all alignleft evenly and be evenly spaced between each of them instead of right on top of one another.....

 

My whats new file has this perfectly..have a look joekilo.com

jk

Posted

try align"center"

the file for the edits to everthing above new products, below header are in includes/languages/english/default.php.

ftp them out ,and make your changes to avode white spaces

Posted

or align "center" valign"middle" or align"left" valign"middle" or align"left"

valign"top" or align"right" valign"bottom" try what you think, change as needed

Posted

sorry bout this i too have been on too long today. too...i am looking in this file and dont see where to make these alignment changes...should i be in catalog/default for this...unsure?

jk

Posted

depending on your verison: your looking for new_products file

the line your looking for will say something like (DIR_WS_IMAGES) the align=" something" there maybe more than one file named new_products

I hope your ftp. ing the file so you avoid white spaces, which you can get just going in and editing.

Posted

hi yep im ftp ing everything...new products? my whats new file is how is i want my other sections to look ...its my product images in my catagories files that are out of place...it comes up with default php at top bar...im just not sure how to change anything?

jk

Posted

here is my products_ new page code can i copy a section from here and place it into default or whichever is correct for my catagories product listing so that it aligns up images neatly and adds links likethis one does in whats new section?

 

?php

/*

 $Id: products_new.php,v 1.10 2002/11/25 23:50:27 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/

?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php

 $psize = sizeof($products_new_array);

 if ($psize == '0') {

?>

 <tr>

   <td class="main"><?php echo TEXT_NO_NEW_PRODUCTS; ?></td>

 </tr>

<?php

 } else {

   for($i=0; $i<$psize; $i++) {

     if ($products_new_array[$i]['specials_price']) {

       $products_price = '<s>' .  $currencies->display_price($products_new_array[$i]['price'], tep_get_tax_rate($products_new_array[$i]['tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($products_new_array[$i]['specials_price'], tep_get_tax_rate($products_new_array[$i]['tax_class_id'])) . '</span>';

     } else {

       $products_price = $currencies->display_price($products_new_array[$i]['price'], tep_get_tax_rate($products_new_array[$i]['tax_class_id']));

     }

?>

 <tr>

   <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new_array[$i]['id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $products_new_array[$i]['image'], $products_new_array[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td>

   <td valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new_array[$i]['id'], 'NONSSL') . '"><b><u>' . $products_new_array[$i]['name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . $products_new_array[$i]['date_added'] . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new_array[$i]['manufacturer'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?></td>

   <td align="right" valign="middle" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new_array[$i]['id'], 'NONSSL') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>'; ?></td>

 </tr>

<?php

     if (($i+1) != $psize) {

?>

 <tr>

   <td colspan="3" class="main"> </td>

 </tr>

<?php

     }

   }

 }

?>

</table>

 

if any one knows this id be greatful....

jk

Archived

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

×
×
  • Create New...