Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text product not found not displayed !

    You have defines but I do not see where this is set for display, such as:
    /includes/modules/pages/advanced_search_result/header_php.php
    Line #465 : $messageStack->add_session('search', TEXT_NO_PRODUCTS, 'caution');

    /includes/modules/product_listing.php
    Line #195 : 'text' => TEXT_NO_PRODUCTS);
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #12

    Default Re: Text product not found not displayed !

    I posted only the lines related to the exact text supposed to be displayed but I do have the files you are referring to:

    /includes/modules/andover_modern/product_listing.php

    Line #324 : 'text' => TEXT_NO_PRODUCTS);

    /includes/modules/pages/advanced_search_result/header_php.php

    Line #486 : $messageStack->add_session('search', TEXT_NO_PRODUCTS, 'caution');

    /includes/modules/product_listing.php

    Line #195 : 'text' => TEXT_NO_PRODUCTS);

    /includes/templates/andover_modern/templates/tpl_modules_advanced_search_categories.php

    Line #107 : 'text' => TEXT_NO_PRODUCTS);

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text product not found not displayed !

    Could you post, from the server, the files:
    /includes/modules/product_listing.php
    /includes/modules/andover_modern/product_listing.php
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #14

    Default Re: Text product not found not displayed !

    <?php

    /**

    * product_listing module

    *

    * @package modules

    * @copyright Copyright 2003-2010 Zen Cart Development Team

    * @copyright Portions Copyright 2003 osCommerce

    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

    * @version $Id: product_listing.php 17051 2010-07-29 07:25:09Z drbyte $

    */

    if (!defined('IS_ADMIN_FLAG')) {

    die('Illegal Access');

    }

    $show_submit = zen_run_normal();

    $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_PRODUCTS_LISTING, 'p.products_id', 'page');

    $zco_notifier->notify('NOTIFY_MODULE_PRODUCT_LISTING_RESULTCOUNT', $listing_split->number_of_rows);

    $how_many = 0;



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



    $zc_col_count_description = 0;

    $lc_align = '';

    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 = '';

    $zc_col_count_description++;

    break;

    case 'PRODUCT_LIST_NAME':

    $lc_text = TABLE_HEADING_PRODUCTS;

    $lc_align = '';

    $zc_col_count_description++;

    break;

    case 'PRODUCT_LIST_MANUFACTURER':

    $lc_text = TABLE_HEADING_MANUFACTURER;

    $lc_align = '';

    $zc_col_count_description++;

    break;

    case 'PRODUCT_LIST_PRICE':

    $lc_text = TABLE_HEADING_PRICE;

    $lc_align = 'right' . (PRODUCTS_LIST_PRICE_WIDTH > 0 ? '" width="' . PRODUCTS_LIST_PRICE_WIDTH : '');

    $zc_col_count_description++;

    break;

    case 'PRODUCT_LIST_QUANTITY':

    $lc_text = TABLE_HEADING_QUANTITY;

    $lc_align = 'right';

    $zc_col_count_description++;

    break;

    case 'PRODUCT_LIST_WEIGHT':

    $lc_text = TABLE_HEADING_WEIGHT;

    $lc_align = 'right';

    $zc_col_count_description++;

    break;

    case 'PRODUCT_LIST_IMAGE':

    $lc_text = TABLE_HEADING_IMAGE;

    $lc_align = 'center';

    $zc_col_count_description++;

    break;

    }



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

    $lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text);

    }







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

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

    'text' => $lc_text );

    }



    if ($listing_split->number_of_rows > 0) {

    $rows = 0;

    $listing = $db->Execute($listing_split->sql_query);

    $extra_row = 0;

    while (!$listing->EOF) {

    $rows++;



    if ((($rows-$extra_row)/2) == floor(($rows-$extra_row)/2)) {

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

    } else {

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

    }



    $cur_row = sizeof($list_box_contents) - 1;



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

    $lc_align = '';

    switch ($column_list[$col]) {

    case 'PRODUCT_LIST_MODEL':

    $lc_align = '';

    $lc_text = $listing->fields['products_model'];

    break;

    case 'PRODUCT_LIST_NAME':

    $lc_align = '';

    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id'] > 0) ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';

    break;

    case 'PRODUCT_LIST_MANUFACTURER':

    $lc_align = '';

    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';

    break;

    case 'PRODUCT_LIST_PRICE':

    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';

    $lc_align = 'right';

    $lc_text = $lc_price;



    // more info in place of buy now

    $lc_button = '';

    if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {

    $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';

    } else {

    if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0) {

    if (

    // not a hide qty box product

    $listing->fields['products_qty_box_status'] != 0 &&

    // product type can be added to cart

    zen_get_products_allow_add_to_cart($listing->fields['products_id']) != 'N'

    &&

    // product is not call for price

    $listing->fields['product_is_call'] == 0

    &&

    // product is in stock or customers may add it to cart anyway

    ($listing->fields['products_quantity'] > 0 || SHOW_PRODUCTS_SOLD_OUT_IMAGE == 0) ) {

    $how_many++;

    }

    // hide quantity box

    if ($listing->fields['products_qty_box_status'] == 0) {

    $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';

    } else {

    $lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";

    }

    } else {

    // qty box with add to cart button

    if (PRODUCT_LIST_PRICE_BUY_NOW == '2' && $listing->fields['products_qty_box_status'] != 0) {

    $lc_button= zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($listing->fields['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form>';

    } else {

    $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';

    }

    }

    }

    $the_button = $lc_button;

    $products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . ( ($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : $_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id'])) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';

    $lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);

    $lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');



    break;

    case 'PRODUCT_LIST_QUANTITY':

    $lc_align = 'right';

    $lc_text = $listing->fields['products_quantity'];

    break;

    case 'PRODUCT_LIST_WEIGHT':

    $lc_align = 'right';

    $lc_text = $listing->fields['products_weight'];

    break;

    case 'PRODUCT_LIST_IMAGE':

    $lc_align = 'center';

    if ($listing->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {

    $lc_text = '';

    } else {

    if (isset($_GET['manufacturers_id'])) {

    $lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';

    } else {

    $lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';

    }

    }

    break;

    }



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

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

    'text' => $lc_text);

    }



    // add description and match alternating colors

    //if (PRODUCT_LIST_DESCRIPTION > 0) {

    // $rows++;

    // if ($extra_row == 1) {

    // $list_box_description = "productListing-data-description-even";

    // $extra_row=0;

    // } else {

    // $list_box_description = "productListing-data-description-odd";

    // $extra_row=1;

    // }

    // $list_box_contents[$rows][] = array('params' => 'class="' . $list_box_description . '" colspan="' . $zc_col_count_description . '"',

    // 'text' => zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION));

    //}

    $listing->MoveNext();

    }

    $error_categories = false;

    } else {

    $list_box_contents = array();



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

    $list_box_contents[0][] = array('params' => 'class="productListing-data"',

    'text' => TEXT_NO_PRODUCTS);



    $error_categories = true;

    }



    if (($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0) and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 1 or PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 3) ) {

    $show_top_submit_button = true;

    } else {

    $show_top_submit_button = false;

    }

    if (($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0) and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART >= 2) ) {

    $show_bottom_submit_button = true;

    } else {

    $show_bottom_submit_button = false;

    }







    if ($how_many > 0 && PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0 and $show_submit == true and $listing_split->number_of_rows > 0) {

    // bof: multiple products

    echo zen_draw_form('multiple_products_cart_quantity', zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params(array('action')) . 'action=multiple_products_add_product'), 'post', 'enctype="multipart/form-data"');

    }

  5. #15

    Default Re: Text product not found not displayed !

    from the template andover_modern:

    <?php
    /**
    * product_listing module
    *
    * @package modules
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: product_listing.php 6787 2007-08-24 14:06:33Z drbyte $
    * UPDATED TO WORK WITH COLUMNAR PRODUCT LISTING For Zen Cart v1.3.6 - 10/25/2006
    */
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }


    // Better Together Discount Marketing
    require_once(DIR_WS_MODULES . "bt_listing.php");
    // End Better Together Discount Marketing

    // Column Layout Support originally added for Zen Cart v 1.1.4 by Eric Stamper - 02/14/2004
    // Upgraded to be compatible with Zen-cart v 1.2.0d by Rajeev Tandon - Aug 3, 2004
    // Column Layout Support (Grid Layout) upgraded for v1.3.0 compatibility DrByte 04/04/2006
    //
    if (!defined('PRODUCT_LISTING_LAYOUT_STYLE')) define('PRODUCT_LISTING_LAYOUT_STYLE','rows');
    if (!defined('PRODUCT_LISTING_COLUMNS_PER_ROW')) define('PRODUCT_LISTING_COLUMNS_PER_ROW',3);
    $row = 0;
    $col = 0;
    $list_box_contents = array();
    $title = '';

    $max_results = (PRODUCT_LISTING_LAYOUT_STYLE=='columns' && PRODUCT_LISTING_COLUMNS_PER_ROW>0) ? (PRODUCT_LISTING_COLUMNS_PER_ROW * (int)(MAX_DISPLAY_PRODUCTS_LISTING/PRODUCT_LISTING_COLUMNS_PER_ROW)) : MAX_DISPLAY_PRODUCTS_LISTING;


    $show_submit = zen_run_normal();
    //$listing_split = new splitPageResults($listing_sql, $max_results, 'p.products_id', 'page');

    // BOF: Show ALL Products Button
    if($HTTP_GET_VARS['display'] == 'all') {
    define('$max_results', 200);
    } else {
    define('$max_results', MAX_DISPLAY_SEARCH_RESULTS);
    }
    $listing_split = new splitPageResults($listing_sql, $max_results, 'p.products_id', 'page');
    // $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_RESULTS, 'p.products_id');
    // EOF: Show ALL Products Button


    $zco_notifier->notify('NOTIFY_MODULE_PRODUCT_LISTING_RESULTCOUNT', $listing_split->number_of_rows);
    $how_many = 0;

    // Begin Row Layout Header
    if (PRODUCT_LISTING_LAYOUT_STYLE == 'rows') { // For Column Layout (Grid Layout) add on module

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

    $zc_col_count_description = 0;
    $lc_align = '';
    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 = '';
    $zc_col_count_description++;
    break;
    case 'PRODUCT_LIST_NAME':
    $lc_text = TABLE_HEADING_PRODUCTS;
    $lc_align = '';
    $zc_col_count_description++;
    break;
    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_text = TABLE_HEADING_MANUFACTURER;
    $lc_align = '';
    $zc_col_count_description++;
    break;
    case 'PRODUCT_LIST_PRICE':
    $lc_text = TABLE_HEADING_PRICE;
    $lc_align = 'right' . (PRODUCTS_LIST_PRICE_WIDTH > 0 ? '" width="' . PRODUCTS_LIST_PRICE_WIDTH : '');
    $zc_col_count_description++;
    break;
    case 'PRODUCT_LIST_QUANTITY':
    $lc_text = TABLE_HEADING_QUANTITY;
    $lc_align = 'right';
    $zc_col_count_description++;
    break;
    case 'PRODUCT_LIST_WEIGHT':
    $lc_text = TABLE_HEADING_WEIGHT;
    $lc_align = 'right';
    $zc_col_count_description++;
    break;
    case 'PRODUCT_LIST_IMAGE':
    $lc_text = TABLE_HEADING_IMAGE;
    $lc_align = 'center';
    $zc_col_count_description++;
    break;
    }

    if ( ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {
    $lc_text = zen_create_sort_heading($_GET['sort'], $col+1, $lc_text);
    }

    $list_box_contents[0][$col] = array('align' => $lc_align,
    'params' => 'class="productListing-heading"',
    'text' => $lc_text );
    }

    } // End Row Layout Header used in Column Layout (Grid Layout) add on module

    ///////////// HEADER ROW ABOVE /////////////////////////////////////////////////

    $num_products_count = $listing_split->number_of_rows;

    if ($listing_split->number_of_rows > 0) {
    $rows = 0;
    // Used for Column Layout (Grid Layout) add on module
    $column = 0;
    if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
    if ($num_products_count < PRODUCT_LISTING_COLUMNS_PER_ROW || PRODUCT_LISTING_COLUMNS_PER_ROW == 0 ) {
    $col_width = floor(100/$num_products_count) - 0.5;
    } else {
    $col_width = floor(100/PRODUCT_LISTING_COLUMNS_PER_ROW) - 0.5;
    }
    // Used for Column Divider Pro add on
    $col_width_div = floor(100);
    }
    // Used for Column Layout (Grid Layout) add on module

    $listing = $db->Execute($listing_split->sql_query);
    $extra_row = 0;
    while (!$listing->EOF) {

    if (PRODUCT_LISTING_LAYOUT_STYLE == 'rows') { // Used in Column Layout (Grid Layout) Add on module
    $rows++;

    if ((($rows-$extra_row)/2) == floor(($rows-$extra_row)/2)) {
    $list_box_contents[$rows] = array('params' => 'class="productListing-even"');
    } else {
    $list_box_contents[$rows] = array('params' => 'class="productListing-odd"');
    }

    $cur_row = sizeof($list_box_contents) - 1;
    } // End of Conditional execution - only for row (regular style layout)

    $product_contents = array(); // Used For Column Layout (Grid Layout) Add on module

    for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
    $lc_align = '';
    switch ($column_list[$col]) {
    case 'PRODUCT_LIST_MODEL':
    $lc_align = '';
    $lc_text = $listing->fields['products_model'];





    break;
    case 'PRODUCT_LIST_NAME':
    $lc_align = '';
    if (isset($_GET['manufacturers_id'])) {
    $lc_text = '<h3 class="itemTitle">

    <a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3>

    <div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;
    } else {
    $lc_text = '<h3 class="itemTitle">

    <a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3>

    <div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';

    }
    // Better Together Discount Marketing
    if ($discount->check() > 0) {
    $prid = $listing->fields['products_id'];
    $ccat = $listing->fields['master_categories_id'];
    $resp = $discount->get_discount_info($prid, $ccat);
    $rresp = $discount->get_reverse_discount_info($prid, $ccat);
    $all_resp = array_merge($resp, $rresp);
    shuffle($all_resp);
    if (count($all_resp) > 0) {
    $lc_text .= '<br /><div class="content" id="betterTogetherDiscountPolicyListing"><fieldset style="margin: 0;
    border:1px dashed #000 ;background-color:#eee; text-align:center;border-radius: 8px;-webkit-border-radius: 8px;
    -moz-border-radius: 8px;">';
    if (MAX_BT_MARKETING_MESSAGES == 0) {
    $total_msgs = count($all_resp);
    } else {
    $total_msgs = MAX_BT_MARKETING_MESSAGES;
    }
    for ($pos=0, $posmax=$total_msgs; $pos<$posmax; $pos++) {
    // $lc_text .= $all_resp[$pos] . "<br />";
    $lc_text .= $all_resp[$pos] . "";
    }
    $lc_text .= '</div>';
    }
    }
    // End Better Together Discount Marketing


    break;
    case 'PRODUCT_LIST_MANUFACTURER':
    $lc_align = '';
    $lc_text = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing->fields['manufacturers_id']) . '">' . $listing->fields['manufacturers_name'] . '</a>';
    break;
    case 'PRODUCT_LIST_PRICE':
    $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
    $lc_align = 'right';
    $lc_text = $lc_price;

    // BOF TONI OGP - ADD PRICE TEXT
    $lc_text = ((isset($_SESSION['customer_id']) && $_SESSION['customer_id'] == $_SESSION['customer_group_id']['customer_id'] && $_SESSION['customer_group_id']['discount'] > 0) ? '' : TEXT_PRICE) . $lc_price;
    // EOF TONI OGP - ADD PRICE TEXT


    // more info in place of buy now
    $lc_button = '';
    if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
    $lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
    } else {
    if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0) {
    if (
    // not a hide qty box product
    $listing->fields['products_qty_box_status'] != 0 &&
    // product type can be added to cart
    zen_get_products_allow_add_to_cart($listing->fields['products_id']) != 'N'
    &&
    // product is not call for price
    $listing->fields['product_is_call'] == 0
    &&
    // product is in stock or customers may add it to cart anyway
    ($listing->fields['products_quantity'] > 0 || SHOW_PRODUCTS_SOLD_OUT_IMAGE == 0) ) {
    $how_many++;
    }
    // hide quantity box
    if ($listing->fields['products_qty_box_status'] == 0) {
    $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
    } else {
    $lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
    }
    } else {
    // qty box with add to cart button
    if (PRODUCT_LIST_PRICE_BUY_NOW == '2' && $listing->fields['products_qty_box_status'] != 0) {


    $lc_button= zen_draw_form('cart_quantity', zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($listing->fields['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form>';


    } else {
    $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
    }
    }
    }
    $the_button = $lc_button;
    $products_link = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . ( ($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : $_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id'])) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
    $lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
    $lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');

    break;
    case 'PRODUCT_LIST_QUANTITY':
    $lc_align = 'right';
    $lc_text = $listing->fields['products_quantity'];
    break;
    case 'PRODUCT_LIST_WEIGHT':
    $lc_align = 'right';
    $lc_text = $listing->fields['products_weight'];
    break;
    case 'PRODUCT_LIST_IMAGE':
    $lc_align = 'center';
    if ($listing->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {
    $lc_text = '';
    } else {
    if (isset($_GET['manufacturers_id'])) {
    $lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], 'photo '.$listing->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';
    } else {
    $lc_text = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '" title="acheter ' .$listing->fields['products_name'].' ">' . zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], 'crystal-energy.com '. $categories->fields['categories_name']. ' ' .$listing->fields['products_name'],IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT, 'class="listingProductImage"') . '</a>';
    }
    }
    break;
    }

    $product_contents[] = $lc_text; // Used For Column Layout (Grid Layout) Option

    if (PRODUCT_LISTING_LAYOUT_STYLE == 'rows') {
    $list_box_contents[$rows][$col] = array('align' => $lc_align,
    'params' => 'class="productListing-data"',
    'text' => $lc_text);
    }
    }

    // add description and match alternating colors
    //if (PRODUCT_LIST_DESCRIPTION > 0) {
    // $rows++;
    // if ($extra_row == 1) {
    // $list_box_description = "productListing-data-description-even";
    // $extra_row=0;
    // } else {
    // $list_box_description = "productListing-data-description-odd";
    // $extra_row=1;
    // }
    // $list_box_contents[$rows][] = array('params' => 'class="' . $list_box_description . '" colspan="' . $zc_col_count_description . '"',
    // 'text' => zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION));
    //}

    // Following code will be executed only if Column Layout (Grid Layout) option is chosen
    if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns') {
    $lc_text = implode('<br />', $product_contents);
    $list_box_contents[$rows][$column] = array('params' => 'class="centerBoxContentsProducts centeredContent back"' . ' ' . 'style="width:' . $col_width_div . '%;"',
    'text' => $lc_text);
    $column ++;
    if ($column >= PRODUCT_LISTING_COLUMNS_PER_ROW) {
    $column = 0;
    $rows ++;
    }
    }
    // End of Code fragment for Column Layout (Grid Layout) option in add on module
    $listing->MoveNext();
    }
    $error_categories = false;
    } else {
    $list_box_contents = array();

    $list_box_contents[0] = array('params' => 'class="productListing-odd"');
    $list_box_contents[0][] = array('params' => 'class="productListing-data"',
    'text' => TEXT_NO_PRODUCTS);

    $error_categories = true;
    }

    if (($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0) and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 1 or PRODUCT_LISTING_MULTIPLE_ADD_TO_CART == 3) ) {
    $show_top_submit_button = true;
    } else {
    $show_top_submit_button = false;
    }
    if (($how_many > 0 and $show_submit == true and $listing_split->number_of_rows > 0) and (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART >= 2) ) {
    $show_bottom_submit_button = true;
    } else {
    $show_bottom_submit_button = false;
    }



    if ($how_many > 0 && PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0 and $show_submit == true and $listing_split->number_of_rows > 0) {
    // bof: multiple products
    echo zen_draw_form('multiple_products_cart_quantity', zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params(array('action')) . 'action=multiple_products_add_product'), 'post', 'enctype="multipart/form-data"');
    }

    ?>

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text product not found not displayed !

    You are using the add on for rows/columns ... can you switch it the other way for a moment? Does it change anything?

    Also, can you post the file, from the server, for:
    /includes/modules/pages/advanced_search_result/header_php.php
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #17

    Default Re: Text product not found not displayed !

    Can't post my /includes/modules/pages/advanced_search_result/header_php.php

    There is the following error message:

    *You have included a total of 8 images in your message. The maximum number that you may include is 7. Please correct the problem and then continue again.

    Images include use of smilies, the BB code [img] tag, and HTML <img> tags. The use of these is all subject to them being enabled by the administrator.*

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Text product not found not displayed !

    Click Reply ...

    Click the # image for CODE and between the two CODE tags, paste the code ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #19

    Default Re: Text product not found not displayed !

    Looks to me we won't solve the problem this way, especially now that I am getting error posting images while i posted none in my message on the forum.....

    there must be something on my server blocking the javascript from displaying the "product not found" I am going to try to re-install the site on local with another name/other folder and copy the entire content of what i have on the server.... may be something will come up.


    Thanks for your help

    I will let you know what I find!

    L.

  10. #20

    Default Re: Text product not found not displayed !

    Please see my new message, I will get back to you if my idea of trying over doesn't work.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Variable name is displayed, not text
    By bblinn in forum Basic Configuration
    Replies: 2
    Last Post: 13 Jul 2008, 09:15 PM
  2. Required Text Attribute Not Displayed
    By tadosborn in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 21 Mar 2008, 05:53 PM
  3. text on the page not displayed
    By mikajlo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Oct 2006, 11:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR