Results 1 to 10 of 44

Threaded View

  1. #6
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: Free Shipping Options not working correctly

    Hi,
    I am trying to achieve that when ot_freeshipping is false, and freeopitons is true in the shopping cart box appears the same warning/suggestion that appears when ot_freeshipping is true and freeoptions is false.

    I have hacked the tpl_shopping_cart.php as follows for the section free shipping qualifier

    //Begin free shipping qualifier
    $free_ship_on = MODULE_SHIPPING_FREEOPTIONS_STATUS;

    if ($free_ship_on == 'true') {
    $free_limit = MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN;
    if ($_SESSION['cart']->count_contents() > 0) {
    $_SESSION['cart']->get_products();
    $basket_total = $_SESSION['cart']->show_total();
    if ($basket_total < $free_limit) {
    $diff_to_free = ($free_limit - $basket_total);
    $content .= '<span class="freeoptions">' . '<style="text-align: center; "><span style="font-size: small; "><span style="color: rgb(255, 0, 0); "><b>Aggiungendo prodotti per '. $currencies->format($diff_to_free) .' <style="text-align: center; "><span style="font-size: small; "><span style="color: rgb(255, 0, 0); "><b>avrai diritto alla spedizione gratuita!</b></span></span>' . '</span>';
    } else {
    $content .= '<span class="freeoptions">' . '<p style="text-align: center; "><span style="font-size: small; "><span style="color: rgb(255, 0, 0); "><b>Complimenti! Hai diritto alla spedizione gratuita!</b></span></span>' . '</span>';
    }
    } else {
    $content .= '<span class="freeshipping">' . 'Spedizione gratuita per ordini di ' . $currencies->format($free_limit) . ' or more.' . '</span>';
    }
    }
    //End of free shipping qualifier
    The original tpl_shopping_cart file is
    //Begin free shipping qualifier
    $free_ship_on = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING;

    if ($free_ship_on == 'true') {
    $free_limit = MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER;
    if ($_SESSION['cart']->count_contents() > 0) {
    $_SESSION['cart']->get_products();
    $basket_total = $_SESSION['cart']->show_total();
    if ($basket_total < $free_limit) {
    $diff_to_free = ($free_limit - $basket_total);
    $content .= '<span class="freeshipping">' . '<style="text-align: center; "><span style="font-size: small; "><span style="color: rgb(255, 0, 0); "><b>Aggiungendo prodotti per '. $currencies->format($diff_to_free) .' <style="text-align: center; "><span style="font-size: small; "><span style="color: rgb(255, 0, 0); "><b>avrai diritto alla spedizione gratuita!</b></span></span>' . '</span>';
    } else {
    $content .= '<span class="freeshipping">' . '<p style="text-align: center; "><span style="font-size: small; "><span style="color: rgb(255, 0, 0); "><b>Complimenti! Hai diritto alla spedizione gratuita!</b></span></span>' . '</span>';
    }
    } else {
    $content .= '<span class="freeshipping">' . 'Spedizione gratuita per ordini di ' . $currencies->format($free_limit) . ' or more.' . '</span>';
    }
    }
    //End of free shipping qualifier
    But it does not work.
    The shipping qualifier does not appears.
    Can someone help me in achieveing this?
    Thanks
    enzo
    Last edited by enzo-ita; 21 Mar 2011 at 08:14 PM.

 

 

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. Table rate and free shipping not working correctly.
    By robbin21973 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jan 2013, 07:36 PM
  3. v139h Free Shipping Options Not Working.
    By glamourdolleyes in forum Addon Shipping Modules
    Replies: 19
    Last Post: 20 Feb 2012, 02:43 AM
  4. Free shipping with restrictions not working correctly
    By homer-j-simpson137 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 17 Mar 2011, 12:44 AM
  5. Free Shipping not working correctly after upgrade?
    By Jeff_Mash in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 6 Oct 2010, 03:39 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