Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
  1. #11
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Free Shipping Not Working

    I am sorry Linda, but I really don't understand what you are trying to say.

    This file: /includes/modules/pages/product_info/main_template_vars.php is there but I don't know what you mean <<<is the current v151 file?>>>

    This is a 1.51 version. I just don't understand what you are trying to tell me. Should part of this file be replaced with something else?

    Regards,

    Silver

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

    Default Re: Free Shipping Not Working

    Let's start slow ...

    If you look at the file:
    /includes/modules/pages/product_info/main_template_vars.php

    in your editor, you should be able to search it for:
    $flag_show_product_info_free_shipping

    You should also be able to open your files for:
    /includes/templates/template_default/templates/tpl_product_info_display.php

    and if using templates and overrides:
    /includes/templates/your_template_dir/templates/tpl_product_info_display.php

    and also search then for:
    $flag_show_product_info_free_shipping

    Do you find that variable in those files?

    From what you are indicating, this is a clean install and not an upgrade to v151, correct?
    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. #13
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Free Shipping Not Working

    Linda:

    I only found that variable in the first file. The following is what I found:

    In the first file:
    /includes/modules/pages/product_info/main_template_vars.php

    I found:
    $flag_show_product_info_free_shipping = zen_get_show_product_switch($_GET['products_id'], 'always_free_shipping_image_switch');

    In the second file:

    /includes/templates/template_default/templates/tpl_product_info_display.php

    I found: This is as close to that file as I could find.
    <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>

    In the third file:

    /includes/templates/your_template_dir/templates/tpl_product_info_display.php

    Again I found:
    <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>

    This file: $flag_show_product_info_free_shipping was not found in the last two files.

    Yes, this a clean v15.1 install.

    Thanks again for your help here!

    Silver

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

    Default Re: Free Shipping Not Working

    In the file:
    /includes/modules/pages/product_info/main_template_vars.php

    you should see a section of code for:
    Code:
    // build show flags from product type layout settings
      $flag_show_product_info_starting_at = zen_get_show_product_switch($_GET['products_id'], 'starting_at');
      $flag_show_product_info_model = zen_get_show_product_switch($_GET['products_id'], 'model') == 1 and $products_model !='';
      $flag_show_product_info_weight = zen_get_show_product_switch($_GET['products_id'], 'weight') == 1 and $products_weight !=0;
      $flag_show_product_info_quantity = zen_get_show_product_switch($_GET['products_id'], 'quantity') == 1;
      $flag_show_product_info_manufacturer = zen_get_show_product_switch($_GET['products_id'], 'manufacturer') and !empty($manufacturers_name);
      $flag_show_product_info_in_cart_qty = zen_get_show_product_switch($_GET['products_id'], 'in_cart_qty');
      $flag_show_product_info_reviews = zen_get_show_product_switch($_GET['products_id'], 'reviews');
      $flag_show_product_info_reviews_count = zen_get_show_product_switch($_GET['products_id'], 'reviews_count');
      $flag_show_product_info_date_available = zen_get_show_product_switch($_GET['products_id'], 'date_available');
      $flag_show_product_info_date_added = zen_get_show_product_switch($_GET['products_id'], 'date_added');
      $flag_show_product_info_url = zen_get_show_product_switch($_GET['products_id'], 'url');
      $flag_show_product_info_additional_images = zen_get_show_product_switch($_GET['products_id'], 'additional_images');
      $flag_show_product_info_free_shipping = zen_get_show_product_switch($_GET['products_id'], 'always_free_shipping_image_switch');
      require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCTS_QUANTITY_DISCOUNTS));
    In the template files:
    /includes/templates/template_default/templates/tpl_product_info_display.php
    /includes/templates/your_template_dir/templates/tpl_product_info_display.php

    you should see code for:
    Code:
    <!--eof Product Price block -->
    
    <!--bof free ship icon  -->
    <?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
    <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
    <?php } ?>
    <!--eof free ship icon  -->
    
     <!--bof Product description -->
    Do you see any of that?

    Was this a clean install or an upgrade for v151?
    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!

  5. #15
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Free Shipping Not Working

    Linda:

    The first block of code I have but the second block is missing:

    <!--bof Product description -->

    This is it:

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

    <!--bof Attributes Module -->

    The following is the second one: /includes/templates/your_template_dir/templates/tpl_product_info_display.php

    <!--eof Product Price block -->

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

    <!--bof Attributes Module -->

    Again: Appears to be missing: <!--bof Product description -->

    yes, I am using v1.5.1 clean install.

    Silver

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

    Default Re: Free Shipping Not Working

    In your two template files, add the code in RED:
    Code:
    <!--eof Product Price block -->
    
    
    <!--bof free ship icon  -->
    <?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
    <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
    <?php } ?>
    <!--eof free ship icon  -->
    
     <!--bof Product description -->
    See if it now shows the Free Shipping icon on these Products marked as Always Free Shipping YES ...
    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. #17
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Free Shipping Not Working

    I know this may sound stupip but should I also include:

    <!--bof Product description --> ???

    because I didn't see that either?

    Silver

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

    Default Re: Free Shipping Not Working

    No, maybe that was removed in your templates and overrides or something ...

    You might seriously consider getting a clean download of v151 and comparing it to your site to see what else might be missing ...

    There should be a number of files with references to the:
    $flag_show_product_info_free_shipping

    and you say you do not have any ... so either you did not do the search right in the Developer's Tool Kit or other files are for some reason missing things ...

    How did you install v151? Did you download it from the link on the Home Page or from somewhere else?
    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. #19
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Free Shipping Not Working

    I downloaded it from the link on the homepage. I'm not exactly sure what I should do now. Should I try and place that code or just do another install? Is there a way to do another install over top of what I have now?

    Silver

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

    Default Re: Free Shipping Not Working

    The block of code in RED is what manages when the Free Shipping icon shows ...

    In the original template file, it is between the sections for Product Price and Product Description:
    Code:
    <!--bof Product Price block -->
    <h2 id="productPrices" class="productGeneral">
    <?php
    // base price
      if ($show_onetime_charges_description == 'true') {
        $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
      } else {
        $one_time = '';
      }
      echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . '<meta itemprop="currency" content="' . $_SESSION['currency'] . '" />' . '<span itemprop="price">' . zen_get_products_display_price((int)$_GET['products_id']) . '</span>';
    ?></h2>
    <!--eof Product Price block -->
    
    <!--bof free ship icon  -->
    <?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
    <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
    <?php } ?>
    <!--eof free ship icon  -->
    
     <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><span itemprop="description"><?php echo stripslashes($products_description); ?></span></div>
    <?php } ?>
    <!--eof Product description -->
    <br class="clearBoth" />
    
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      // do nothing
    } else {
    You, for some reason, do not have that block of code so the icon never displays ...

    I use Beyond Compare to see what original files are like compared to current files and also test the files in:
    /includes/templates/templates_default

    to the files in:
    /includes/templates/your_template_dir

    to see what changes have been made or what might be out of date or missing current code as some templates are made from older versions ...
    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!

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v154 Free Shipping Not Working Correctly?
    By Jeff_Mash in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 30 Mar 2015, 09:04 PM
  2. v139h Free Shipping Options Not Working.
    By glamourdolleyes in forum Addon Shipping Modules
    Replies: 19
    Last Post: 20 Feb 2012, 02:43 AM
  3. Free Shipping not working
    By Keitex in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Nov 2010, 02:59 PM
  4. Free Shipping not working for me
    By leest35 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 4 Aug 2010, 04:13 PM
  5. Free Shipping not working!
    By fluffysam in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 18 Sep 2006, 05:15 AM

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