Results 1 to 7 of 7
  1. #1
    Join Date
    May 2008
    Posts
    122
    Plugin Contributions
    0

    Default Free Shipping Icon

    The free shipping icon shows on the product page that shows all the products within that category and also shows on the page when you click on each individual product to get more information. Is there a way that I can have the free shipping icon only show on the more information page rather than both pages?

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

    Default Re: Free Shipping Icon

    The setting for showing the free shipping icon applies to both the product listing and product info pages, so you will have to make a small code edit to hide it in the listing only.
    In /includes/modules/your_template/product_listing.php around line 145, find this
    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 />' '') : '');

            break;
            case 
    'PRODUCT_LIST_QUANTITY'
    and comment out the $lc_text line with //
    to get
    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 />' : '') : '');

            
    break;
            case 
    'PRODUCT_LIST_QUANTITY'

  3. #3
    Join Date
    May 2008
    Posts
    122
    Plugin Contributions
    0

    Default Re: Free Shipping Icon

    Perfect! What a simple and quick fix. Thanks so very much.

  4. #4
    Join Date
    May 2008
    Posts
    122
    Plugin Contributions
    0

    Default Re: Free Shipping Icon

    Hey gjh42 - you seem like you know this stuff in and out.....

    I was just re-looking at your post to me and saw where you told me to find the file.

    However, i actually found it in includes/modules/product_listing.php.

    I have been reading a lot of posts and am beginning to think that I have really screwed up the proper ordering of where things are supposed to be (which folders) etc. All of the changes I have been making on my template have been working flawlessly (overall) however, I guess this is a moot point if I have screwed up along the way in organization. Any ideas on how I can figure that out and is there a way to keep the changes I have made to the CSS's and replace them with a new install? I have done so many changes (let alone hours and hours of trying to figure this all out) and would hate to lose it all...of course I might be lucky and the actual place I found the product_listing.php might be fine. Any thoughts?

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

    Default Re: Free Shipping Icon

    The original version of product_listing.php is in includes/modules/, but when you customize it, you should save it as includes/modules/your_template/product_listing.php, where your_template is the foldername of your custom template. If you have not made your own template, you are using /classic/, which is not good in the long run. When you upgrade, all edits in default or classic folders will be erased. Also, having the Classic template available can help in debugging - if you switch templates to Classic and the problem disappears, you know it is in your custom files rather than in base functions.

    Read the tutorials on creating your own tempate. You can copy all /classic/ folders and files into custom template folders if you have already customized Classic.

  6. #6
    Join Date
    May 2008
    Posts
    122
    Plugin Contributions
    0

    Default Re: Free Shipping Icon

    Ok, so i am using a different template from classic. I will start saving it as for my template. I have not made any changes under the "classic" template as far as I know. I have made changes in includes/languages/english and the english.php (but not the classic) Do those also need to be saved "as" also in my template? and ...includes/modules should i save everything that is there into my template? Would it be advisable to reinstall the classic files or just leave as is since when there is an update it will change everything. I really appreciate your help. This is so much to learn and I am determined to do this mostly alone and with the community's help before I turn to my computer buddies who will probably fix it in minutes rather than the hours it takes me to do one thing!

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

    Default Re: Free Shipping Icon

    I have made changes in includes/languages/english and the english.php (but not the classic) Do those also need to be saved "as" also in my template?
    Yes, it would be good to save /your_template/ copies of any core language files you have edited. This also includes define_xxx_page files in /html_includes/.

    You should only save files you have modified into your custom folders; saving unaltered files will just make more work and confuse the issue when you upgrade.

 

 

Similar Threads

  1. Free Shipping Icon placement
    By Berserker in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jan 2011, 05:58 AM
  2. Free Shipping Icon
    By autoace in forum Built-in Shipping and Payment Modules
    Replies: 17
    Last Post: 30 Mar 2010, 07:48 PM
  3. Free Shipping Icon
    By ttmb33 in forum Customization from the Admin
    Replies: 2
    Last Post: 27 Feb 2010, 07:15 AM
  4. Free shipping icon
    By wwwursa in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 17 Apr 2008, 01:15 PM
  5. Change Free Shipping Icon
    By jhoulston in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Mar 2007, 08:29 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