Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Mar 2006
    Posts
    7
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

  3. #3
    Join Date
    Mar 2006
    Posts
    7
    Plugin Contributions
    0

    Default 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

  4. #4

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

  5. #5
    Join Date
    Jan 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Turn off FREE SHIPPING gif in Categories Listing

    I also turned the option off in Catalog/Product Types Edit Layout, on all of the product types but for Gift Certificates i still see the image and model number (which I also turned off).

    http://www.chocoloj.com/ZenCart/inde...products_id=64

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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:
    PHP Code:
    <!--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:
    PHP Code:
    <!--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!

  7. #7
    Join Date
    Jan 2006
    Posts
    28
    Plugin Contributions
    0

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

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

  9. #9
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Turn off FREE SHIPPING gif in Categories Listing

    Quote Originally Posted by Ajeh View Post
    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:
    PHP Code:
    <!--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

  10. #10
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default 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

    PHP Code:
    $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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 27 Jan 2014, 01:59 AM
  2. Free Shipping won't turn off
    By jeking in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 28 Oct 2011, 01:18 AM
  3. Cannot Turn Off Free Shipping!
    By wezza in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 2 Jan 2010, 07:51 PM
  4. How to turn off Free Shipping Image
    By SyntheticShield in forum General Questions
    Replies: 33
    Last Post: 23 Mar 2007, 06:44 PM
  5. Turn off free shipping on attributes
    By nikkisalad in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 17 Nov 2006, 09:09 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