Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change number of columns in Product Listing page


JenRed

Recommended Posts

I have never liked the way that product_listing.php looks but don't really have the PHP skills to get it how I want.

 

I have installed the Short Description in Product Listing mod

http://www.oscommerce.com/community/contributions,67

and thought I would have another go at tackling the layout while I am at it.

 

I have kinda got it happening (well, not really... but potentially...) :)

 

eg. http://www.redinstead.com.au/default.php?c...?cPath=21_25_27

 

So what I think is happening is that somewhere in the php file, something is telling the page to use 6 columns (when I only need 3) and so it is duplicating things to fill the extra columns.

 

If I can get it to show only 3 columns I think it will be right (?)

 

I assume it has something to do with these tags:

 

for ($col=0; $col<sizeof($column_list); $col++) {

 

and

 

switch ($column_list[$col])  {

 

but I don't know how to make them say 3. Everything I try usually ends up a disaster!

 

Here is my code - I hope it's not too much of a disgrace! :)

 

Is there anyone who can tell me how to make the page display 3 columns only???

 

<?php

/*

 $Id: product_listing.php,v 1.41 2003/02/12 23:55:58 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/

?>

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

<?php

 $colspan = sizeof($column_list);

 $listing_numrows_sql = $listing_sql;

 $listing_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $listing_sql, $listing_numrows);

// fix counted products

 $listing_numrows = tep_db_query($listing_numrows_sql);

 $listing_numrows = tep_db_num_rows($listing_numrows);



 if ( ($listing_numrows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {

?>

 <tr>

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

     <tr>

       <td class="smallText"> <?php echo $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> </td>

       <td align="right" class="smallText"> <?php echo TEXT_RESULT_PAGE; ?> <?php echo $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?> </td>

     </tr>

   </table></td>

 </tr>

 <tr>

   <td><?php echo tep_draw_separator(); ?></td>

 </tr>

<?php

 }

?>

 <tr>

   <td valign=top>





<?php

/*

 $list_box_contents = array();

 $list_box_contents[] = array('params' => 'class="productListing-heading"');

 $cur_row = sizeof($list_box_contents) - 1;



 for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {

   switch ($column_list[$col]) {

     case 'PRODUCT_LIST_MODEL':

       $lc_text = TABLE_HEADING_MODEL;

       $lc_align = '';

       break;

     case 'PRODUCT_LIST_NAME':

       $lc_text = TABLE_HEADING_PRODUCTS;

       $lc_align = '';

       break;

     // Products Description Hack begins

     case 'PRODUCT_LIST_DESCRIPTION':

       break;

     // Products Description Hack ends

     case 'PRODUCT_LIST_MANUFACTURER':

       $lc_text = TABLE_HEADING_MANUFACTURER;

       $lc_align = '';

       break;

     case 'PRODUCT_LIST_PRICE':

       $lc_text = TABLE_HEADING_PRICE;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_QUANTITY':

       $lc_text = TABLE_HEADING_QUANTITY;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_WEIGHT':

       $lc_text = TABLE_HEADING_WEIGHT;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_IMAGE':

       $lc_text = TABLE_HEADING_IMAGE;

       $lc_align = 'center';

       break;

     case 'PRODUCT_LIST_BUY_NOW':

       $lc_text = TABLE_HEADING_BUY_NOW;

       $lc_align = 'center';

       break;

   }

   

   // Products Description Hack begins

   if ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW' &&

       $column_list[$col] != 'PRODUCT_LIST_IMAGE' &&

       $column_list[$col] != 'PRODUCT_LIST_DESCRIPTION')

     $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);



   if ($column_list[$col] != 'PRODUCT_LIST_DESCRIPTION') {

     $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                            'params' => 'class="productListing-heading"',

                                            'text'  => " " . $lc_text . " ");

   }

   // Products Description Hack ends

 }



*/



 if ($listing_numrows > 0) {

   $number_of_products = '0';

   $listing = tep_db_query($listing_sql);

   while ($listing_values = tep_db_fetch_array($listing)) {

     $number_of_products++;



     if ( ($number_of_products/2) == floor($number_of_products/2) ) {

       $list_box_contents[] = array('params' => 'class="productListing-even"');

     } else {

       $list_box_contents[] = array('params' => 'class="productListing-odd"');

     }



     $cur_row = sizeof($list_box_contents) - 1;

     

   for ($col=0; $col<sizeof($column_list); $col++) {







       $lc_align = '';

       // Products Description Hack begins

       $lc_params = '';

       // Products Description Hack ends







switch ($column_list[$col])  {

   

         case 'PRODUCT_LIST_NAME':

           $lc_align = '';

           if ($HTTP_GET_VARS['manufacturers_id']) {

             $lc_text = '<font size=2><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . $listing_values['products_name'] . '</a></font><br>Manufacturer: ' . $listing_values['manufacturers_name'] . '<br>Model No: ' . $listing_values['products_model'] . '<br><br> ' . osc_trunc_string(strip_tags($listing_values['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), PRODUCT_LIST_DESCRIPTION_LENGTH) . ' ';

           } else {

             $lc_text = ' <font size=2><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . $listing_values['products_name'] . '</a></font><br>Manufacturer: ' . $listing_values['manufacturers_name'] . '<br>Model No: ' . $listing_values['products_model'] . '<br><br> ' . osc_trunc_string(strip_tags($listing_values['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), PRODUCT_LIST_DESCRIPTION_LENGTH) . ' ';

           }

       break;

     

         

         case 'PRODUCT_LIST_PRICE':

           $lc_align = 'right';

           if ($listing_values['specials_new_products_price']) {

             $lc_text = ' <s>' .  $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> ';

           } else {

             $lc_text = ' ' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . ' ';

           }

         break;



                  case 'PRODUCT_LIST_IMAGE':

           $lc_align = '';

           if ($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_values['products_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';

           } else {

             $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';

           }

    break;     



 // Products Description Hack begins

           if (PRODUCT_LIST_DESCRIPTION > 0) {

           //  $lc_params = 'colspan="2" ';

                 }

           // Products Description Hack ends

          break;



         case 'PRODUCT_LIST_BUY_NOW':

           $lc_align = 'center';

           $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $listing_values['products_name'] . TEXT_NOW) . '</a> ';

         break;

       }



       // Products Description Hack begins

       $lc_params .= 'class="productListing-data"';

       if ($column_list[$col] == 'PRODUCT_LIST_DESCRIPTION') {

         $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                                'params' => $lc_params,

                                                'text' => $lc_text,

                                                'desc_flag' => 'true');

       } else {

         $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                                'params' => $lc_params,

                                                'text'  => $lc_text);

       }

       // Products Description Hack ends

     }

   }



   new tableBox($list_box_contents, true);



   echo '    </td>' . "n";

   echo '  </tr>' . "n";

 } else {

?>

 <tr class="productListing-odd">

   <td class="smallText"> <?php echo ($HTTP_GET_VARS['manufacturers_id'] ? TEXT_NO_PRODUCTS2 : TEXT_NO_PRODUCTS); ?> </td>

 </tr>

<?php

 }

?>

 <tr>

   <td><?php echo tep_draw_separator(); ?></td>

 </tr>

<?php

 if ($listing_numrows > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3')) {

?>

 <tr>

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

     <tr>

       <td class="smallText"> <?php echo $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> </td>

       <td align="right" class="smallText"> <?php echo TEXT_RESULT_PAGE; ?> <?php echo $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?> </td>

     </tr>

   </table></td>

 </tr>

<?php

 }

?>

</table>

 

 

thanks a lot

 

Jen

I haven't lost my mind - I have it backed up on disk somewhere.

Link to comment
Share on other sites

I just had a brainwave but I tried it and it didn't work.

 

I thought that maybe it is getting the number of columns from the Product Listing setup I have in Admin so I changed it so that it only showed 3 columns: Image, Name and Price (seeing as how I have the Man. Name, Model No. and Description all appearing after the Name in the same column) and it did give me only 3 columns - but the Man. Name, Model No. and Description wouldn't display in the Product Name column. Because they were turned off in Admin.

 

So I turned them back on and I am back to my original question - how do I get it to display only 3 columns?

 

Any way around this???

 

 

Jen

I haven't lost my mind - I have it backed up on disk somewhere.

Link to comment
Share on other sites

The number of columns is controlled by the size of the column list and I believe that list is created in default.php (starting with the commented line that reads "// create column list").

 

$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,

'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,

'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,

'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,

'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,

'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,

'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,

'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

asort($define_list);

 

I believe, but am not certain, that if you reduce the members of this array to three, you will find just three columns as you would like.

 

 

regards,

 

paul

Link to comment
Share on other sites

Take a look in product_listing_col.php

find : DEFINE('PRODUCT_LIST_COL_NUM',3);

 

Change the number 3 to what you want...

 

Thomas

 

I have never liked the way that product_listing.php looks but don't really have the PHP skills to get it how I want.

 

I have installed the Short Description in Product Listing mod

http://www.oscommerce.com/community/contributions,67

and thought I would have another go at tackling the layout while I am at it.

 

I have kinda got it happening (well, not really...  but potentially...)  :)

 

eg.  http://www.redinstead.com.au/default.php?c...?cPath=21_25_27

 

So what I think is happening is that somewhere in the php file, something is telling the page to use 6 columns (when I only need 3) and so it is duplicating things to fill the extra columns.

 

If I can get it to show only 3 columns I think it will be right (?)

 

I assume it has something to do with these tags:

 

for ($col=0; $col<sizeof($column_list); $col++) {

 

and

 

switch ($column_list[$col])  {

 

but I don't know how to make them say 3.  Everything I try usually ends up a disaster!  

 

Here is my code - I hope it's not too much of a disgrace!  :)

 

Is there anyone who can tell me how to make the page display 3 columns only???

 

<?php

/*

 $Id: product_listing.php,v 1.41 2003/02/12 23:55:58 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/

?>

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

<?php

 $colspan = sizeof($column_list);

 $listing_numrows_sql = $listing_sql;

 $listing_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $listing_sql, $listing_numrows);

// fix counted products

 $listing_numrows = tep_db_query($listing_numrows_sql);

 $listing_numrows = tep_db_num_rows($listing_numrows);



 if ( ($listing_numrows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {

?>

 <tr>

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

     <tr>

       <td class="smallText"> <?php echo $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> </td>

       <td align="right" class="smallText"> <?php echo TEXT_RESULT_PAGE; ?> <?php echo $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?> </td>

     </tr>

   </table></td>

 </tr>

 <tr>

   <td><?php echo tep_draw_separator(); ?></td>

 </tr>

<?php

 }

?>

 <tr>

   <td valign=top>





<?php

/*

 $list_box_contents = array();

 $list_box_contents[] = array('params' => 'class="productListing-heading"');

 $cur_row = sizeof($list_box_contents) - 1;



 for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {

   switch ($column_list[$col]) {

     case 'PRODUCT_LIST_MODEL':

       $lc_text = TABLE_HEADING_MODEL;

       $lc_align = '';

       break;

     case 'PRODUCT_LIST_NAME':

       $lc_text = TABLE_HEADING_PRODUCTS;

       $lc_align = '';

       break;

     // Products Description Hack begins

     case 'PRODUCT_LIST_DESCRIPTION':

       break;

     // Products Description Hack ends

     case 'PRODUCT_LIST_MANUFACTURER':

       $lc_text = TABLE_HEADING_MANUFACTURER;

       $lc_align = '';

       break;

     case 'PRODUCT_LIST_PRICE':

       $lc_text = TABLE_HEADING_PRICE;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_QUANTITY':

       $lc_text = TABLE_HEADING_QUANTITY;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_WEIGHT':

       $lc_text = TABLE_HEADING_WEIGHT;

       $lc_align = 'right';

       break;

     case 'PRODUCT_LIST_IMAGE':

       $lc_text = TABLE_HEADING_IMAGE;

       $lc_align = 'center';

       break;

     case 'PRODUCT_LIST_BUY_NOW':

       $lc_text = TABLE_HEADING_BUY_NOW;

       $lc_align = 'center';

       break;

   }

   

   // Products Description Hack begins

   if ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW' &&

       $column_list[$col] != 'PRODUCT_LIST_IMAGE' &&

       $column_list[$col] != 'PRODUCT_LIST_DESCRIPTION')

     $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);



   if ($column_list[$col] != 'PRODUCT_LIST_DESCRIPTION') {

     $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                            'params' => 'class="productListing-heading"',

                                            'text'  => " " . $lc_text . " ");

   }

   // Products Description Hack ends

 }



*/



 if ($listing_numrows > 0) {

   $number_of_products = '0';

   $listing = tep_db_query($listing_sql);

   while ($listing_values = tep_db_fetch_array($listing)) {

     $number_of_products++;



     if ( ($number_of_products/2) == floor($number_of_products/2) ) {

       $list_box_contents[] = array('params' => 'class="productListing-even"');

     } else {

       $list_box_contents[] = array('params' => 'class="productListing-odd"');

     }



     $cur_row = sizeof($list_box_contents) - 1;

     

   for ($col=0; $col<sizeof($column_list); $col++) {







       $lc_align = '';

       // Products Description Hack begins

       $lc_params = '';

       // Products Description Hack ends







switch ($column_list[$col])  {

   

         case 'PRODUCT_LIST_NAME':

           $lc_align = '';

           if ($HTTP_GET_VARS['manufacturers_id']) {

             $lc_text = '<font size=2><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . $listing_values['products_name'] . '</a></font><br>Manufacturer: ' . $listing_values['manufacturers_name'] . '<br>Model No: ' . $listing_values['products_model'] . '<br><br> ' . osc_trunc_string(strip_tags($listing_values['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), PRODUCT_LIST_DESCRIPTION_LENGTH) . ' ';

           } else {

             $lc_text = ' <font size=2><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . $listing_values['products_name'] . '</a></font><br>Manufacturer: ' . $listing_values['manufacturers_name'] . '<br>Model No: ' . $listing_values['products_model'] . '<br><br> ' . osc_trunc_string(strip_tags($listing_values['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), PRODUCT_LIST_DESCRIPTION_LENGTH) . ' ';

           }

       break;

     

         

         case 'PRODUCT_LIST_PRICE':

           $lc_align = 'right';

           if ($listing_values['specials_new_products_price']) {

             $lc_text = ' <s>' .  $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</s>  <span class="productSpecialPrice">' . $currencies->display_price($listing_values['specials_new_products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . '</span> ';

           } else {

             $lc_text = ' ' . $currencies->display_price($listing_values['products_price'], tep_get_tax_rate($listing_values['products_tax_class_id'])) . ' ';

           }

         break;



                  case 'PRODUCT_LIST_IMAGE':

           $lc_align = '';

           if ($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_values['products_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';

           } else {

             $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing_values['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing_values['products_image'], $listing_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> ';

           }

    break;     



 // Products Description Hack begins

           if (PRODUCT_LIST_DESCRIPTION > 0) {

           //  $lc_params = 'colspan="2" ';

                 }

           // Products Description Hack ends

          break;



         case 'PRODUCT_LIST_BUY_NOW':

           $lc_align = 'center';

           $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing_values['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $listing_values['products_name'] . TEXT_NOW) . '</a> ';

         break;

       }



       // Products Description Hack begins

       $lc_params .= 'class="productListing-data"';

       if ($column_list[$col] == 'PRODUCT_LIST_DESCRIPTION') {

         $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                                'params' => $lc_params,

                                                'text' => $lc_text,

                                                'desc_flag' => 'true');

       } else {

         $list_box_contents[$cur_row][] = array('align' => $lc_align,

                                                'params' => $lc_params,

                                                'text'  => $lc_text);

       }

       // Products Description Hack ends

     }

   }



   new tableBox($list_box_contents, true);



   echo '    </td>' . "n";

   echo '  </tr>' . "n";

 } else {

?>

 <tr class="productListing-odd">

   <td class="smallText"> <?php echo ($HTTP_GET_VARS['manufacturers_id'] ? TEXT_NO_PRODUCTS2 : TEXT_NO_PRODUCTS); ?> </td>

 </tr>

<?php

 }

?>

 <tr>

   <td><?php echo tep_draw_separator(); ?></td>

 </tr>

<?php

 if ($listing_numrows > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3')) {

?>

 <tr>

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

     <tr>

       <td class="smallText"> <?php echo $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?> </td>

       <td align="right" class="smallText"> <?php echo TEXT_RESULT_PAGE; ?> <?php echo $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?> </td>

     </tr>

   </table></td>

 </tr>

<?php

 }

?>

</table>

 

 

thanks a lot

 

Jen

Link to comment
Share on other sites

Take a look in product_listing_col.php  

find : DEFINE('PRODUCT_LIST_COL_NUM',3);

 

But I'm not using product_listing_col.php! I am just using product_listing.php

 

 

The number of columns is controlled by the size of the column list and I believe that list is created in default.php (starting with the commented line that reads "// create column list").

 

Thanks, but I'm not sure that it is either.

 

In any case, I have kinda sorted it out. It's not how I wanted it to be in the beginning but I think it will do nicely as it is now:

 

eg. http://www.redinstead.com.au/default.php?c...?cPath=21_25_27

 

 

Thanks anyway.

 

 

Jen

I haven't lost my mind - I have it backed up on disk somewhere.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...