Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product listing alignment probem?


jigga1234

Recommended Posts

Hello,

 

I am trying to make my product listings look how my boss wants them to and I am stuck at one problem.

 

I realise that there are many contributions out there that have different ways to set up the listing however he is really happy with what we have apart from one thing.

 

I have three fields that display next to the thumbnail image on my product_info.php.

 

modelman which is the manufacturers name and then the model name

short_desc which is a short description of the product.

A more info button.

 

I have managed to make the modelman and small info button appear 3 spaces from the left of the thumbnail image so that they look neat however my short_desc is still right next to the image which looks bad.

 

I have tried putting in the three   that are needed in many different places however it still remains in the wrong place.

 

Below is the code that refers to the part of product_info.php that I am having problems with and it is in the format that works apart from short_desc.

 

case 'PRODUCT_LIST_NAME':
           $lc_align = 'left';
           if (isset($HTTP_GET_VARS['manufacturers_id'])) {
           $lc_text = '   <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"><b>' . $listing['products_modelman'] . '</a></b>' . $listing['short_desc'] . '</b><br />' . '   <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('more_information.png', IMAGE_BUTTON_MORE_INFO);
               } else {
           $lc_text = '   <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"><b>' . $listing['products_modelman'] . '</a></b>' . $listing['short_desc'] . '</b><br />' . '   <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('more_information.png', IMAGE_BUTTON_MORE_INFO);} 
          break;

 

you can view what I mean by the problem here The listing that is incorrect

 

Thank you for anyone who looks at this and I look forward to any help.

Link to comment
Share on other sites

You can easily add CSS selectors to the product listings without going through a contribution. Using CSS you can move the elements every which way.

 

http://www.oscommerce.com/forums/topic/352919-convert-product-listings-to-table-less-css/

 

Follow this thread toward the bottom, where the process is summarized in three steps.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...