Forums / Built-in Shipping and Payment Modules / combining free shipping with table rate

combining free shipping with table rate

Views: 1,285

Results 1 to 6 of 6
31 Jan 2011, 12:42 PM
#1
gentlemoms avatar

gentlemoms

New Zenner

Join Date:
Jul 2010
Posts:
22
Plugin Contributions:
0

combining free shipping with table rate

I tried searching - sorry if this is a duplicate post...

I have the free shipping module set up for one category of items (necklaces). I also have the table rate module set up where orders under $49.99 cost $7 for shipping and orders above $50 ship for $0.
I have ten other categories of products that do not ship for free. However, if a customer adds a necklace (free shipping) and several other items to the cart totaling above $50, the $0 shipping does not become available until the subtotal excluding the necklace is above $50.
:oops:
Is there a way to combine the shipping modules so that all orders valuing $50+ ship for free even if the cart includes a necklace?

Thanks!

P.S.
I'm on Zen Cart 1.3.8
Patch: 1::
Database Patch Level: 1.3.8
PHP Version 5.2.14
and I'm little scared to upgrade as I added a community module for wish list registry and a community module for stocking by attribute that were written for 1.3.8 - I don't want to lose my add-ons! :cry:

8 Feb 2011, 4:18 AM
#2
gentlemoms avatar

gentlemoms

New Zenner

Join Date:
Jul 2010
Posts:
22
Plugin Contributions:
0

Re: combining free shipping with table rate

Do free shipping and other shipping modules not combine? :dontgetit

8 Feb 2011, 2:45 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: combining free shipping with table rate

Table Rate table is based on Price or Weight or Item Count ...

In the calculations, it removes the Free Shipping Product from the calculation:

    // shipping adjustment
    switch (MODULE_SHIPPING_TABLE_MODE) {
      case ('price'):
        $order_total = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
        break;
      case ('weight'):
        $order_total = $shipping_weight;
        break;
      case ('item'):
        $order_total = $total_count - $_SESSION['cart']->free_shipping_items();
        break;
    }

If you do not want the Price to be adjusted by the Free Shipping Product, you can try to use:

        $order_total = $_SESSION['cart']->show_total();

for the Price case and see if that gives you what you are looking for ...

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!

8 Feb 2011, 5:23 PM
#4
gentlemoms avatar

gentlemoms

New Zenner

Join Date:
Jul 2010
Posts:
22
Plugin Contributions:
0

Re: combining free shipping with table rate

A-ha! Thank you! :hug:
I don't remember where to find all the coding. I know it's not in the admin feature... I'll have to do some digging this weekend.

THANKS!

8 Feb 2011, 6:01 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: combining free shipping with table rate

The shipping modules are all in the:
/includes/modules/shipping

the one you want for Table Rate table is:
/includes/modules/shipping/table.php

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!

8 Feb 2011, 6:27 PM
#6
gentlemoms avatar

gentlemoms

New Zenner

Join Date:
Jul 2010
Posts:
22
Plugin Contributions:
0

Re: combining free shipping with table rate

I don't remember where my webhost stores the files :blush:
But I'll get to it this weekend and hook y'all up with some paypal love when I get everything sorted out.

Thank you!