Forums / Templates, Stylesheets, Page Layout / Turn off FREE SHIPPING gif in Categories Listing?

Turn off FREE SHIPPING gif in Categories Listing?

Locked

Views: 4,622

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
20 May 2006, 10:19 PM
#1
earthmother avatar

earthmother

New Zenner

Join Date:
Mar 2006
Posts:
7
Plugin Contributions:
0

Turn off FREE SHIPPING gif in Categories Listing?

There was an excellent post in the Archive about how to turn off the FREE SHIPPING graphic by going to the tpl_product_info_display.php file and chaging the line to ....

<?php if(false && zen_get_product_is_always_free_shipping($products_id_current)) { ?>

Worked like a charm for the individual product description pages. But if the customer shows all of the products in a single group (category) all of the icons reapper next to the description for each item.

Is there another place to change this?

Many thanks.
~Em

21 May 2006, 2:05 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn off FREE SHIPPING gif in Categories Listing?

The right approach to turning off the "Free Shipping" icon for a given product-type is to adjust the master setting:

Admin->Catalog->Product Types->(choose a product type ... usually product-general)->Edit Layout.
Find "Product Free Shipping Image Status - Catalog" and set it to No.

This should also negate the suggestion of adding "if (false && " to the template.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 May 2006, 2:40 AM
#3
earthmother avatar

earthmother

New Zenner

Join Date:
Mar 2006
Posts:
7
Plugin Contributions:
0

Re: Turn off FREE SHIPPING gif in Categories Listing?

Many thanks! I thought I had checked ALL of the options (product-general, product-music, doc-general, doc-product, and product free shipping) under product types/catalog and set the "Show the Free Shipping image/text in the catalog?" to NO ... but I missed one.

Joy

~Em

30 May 2006, 7:25 PM
#4
cara_m avatar

cara_m

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Turn off FREE SHIPPING gif in Categories Listing?

Hmm... I had the same question, and I have turned off the image in the admin as instructed, but it hasn't worked! Any ideas how I can get rid of it?
Cara.

1 Jul 2006, 3:07 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Turn off FREE SHIPPING gif in Categories Listing?

You can override this with the templates and overrides by copying the file:
/includes/templates/templates_default/tpl_products_info_default.php

to your overrides directory:
/includes/templates/your_template_dir/tpl_products_info_default.php

And commenting out the Always Free Shipping image:

<!--bof free ship icon  -->
<?php if(zen_get_product_is_always_free_shipping($products_id_current)) { ?>
<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
<?php } ?>
<!--eof free ship icon  -->

To not lose the code should you want it back, you can alter it to read:

<!--bof free ship icon  -->
<?php if(false && zen_get_product_is_always_free_shipping($products_id_current)) { ?>
<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
<?php } ?>
<!--eof free ship icon  -->

The false && is what turns it off ... as this can never be true ...

NOTE: Gift Certificates should not be marked as Always Free Shipping ... they should be marked as:

Always Free Shipping: No, Normal Shipping Rules
Product is Virtual: Yes, Skip Shipping Address

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!

3 Jul 2006, 2:21 PM
#7
jahgriz avatar

jahgriz

New Zenner

Join Date:
Jan 2006
Posts:
20
Plugin Contributions:
0

Re: Turn off FREE SHIPPING gif in Categories Listing?

Thanks, I made sure with the product being virtual that the free shipping was off, and that took care of it the Free Shipping Image.

3 Jul 2006, 3:41 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Turn off FREE SHIPPING gif in Categories Listing?

Thanks for the update ... this will help others who also get a tad befuddled about the correct settings for a Gift Certificate ... :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!

19 Nov 2009, 3:52 PM
#9
jdowns1 avatar

jdowns1

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: Turn off FREE SHIPPING gif in Categories Listing?

Ajeh:

You can override this with the templates and overrides by copying the file:
/includes/templates/templates_default/tpl_products_info_default.php

to your overrides directory:
/includes/templates/your_template_dir/tpl_products_info_default.php

And commenting out the Always Free Shipping image:

<!--bof free ship icon --> <?php if(zen_get_product_is_always_free_shipping($products_id_current)) { ?> <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div> <?php } ?> <!--eof free ship icon --> ```

My free shipping image is rather large, and is too large on the product listing pages. Where do I adjust the dimensions of the free shipping image on the product listing pages so I can have it smaller there, but full size on the product detail pages?

Thanks
Jereme

19 Nov 2009, 8:05 PM
#10
jdowns1 avatar

jdowns1

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: Turn off FREE SHIPPING gif in Categories Listing?

I found the file that displays the image on the product listing is

/includes/modules/product_listing.php

on this line

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

But unsure how to adjust the dimensions. Do I have to create a new constant that replaces TEXT_PRODUCT_FREE_SHIPPING_ICON and just have a smaller version of my free shipping image?

Jereme

14 Feb 2010, 3:51 AM
#11
karm4 avatar

karm4

New Zenner

Join Date:
Feb 2010
Location:
Cleveland, OH
Posts:
29
Plugin Contributions:
0

Re: Turn off FREE SHIPPING gif in Categories Listing?

I would like to change the Always-free-shipping.gif to a .png - The quality of a .gif is so horrible compared to a .png - Any idea on how to get it to know that its a .png instead?

<a href="http://www.itzboosted.net">ItzBoosted.net - Get On it!</a>
"Turbo Lag is me giving you a headstart... no seriously."

14 Feb 2010, 6:07 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Turn off FREE SHIPPING gif in Categories Listing?

Karm4:

I would like to change the Always-free-shipping.gif to a .png - The quality of a .gif is so horrible compared to a .png - Any idea on how to get it to know that its a .png instead?

Just change the filename in the define for TEXT_PRODUCT_FREE_SHIPPING_ICON in your product_free_shipping language file.
https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.