Forums / Setting Up Categories, Products, Attributes / I want "Max" text dissapear

I want "Max" text dissapear

Locked

Views: 724

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
8 Mar 2008, 7:12 PM
#1
pvl108 avatar

pvl108

New Zenner

Join Date:
Mar 2008
Posts:
9
Plugin Contributions:
0

I want "Max" text dissapear

Hi,

All products I have are unique and there is only 1 of quantaty. But when I set a maximum number of products "1", Zen Cart shows a "Max: 1" text in a field on list of products page, which I don't like.

How to make it dissapear ??

Regards,
PvL108.

8 Mar 2008, 8:16 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: I want "Max" text dissapear

Since this is undifferentiated text in the output, CSS can't touch it.
You could edit the Max: text to blank in the define file, but that would not get rid of the number.

You will need to edit /includes/modules/your_template/product_listing.php. Find this section```php
}
$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':

 . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id'])

to get```php
        }
        $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':