Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Reworking Free Ship Icon to my needs

    I modified in red the Free ship icon code from a post i read. it didnt go any further.
    i want this to show on all products -200 Dollars (renaming my icon to use.)
    i want to exclude certain shippers by looking up there shipper code in products table. (I have a table set up in phpmyadmin as Dropshipper with a field name of Ready-To-Ship that id like to exclude from showing the icon.
    i also want to exclude it if the product themselves weigh over XX not to show.
    i have copy and pasted another instance of this to show when over 200 but want to show a different icon. how can i accomplich this
    right know it works but nothing excluded
    first instance:
    <!--bof free ship icon -->
    <?php if(zen_products_lookup((int)$_GET['products_id'], 'products_price_sorter') >= -199 || 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 -->

    second instance:
    <!--bof free ship icon -->
    <?php if(zen_products_lookup((int)$_GET['products_id'], 'products_price_sorter') >= 200 || 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 -->

  2. #2
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Reworking Free Ship Icon to my needs

    how do i change this code to only show from manufacturers_id 8

    if(zen_products_lookup((int)$_GET['products_id'], 'products_price') >= 200

  3. #3
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Reworking Free Ship Icon to my needs

    what im trying to do is show a free shipping on orders over icon when items are under <199 and a second this item ships free icon on orders over >200 but i need to exclude whole manufacturers and some individual items.
    i got this far and it works.
    ?php if(zen_products_lookup((int)$_GET['products_id'], 'products_price') <= 199 && ($products_weight) <= 20 ||
    i need to add && to not show on certain manufacturers and or products
    can some1 help me with this please.

  4. #4
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Reworking Free Ship Icon to my needs

    Solved it
    i Changed This:
    <!--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 -->
    To This
    <!--bof free ship icon -->
    <?php if(zen_products_lookup((int)$_GET['products_id'], 'products_price') >= 200 && ($product_weight) <=20 && (($manufacturers_name) != SFIFloors && ($manufacturers_name) != MegatradeCorporation) || 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 -->
    and now it adds a: This item ships free over XX Image on all products under $199 and under a weight of 20Lbs and excludes two manufacturers.
    i then replicated same code but Went 200.00 and up and shows a this item ships Free image

 

 

Similar Threads

  1. v151 Building an array, Using the Free ship Icon
    By jimmie in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 21 May 2014, 01:09 AM
  2. Replies: 11
    Last Post: 30 Jul 2013, 08:13 PM
  3. Single Product Needs Different Ship Method
    By bowlercentral in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 27 Apr 2010, 12:05 AM
  4. Missing Free Ship Icon
    By Decostyle in forum Addon Templates
    Replies: 1
    Last Post: 19 May 2008, 04:59 PM
  5. Free shipping on order less than free ship price
    By wynnesome in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 May 2007, 09:53 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR