Thread: Shipping Icon

Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2007
    Posts
    11
    Plugin Contributions
    0

    Default Shipping Icon

    I would be dead set certain that this question has been asked before, and I cannot find anything about it.

    I am wanting to remove the shipping icon from the category page, where all the products are listed... but I would like to keep the free shipping icon on the product page.

    I have tried turning off the free shipping icon in the catalog/product types/edit layout "Product Free Shipping Image Status - Catalog" but this turns off all free shipping icons.

    I am just wanting to remove the one on the main category listing.

    Any ideas?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Shipping Icon

    To do this separately for showing the free shipping icon on the Product _info pages but not on the product listing you will need to copy the file:
    /includes/modules/product_listing.php

    to your templates and overrides directory:
    /includes/modules/your_template_dir/product_listing.php

    And alter the code for:
    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 />' '') : ''); 
    You can search the code for:
    ALWAYS_FREE_SHIPPING_IMAGE_SWITCH

    To find that section of code around lines 145 to 148 or so ...

    Currently that switch is built from the settings in the Catalog ... Product Type ... but it is used in both places ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Mar 2007
    Posts
    11
    Plugin Contributions
    0

    Default Re: Shipping Icon

    Thanks Ajeh, much appreciated.

    Worked like a dream.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,726
    Plugin Contributions
    6

    Default Re: Shipping Icon

    Thanks for the update ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Configuring Taxes for Canadian Sites/Zones
    By DrByte in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 305
    Last Post: 30 Jul 2012, 07:18 PM
  2. USPS Yellow Status Icon When select shipping zone.
    By tonyinabox in forum Addon Shipping Modules
    Replies: 5
    Last Post: 15 Feb 2007, 01:53 PM
  3. Replies: 8
    Last Post: 3 Dec 2006, 08:23 AM
  4. Either show free shipping icon w/ freeoptions OR show other modules w/ freeshipper
    By tvadpro in forum Built-in Shipping and Payment Modules
    Replies: 11
    Last Post: 3 Dec 2006, 02:53 AM

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
  •