Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Name not displaying on category page - product listing help


cconlin

Recommended Posts

Sorry-- I posted this on Tips & Tricks but I think that was a mistake and I can't move it. Here's my post:

 

I can't seem to get the product name to display when I go to a category. How do I modify product listing to display the name?

 

Currently on the home page, the products list in a grid fashion, and all of them show up with images if they are available. Where there are no images, at least the name shows.

When I go to a specific category, the page lists the products in rows only (why not in grid???). In the Product Name column, I only get the associated product images, not the names. Some products don't have images at all, so there is a huge listing of "(no name)" products, their prices, and Buy Now button. Obviously I need to identify the products, and I'd like to use the name. How do I do that? I feel so dense. Once I get to the product info page for a particular product, the name displays.

 

Also, how do I configure these inner pages (like clicking on a category) to show up in boxes or a grid layout rather than flat rows?

 

Thanks for any help you can offer - I can't find which files to change and I'm so far behind!!!

 

Cindy

Link to comment
Share on other sites

You have made changes to the product_info.php and changes the jquery statement or added a jquery statement that is conflicting.

 

 

 

 

Chris

Link to comment
Share on other sites

hi

 

try this

go to admin - configuration - product listing - display product name - edit

 

and check the number

 

1= name first

2= name after image

3= after price

4= after buy now

0= no name

 

bye

Link to comment
Share on other sites

Hi Ivan - the number there is 1.

1= name first

2= name after image

3= after price

4= after buy now

0= no name

 

By the way - where did you get the info for these number settings in the config? There are no "hints" listed on most of the config numbers, so I have been assuming that 0 = "do not display", 1 = "display", unless there is a hint for placement such as you described.

Link to comment
Share on other sites

Hi Chris,

The product_info.php file seems to display the individual product pages fine, so I'm confused. The category page url shows it to still be on the index.php page.

 

I did make changes when I installed products_extra_fields addon.

Should I post my code for the product_info.php? What should I look for? To me, it all seems conflicting.

 

Thank you,

Cindy

Link to comment
Share on other sites

Here is my code for product_info.php

 

<?php
/*
 $Id$

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2010 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

 $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
 $product_check = tep_db_fetch_array($product_check_query);

// begin Extra Product Fields
 $epf = array();
 if ($product_check['total'] > 0) {
   $epf_query = tep_db_query("select * from " . TABLE_EPF . " e join " . TABLE_EPF_LABELS . " l where e.epf_status and (e.epf_id = l.epf_id) and (l.languages_id = " . (int)$languages_id . ") and l.epf_active_for_language order by epf_order");
   while ($e = tep_db_fetch_array($epf_query)) {  // retrieve all active extra fields
     $field = 'extra_value';
     if ($e['epf_uses_value_list']) {
       if ($e['epf_multi_select']) {
         $field .= '_ms';
       } else {
         $field .= '_id';
       }
     }
     $field .= $e['epf_id'];
     $epf[] = array('id' => $e['epf_id'],
                    'label' => $e['epf_label'],
                    'uses_list' => $e['epf_uses_value_list'],
                    'multi_select' => $e['epf_multi_select'],
                    'columns' => $e['epf_num_columns'],
                    'display_type' => $e['epf_value_display_type'],
                    'show_chain' => $e['epf_show_parent_chain'],
                    'search' => $e['epf_advanced_search'],
                    'keyword' => $e['epf_use_as_meta_keyword'],
                    'field' => $field);
   }
   $query = "select p.products_date_added, p.products_last_modified, pd.products_name";
   foreach ($epf as $e) {
     if ($e['keyword']) $query .= ", pd." . $e['field'];
   }
   $query .= " from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'";
   $pname = tep_db_fetch_array(tep_db_query($query));
   $datemod = substr((tep_not_null($pname['products_last_modified']) ? $pname['products_last_modified'] : $pname['products_date_added']), 0, 10);
 } else {
   $pname = TEXT_PRODUCT_NOT_FOUND;
   $datemod = date('Y-m-d');
 }
// end Extra Product Fields

 require(DIR_WS_INCLUDES . 'template_top_extra_fields.php');

 if ($product_check['total'] < 1) {
?>

<div class="contentContainer">
 <div class="contentText">
   <?php echo TEXT_PRODUCT_NOT_FOUND; ?>
 </div>

 <div style="float: right;">
   <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?>
 </div>
</div>

<?php
 } else {
     // begin Product Extra Fields
   $query = "select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id";
   foreach ($epf as $e) {
     $query .= ", pd." . $e['field'];
   }
   $query .= " from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'";
   $product_info_query = tep_db_query($query);
   // end Product Extra Fields
   $product_info = tep_db_fetch_array($product_info_query);

   tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

   if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
     $products_price = '<del>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</del> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
   } else {
     $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
   }

   if (tep_not_null($product_info['products_model'])) {
     $products_name = $product_info['products_name']; 
  //. '<br /><span class="smallText">[' . $product_info['products_model'] . ']</span>';
   } else {
     $products_name = $product_info['products_name'];
   }
?>

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>

<div>
 <h1 style="float: right;"><?php echo $products_price; ?></h1>
 <h1><?php echo $products_name; ?></h1>
</div>

<div class="contentContainer">
 <div class="contentText">

<?php
   if (tep_not_null($product_info['products_image'])) {
     $pi_query = tep_db_query("select image, htmlcontent from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order");

     if (tep_db_num_rows($pi_query) > 0) {
?>

   <div id="piGal" style="float: right;">
     <ul>

<?php
       $pi_counter = 0;
       while ($pi = tep_db_fetch_array($pi_query)) {
         $pi_counter++;

         $pi_entry = '        <li><a href="';

         if (tep_not_null($pi['htmlcontent'])) {
           $pi_entry .= '#piGalimg_' . $pi_counter;
         } else {
           $pi_entry .= tep_href_link(DIR_WS_IMAGES . $pi['image']);
         }

         $pi_entry .= '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $pi['image']) . '</a>';

         if (tep_not_null($pi['htmlcontent'])) {
           $pi_entry .= '<div style="display: none;"><div id="piGalimg_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div></div>';
         }

         $pi_entry .= '</li>';

         echo $pi_entry;
       }
?>

     </ul>
   </div>

<script type="text/javascript">
$('#piGal ul').bxGallery({
 maxwidth: 300,
 maxheight: 200,
 thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>,
 thumbcontainer: 300,
 load_image: 'ext/jquery/bxGallery/spinner.gif'
});
</script>

<?php
     } else {
?>
<!--image was here to float right -->


<?php
     }
?>

<script type="text/javascript">
$("#piGal a[rel^='fancybox']").fancybox({
 cyclic: true
});
</script>

<?php
   }
?>

<?php echo '<p>' . stripslashes($product_info['products_description']) . '</p>'; ?>

<?php
 // begin Extra Product Fields
 foreach ($epf as $e) {
   $mt = ($e['uses_list'] && !$e['multi_select'] ? ($product_info[$e['field']] == 0) : !tep_not_null($product_info[$e['field']]));
   if (!$mt) { // only display if information is set for product
     echo '<b>' . $e['label'] . ': </b>';
     if ($e['uses_list']) {
       if ($e['multi_select']) {
         $values = explode('|', trim($product_info[$e['field']], '|'));
         $listing = array();
         foreach ($values as $val) {
           $listing[] = tep_get_extra_field_list_value($val, $e['show_chain'], $e['display_type']);
         }
         echo implode(', ', $listing);
       } else {
         echo tep_get_extra_field_list_value($product_info[$e['field']], $e['show_chain'], $e['display_type']);
       }
     } else {
       echo $product_info[$e['field']];
     }
     echo '<br>';
   }
 }
 // end Extra Product Fields
   $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
   $products_attributes = tep_db_fetch_array($products_attributes_query);
   if ($products_attributes['total'] > 0) {
?>

   <p><?php echo TEXT_PRODUCT_OPTIONS; ?></p>

   <p>
<?php
     $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");
     while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {
       $products_options_array = array();
       $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");
       while ($products_options = tep_db_fetch_array($products_options_query)) {
         $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
         if ($products_options['options_values_price'] != '0') {
           $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
         }
       }

       if (is_string($HTTP_GET_VARS['products_id']) && isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {
         $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];
       } else {
         $selected_attribute = false;
       }
?>
     <strong><?php echo $products_options_name['products_options_name'] . ':'; ?></strong><br /><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?><br />
<?php
     }
?>
   </p>

<?php
   }
?>
   <div id="piGal" style="text-align:center;">
     <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, null, 'hspace="5" vspace="5"') . '</a>'; ?>
   </div>

<?php
   if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>

   <p style="text-align: center;"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></p>

<?php
   }
?>

 </div>

<?php
   $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and reviews_status = 1");
   $reviews = tep_db_fetch_array($reviews_query);
?>

 <div class="buttonSet">
   <span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>

   <?php // echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?>
 </div>

<?php
   if ((USE_CACHE == 'true') && empty($SID)) {
     echo tep_cache_also_purchased(3600);
   } else {
     include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
   }
?>

</div>

</form>

<?php
 }

 require(DIR_WS_INCLUDES . 'template_bottom.php');
 require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Link to comment
Share on other sites

hi

 

productinfo.php is not the problem

have you change something in catalog/includes/modules/product_listing.php ?

that file shows the product's list.

 

in your code (product listing page) there is no column "product name"

 

bye

Link to comment
Share on other sites

Click on any category on the left.

The page it brings you to is the page I'm talking about.

There are column headings for Products, Price, and Buy Now.

Link to comment
Share on other sites

hi

 

that's what I'm looking at (and that's index.php not product_info.php), and ok says

product name - price - buy now (3 columns)

and there must be 4 columns

image(don't show this name) - product name - price - buy now

 

in your case says "product name" but shows product image instead, so I think that something is wrong in catalog/includes/modules/product_listing.php.

 

you can see the code, go to your product list page then right click to see the code.

 

if all of this happen after you installed any contribution, check everything again

Link to comment
Share on other sites

Here is my product_listing.php page code.

Is this where something is wrong, perhaps? Specifically where the //extra products fields code resides?

 

Chris (DunWeb), I didn't change any jquery statements that I'm aware of.

 

Thanks again, I am looking too (pulling hair out...)

 

<?php
/*
 $Id$

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2010 osCommerce

 Released under the GNU General Public License
*/

 $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id');
?>

 <div class="contentText">

<?php
 if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) {
?>

   <div>
     <span style="float: right;"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></span>

     <span><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></span>
   </div>

   <br />

<?php
 }

 $prod_list_contents = '<div class="ui-widget infoBoxContainer">' .
                       '  <div class="ui-widget-header ui-corner-top infoBoxHeading">' .
                       '    <table border="0" width="100%" cellspacing="0" cellpadding="2" class="productListingHeader">' .
                       '      <tr>';

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

   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;
     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;
   }

   if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
     $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);
   }

   $prod_list_contents .= '        <td' . (tep_not_null($lc_align) ? ' align="' . $lc_align . '"' : '') . '>' . $lc_text . '</td>';
 }

 $prod_list_contents .= '      </tr>' .
                        '    </table>' .
                        '  </div>';

 if ($listing_split->number_of_rows > 0) {
   $rows = 0;
   $listing_query = tep_db_query($listing_split->sql_query);

   $prod_list_contents .= '  <div class="ui-widget-content ui-corner-bottom productListTable">' .
                          '    <table border="0" width="100%" cellspacing="0" cellpadding="2" class="productListingData">';

   while ($listing = tep_db_fetch_array($listing_query)) {
     $rows++;

     $prod_list_contents .= '      <tr>';

     for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
       switch ($column_list[$col]) {
         case 'PRODUCT_LIST_MODEL':
           $prod_list_contents .= '        <td>' . $listing['products_model'] . '</td>';
           break;
         case 'PRODUCT_LIST_NAME':
           // begin extra product fields
           $extra = '';
           foreach ($epf as $e) {
             if ($e['listing']) {
               $mt = ($e['uses_list'] && !$e['multi_select'] ? ($listing[$e['field']] == 0) : !tep_not_null($listing[$e['field']]));
               if (!$mt) { // only list fields that aren't empty
                 $extra .= '<br><b>' . $e['label'] . ': </b>';
                 if ($e['uses_list']) {
                   if ($e['multi_select']) {
                     $epf_values = explode('|', trim($listing[$e['field']], '|'));
                     $epf_string = '';
                     foreach ($epf_values as $v) {
                       $epf_string .= tep_get_extra_field_list_value($v) . ', ';
                     }
                     $extra .= trim($epf_string, ', ');
                   } else {
                     $extra .= tep_get_extra_field_list_value($listing[$e['field']],$e['show_chain'] == 1);
                   }
                 } else {
                   $extra .= $listing[$e['field']];
                 }
               }
             }
           }
           // end extra product fields
           $lc_align = '';
           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']) . '">' . $listing['products_name'] . $extra . '</a>';
           } else {
             $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . $extra . '</a> ';
           }
           break;

         case 'PRODUCT_LIST_MANUFACTURER':
           $prod_list_contents .= '        <td><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a></td>';
           break;
         case 'PRODUCT_LIST_PRICE':
           if (tep_not_null($listing['specials_new_products_price'])) {
             $prod_list_contents .= '        <td align="right"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del>  <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></td>';
           } else {
             $prod_list_contents .= '        <td align="right">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</td>';
           }
           break;
         case 'PRODUCT_LIST_QUANTITY':
           $prod_list_contents .= '        <td align="right">' . $listing['products_quantity'] . '</td>';
           break;
         case 'PRODUCT_LIST_WEIGHT':
           $prod_list_contents .= '        <td align="right">' . $listing['products_weight'] . '</td>';
           break;
         case 'PRODUCT_LIST_IMAGE':
           if (isset($HTTP_GET_VARS['manufacturers_id'])  && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
             $prod_list_contents .= '        <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>';
           } else {
             $prod_list_contents .= '        <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>';
           }
           break;
         case 'PRODUCT_LIST_BUY_NOW':
           $prod_list_contents .= '        <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>';
           break;
       }
     }

     $prod_list_contents .= '      </tr>';
   }

   $prod_list_contents .= '    </table>' .
                          '  </div>' .
                          '</div>';

   echo $prod_list_contents;
 } else {
?>

   <p><?php echo TEXT_NO_PRODUCTS; ?></p>

<?php
 }

 if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) {
?>

   <br />

   <div>
     <span style="float: right;"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></span>

     <span><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></span>
   </div>

<?php
 }
?>

 </div>

Link to comment
Share on other sites

Here is my product_listing.php page code.

Is this where something is wrong, perhaps? Specifically where the //extra products fields code resides?

 

Chris (DunWeb), I didn't change any jquery statements that I'm aware of.

 

Thanks again, I am looking too (pulling hair out...)

 

 

Hi cconlin,

 

I see the problem. Could you switch off image in product listing? If not maybe you use the following in product_listing.php:

 

Change

// begin extra product fields
           $extra = '';
           foreach ($epf as $e) {
             if ($e['listing']) {
               $mt = ($e['uses_list'] && !$e['multi_select'] ? ($listing[$e['field']] == 0) : !tep_not_null($listing[$e['field']]));
               if (!$mt) { // only list fields that aren't empty
                 $extra .= '<br><b>' . $e['label'] . ': </b>';
                 if ($e['uses_list']) {
                   if ($e['multi_select']) {
                     $epf_values = explode('|', trim($listing[$e['field']], '|'));
                     $epf_string = '';
                     foreach ($epf_values as $v) {
                       $epf_string .= tep_get_extra_field_list_value($v) . ', ';
                     }
                     $extra .= trim($epf_string, ', ');
                   } else {
                     $extra .= tep_get_extra_field_list_value($listing[$e['field']],$e['show_chain'] == 1);
                   }
                 } else {
                   $extra .= $listing[$e['field']];
                 }
               }
             }
           }
           // end extra product fields

 

to:

 

// begin extra product fields
           $extra = '';
/*            foreach ($epf as $e) {
             if ($e['listing']) {
               $mt = ($e['uses_list'] && !$e['multi_select'] ? ($listing[$e['field']] == 0) : !tep_not_null($listing[$e['field']]));
               if (!$mt) { // only list fields that aren't empty
                 $extra .= '<br><b>' . $e['label'] . ': </b>';
                 if ($e['uses_list']) {
                   if ($e['multi_select']) {
                     $epf_values = explode('|', trim($listing[$e['field']], '|'));
                     $epf_string = '';
                     foreach ($epf_values as $v) {
                       $epf_string .= tep_get_extra_field_list_value($v) . ', ';
                     }
                     $extra .= trim($epf_string, ', ');
                   } else {
                     $extra .= tep_get_extra_field_list_value($listing[$e['field']],$e['show_chain'] == 1);
                   }
                 } else {
                   $extra .= $listing[$e['field']];
                 }
               }
             }
           } */
           // end extra product fields

 

I think that extra fields displayed as pictures.

 

 

Other possibilities that mixed database configuration. The pictures mixed with products name.

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

hi

 

find this

 

$lc_align = '';
           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']) . '">' . $listing['products_name'] . $extra . '</a>';
           } else {
             $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . $extra . '</a> ';
           }

 

replace for this (or just put /* in the begin and this */ at the end to comment all that lines)

 

if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
             $prod_list_contents .= '        <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a></td>';
           } else {
             $prod_list_contents .= '        <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a></td>';
           }

 

and test

Link to comment
Share on other sites

Ivan - it worked!! I don't know if I had the variables mixed up, but it worked. Thank you so SO Much!!!

 

Gergely - I commented out those lines, and it did not change anything in the display. I think your extra product fields were fine, maybe I just mixed something up when I implemented.

 

Thank you both for your help, I am grateful.

 

Cindy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...