Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Combining free and non free shipping

    Just a quick glance ...

    Looks like you are missing a paren on the IF:
    Code:
    if ($_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1') {
    $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>';
    }
    Last edited by Ajeh; 18 Sep 2011 at 05:25 PM. Reason: Fix closing bracket
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  2. #12
    Join Date
    Jul 2009
    Posts
    247
    Plugin Contributions
    0

    Default Re: Combining free and non free shipping

    Thanks Linda!!!!!
    Unfortunately the problem must be also somewere else.
    This is the new hacking attempt and it does not work even with the ( added.
    If you could give it a look....thanks!!!
    Code:
    if (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'false') {
      $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="cartAlert">' . TEXT_ALERT_IN_CART . $currencies->format($diff_to_free) . TEXT_ALERT_QUALIFY . '</span>'; 
         } 
           if ($_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1') {
    $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="cartAlert">' . TEXT_ALERT_NOW_QUALIFIED . '</span>'; 
         }  
      } 
          else { 
            $content .= '<span class="cartAlert">' . TEXT_ALERT_FREE_SHIPPING . $currencies->format($free_limit) . TEXT_ALERT_OR_MORE . '</span>'; 
        }
    }

  3. #13
    Join Date
    Nov 2007
    Posts
    72
    Plugin Contributions
    0

    Default Re: Combining free and non free shipping

    just wondering if this was ever figured out?

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,886
    Plugin Contributions
    6

    Default Re: Combining free and non free shipping

    Looks like I missed this too, there are two missing parens:
    Code:
           if ($_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1')) {
    $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>';
    }
    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: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 2 of 2 FirstFirst 12

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
  •