Shipping Icon

Locked

Started by mrbafner on 5 Apr 2007, 3:43 PM · Views: 1,934

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
5 Apr 2007, 3:43 PM
#1
mrbafner avatar

mrbafner

New Zenner

Join Date:
Mar 2007
Posts:
11
Plugin Contributions:
0

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? :frusty:

5 Apr 2007, 5:33 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

        $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 />' : '') : '');

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!]
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!

6 Apr 2007, 3:01 AM
#3
mrbafner avatar

mrbafner

New Zenner

Join Date:
Mar 2007
Posts:
11
Plugin Contributions:
0

Re: Shipping Icon

Thanks Ajeh, much appreciated.

Worked like a dream.

6 Apr 2007, 3:24 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Shipping Icon

Thanks for the update ... :smile:

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!]
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!