Free Shipping

Locked

Views: 6,225

Results 41 to 60 of 61
This thread is locked. New replies are disabled.
19 Feb 2010, 1:24 AM
#41
ajeh avatar

ajeh

Oba-san

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

Free Shipping

You said everything is taken care of by the weights table ...

Does that mean for both Light Products and Heavy Products?

If we customized the ZoneTable to give Free Shipping on orders over $75 IF there are NO Heavy Products in the Order ... would this solve the shipping issue?

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!

19 Feb 2010, 1:33 AM
#42
fajmp avatar

fajmp

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
132
Plugin Contributions:
0

Re: Free Shipping

OK I've done it.

Francine Harvey
http://talkingwalls.ca
Love is the beginning of knowledge.

19 Feb 2010, 1:42 AM
#43
fajmp avatar

fajmp

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
132
Plugin Contributions:
0

Re: Free Shipping

makes no difference.
Yes both Light Products and Heavy Products are taken care of by
the table.
quote:If we customized the ZoneTable to give Free Shipping on orders over $75 IF there are NO Heavy Products in the Order ... would this solve the shipping issue?

It would solve the shipping issue if there were no heavy products yes. If there were no heavy products I could just use the Shipping ot_shipping couldn't I?

But the problem is I do have heavy and they have to be sent separately because they will squash the lighter stuff.

Francine Harvey
http://talkingwalls.ca
Love is the beginning of knowledge.

19 Feb 2010, 1:53 AM
#44
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

If I were to give you the code to customize the zonetable.php shipping module to make it where IF the order total >= 75 and there are NO Heavy Products in the cart and shipping were Free ... would this work?

If so, I need to see the code for the zonetable that you are using as you still have not told me which Add On you are using ...

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!

19 Feb 2010, 3:23 AM
#45
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

If you used the ZoneTable from the Free Add Ons ... you could change the code to read:

    while (!$get_gzn->EOF) {
      $gzn = $get_gzn->fields['geo_zone_name'];
      $get_gzn->MoveNext();
    }

// bof: Free Shipping on Orders over $75.00 if nothing in these master_categories_id 13, 48, 24
    global $cart;
    $chk_heavy_products = 0;
    $chk_heavy_products += $_SESSION['cart']->in_cart_check('master_categories_id', 13);
    $chk_heavy_products += $_SESSION['cart']->in_cart_check('master_categories_id', 24);
    $chk_heavy_products += $_SESSION['cart']->in_cart_check('master_categories_id', 48);

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

    if ($chk_heavy_products == 0 && ($test_total >= 75.00)) {
      // Free Shipping
    $new_shipping = 0.00;
    $this->quotes = array('id' => $this->code,
                          'module' => MODULE_SHIPPING_ZONETABLE_TEXT_TITLE . $show_box_weight,
                          'methods' => array(array('id' => $this->code,
                                                   'title' => MODULE_SHIPPING_ZONETABLE_TEXT_WAY . $gzn,
                                                   'cost' => $new_shipping )));
    } else {
      // use regular calculation
    $this->quotes = array('id' => $this->code,
                          'module' => MODULE_SHIPPING_ZONETABLE_TEXT_TITLE . $show_box_weight,
                          'methods' => array(array('id' => $this->code,
                                                   'title' => MODULE_SHIPPING_ZONETABLE_TEXT_WAY . $gzn,
                                                   'cost' => $shipping + constant('MODULE_SHIPPING_ZONETABLE_HANDLING_' . $this->dest_zone))));
    }
// eof: Free Shipping on Orders over $75.00 if nothing in these master_categories_id 13, 48, 24

    if ($this->tax_class > 0) {
      $this->quotes['tax'] = zen_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
    }

Now if there are NO Heave Products from master_categories_id 13, 48, 24 the order will be free when over $75.00 ...

If 1 product is a Heavy Product then the rates from the table definition for the Zone will be used ...

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!

19 Feb 2010, 11:51 AM
#46
fajmp avatar

fajmp

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
132
Plugin Contributions:
0

Re: Free Shipping

Good morning Linda:
Thanks for new code...I think we..YOU.. almost have it. It seems to all work except:

When I have the heavy and the light in the cart, it charges an extra $3.00 in there for some reason. When it's only light and only heavy it works super. The $75.00 free shipping works well so far too.

BUT...something really strange is happening in the cart.

The "quantity" of the "light" items can't be changed. Like it's solid and can't be clicked or changed. No problem with the heavy stuff though and it's still the same when both light and heavy are in the cart.

I've changed the zonetable back and the quantity part works fine.

Francine Harvey
http://talkingwalls.ca
Love is the beginning of knowledge.

19 Feb 2010, 2:11 PM
#47
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

I think to do anything more with your site I would actually need to see it and know:

1 what Products you are adding to the cart that are working

2 what Products you are adding to the cart that are adding the extra $3.00

3 what Products you are adding to the cart where it breaks

What are your settings in the Configuration ... Shipping/Packaging ...

Doing this blind is wearing me out ... :blink:

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!

19 Feb 2010, 3:03 PM
#48
fajmp avatar

fajmp

Zen Follower

Join Date:
Jun 2008
Location:
Canada
Posts:
132
Plugin Contributions:
0

Re: Free Shipping

I'm exhausted too and my brain hurts:wacko:

It's been a marathon...I feel like I've been in the olympics and did get bronze...I think!

It does work except the heavy boards and I'm just going to have
to put some kind of "bling" on them so people can't help notice
that they have to be ordered separately.

The 75.00 does work and only in the vinyl.

As far as the $3.00 was coming from...I think it was my computer coughing because it's never come up again:lamo:

It will have to do! Thanks for all your effort Linda. You are great.

One last question:
Do you think people feel more comfortable when shopping if we have something like UPS or Canada Post set up?

Francine Harvey
http://talkingwalls.ca
Love is the beginning of knowledge.

19 Feb 2010, 3:40 PM
#49
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

I don't know if you would get more accurate real time rate quotes on the weight of your orders ... you would need to check this yourself with your products ...

I'd pick UPS and test your site with it vs what you are using now and see how it compares ...

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!

20 Feb 2010, 7:01 AM
#50
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Location:
Santa Cruz, California
Posts:
21
Plugin Contributions:
0

Re: Free Shipping

Ok, I guess it is my turn to start a new "Free Shipping" subthread. :)

I am experiencing some strange behavior when I use the "Allow Free Shipping" option in the Order Total module. I have it configured to give free shipping when the order is over $250.

When the sub-total of the items in my cart is over $250, everything works beautifully: all shipping options disappear on the checkout page, and the text "Free shipping for orders over $250.00" appears. Wonderful.

But when the sub-total of the items in my cart is just under $250, so that with sales tax the order total is over $250, the free shipping is activated, however, all the other shipping options (standard shipping, expedited shipping, and store pickup) remain on the page, with the default standard shipping method selected. What's really strange is that no matter what shipping method you select, the order total always shows "Shipping: $0.00"

In other words, when the sub-total is over $250, everything works perfectly and free shipping is activated. But when the sub-total is under $250 but with tax it's over $250, free shipping is still activated (which I don't want) but the shipping options remain on the checkout page instead of being replaced by the "Free shipping for orders over $250.00" text.

At first I thought this might be a problem caused by the sort order of my order total module, but switching the "Shipping" and "Tax" sort orders didn't change anything.

I do have a work around using the Free Shipping Options method instead, but I really like the aesthetics when all the shipping options disappear for free shipping, so I'd like to use the Order Total method if possible.

If you'd like to demonstrate this behavior for yourself, try adding some greeting cards to your cart and checking out (you can use fake info on the customer address page). If you add 10 packs and check out you get the weird behavior. 11 packs and it works great.

Greeting cards:
http://www.joshuacripps.com/zencart/store/index.php?main_page=product_info&cPath=91&products_id=322

If anyone has any ideas why this weirdness if occurring, I'd love to hear them. Thanks a bundle!

Josh

Joshua Cripps Fine Nature Photography
http://www.joshuacripps.com

20 Feb 2010, 1:36 PM
#51
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

See if changing the ot_shipping.php module around line 35 for the IF to:

        if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {

works better for you on the tax issue ...

This is not a complete fix, but can work in many circumstances ...

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!

20 Feb 2010, 1:43 PM
#52
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

joshuacripps what version of Zen Cart are you using?

Are you using an add on for your check out ...

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!

20 Feb 2010, 1:46 PM
#53
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

Also ... what zones are taxed on your shop? :unsure:

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!

20 Feb 2010, 7:14 PM
#54
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Location:
Santa Cruz, California
Posts:
21
Plugin Contributions:
0

Re: Free Shipping

Ajeh:

joshuacripps what version of Zen Cart are you using?

Are you using an add on for your check out ...

Also ... what zones are taxed on your shop?

Hi Linda,
I will give your fix a shot and see what happens. I am using Zen Cart 1.3.8a, with numinix's Fast and Easy Checkout (with COWOA). Ah yes, California is the only taxed zone - guess that would be helpful to know for the debugging, eh? Thanks!

Josh

Joshua Cripps Fine Nature Photography
http://www.joshuacripps.com

20 Feb 2010, 7:23 PM
#55
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

I placed two orders, one for $24.95 plus tax and one for $249.90 plus tax and in both cases I had shipping charges ...

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!

20 Feb 2010, 7:28 PM
#56
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Location:
Santa Cruz, California
Posts:
21
Plugin Contributions:
0

Re: Free Shipping

Ajeh:

See if changing the ot_shipping.php module around line 35 for the IF to:

    if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
> 
> works better for you on the tax issue ...
> 
> This is not a complete fix, but can work in many circumstances ...

Thank you very much, Linda.  This worked perfectly.  Can you expand on what circumstances would lead this to being an incomplete fix?

Thanks again,

Josh

Joshua Cripps Fine Nature Photography
http://www.joshuacripps.com

20 Feb 2010, 7:58 PM
#57
ajeh avatar

ajeh

Oba-san

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

Re: Free Shipping

There are many calculations with prices and taxes and totals ... and this appears to be a good temporary fix ... but I am not needing it in v1.3.8 nor in the new versions that we are working on ...

So ... this is a temporary fix for those who have broken things, such as you ... :smile:

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!

20 Feb 2010, 8:30 PM
#58
joshuacripps avatar

joshuacripps

New Zenner

Join Date:
Apr 2008
Location:
Santa Cruz, California
Posts:
21
Plugin Contributions:
0

Re: Free Shipping

:smile:

Joshua Cripps Fine Nature Photography
http://www.joshuacripps.com

5 Mar 2010, 3:48 PM
#59
ijlal avatar

ijlal

New Zenner

Join Date:
Jan 2010
Posts:
45
Plugin Contributions:
0

Re: Free Shipping

Hi,

I am using ZC ver. 1.3.8a (patched). I have custom folders and the only MOD I am using is Stock by Attributes ver. 1.4.9

I am currently using only three Shipping Modules: 1. Store Pickup, 2. Flat Rate and 3. Free Shipping Options

Store Pickup is fine, but with the other two, whenever I select my_zone, the status lights become yellow; okay I understand this probably because these options are available for one zone only - I have define a single zone only as I do not intend shipping outside my zone.

Problem is the Free Shipping Options, which becomes valid if amount >= x, and Flat Rate, both are not coming up when I try to check out. When I change the zone in these two to -none-, everything falls into order.

I have not defined any tax class as I live in a different country.

I have tried almost all of what has been suggested on this thread but to no avail.

Please help!

Thanks,
Ijlal

5 Mar 2010, 3:59 PM
#60
ijlal avatar

ijlal

New Zenner

Join Date:
Jan 2010
Posts:
45
Plugin Contributions:
0

Re: Free Shipping

Well the problem is solved. For those in similar fix, here is a brief description of why shipping modules were not working:

When I had created my testing account to check the cart, there were no zones defined. Now that customized zones have been defined, my state option was not matching the new customized zones. After selecting the state according to current zones in my login account the problem solved! :smartalec: