Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    9
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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 Code:
            }
            
    $the_button $lc_button;
            
    $products_link '<a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . ( ($_GET['manufacturers_id'] > and $_GET['filter_id']) > zen_get_generated_category_path_rev($_GET['filter_id']) : $_GET['cPath'] > 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'
    and comment out the

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

    to get
    PHP Code:
            }
            
    $the_button $lc_button;
            
    $products_link '<a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . ( ($_GET['manufacturers_id'] > and $_GET['filter_id']) > zen_get_generated_category_path_rev($_GET['filter_id']) : $_GET['cPath'] > 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'

 

 

Similar Threads

  1. "New Products" Sidebox doesn't dissapear!
    By momo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Oct 2010, 03:14 AM
  2. Want to change Bread Crumb "Home" Text
    By SimplyDelightful in forum General Questions
    Replies: 4
    Last Post: 25 Oct 2009, 04:34 AM
  3. "... more info" link is displayed where I want a "buy now" button
    By ballyc27 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 24 Sep 2007, 05:05 PM

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