seems satchmo and UPS integration is just multiplying

4 views
Skip to first unread message

hiwd

unread,
Oct 6, 2008, 5:04:03 PM10/6/08
to Satchmo users

Anyone else see this?

If I add a 1lb product to my cart and check the Ground UP shipping
it's 8.83 and then if I add another it just double is.

But if I go to the MyUps site and emulate the estimated costs based on
weight, etc the cost from UPS isn't doubled.

I'm looking at the log files as well and trying to figure out the
issue.

Anyone else run into this?

Chris Moffitt

unread,
Oct 6, 2008, 6:11:44 PM10/6/08
to satchm...@googlegroups.com
It may depend on whether it's bundling the packages or not. I don't remember the details of the UPS api but I'd recommend looking at the quest to see how it is bundling the 2 products.

-Chris

hiwd

unread,
Oct 6, 2008, 6:24:01 PM10/6/08
to Satchmo users

Hey Chris,

I noticed the code in the request template is looping through items
via

{% for product in cart.get_shipment_list %}

in the cart and actually creating a new package node for each item the
cart, instead of one package and then calculating the weight.

Now the UPS api may have another way to do this but I don't have
intimate knowledge of the API.

So I added a new cart method get_total_weight and then customized the
xml request template to get this issues resolved.

If there's a cleaner way, anyone if you know one, let me know.

But this works for now.

Thanks.


On Oct 6, 6:11 pm, "Chris Moffitt" <ch...@moffitts.net> wrote:
> It may depend on whether it's bundling the packages or not. I don't remember
> the details of the UPS api but I'd recommend looking at the quest to see how
> it is bundling the 2 products.
>
> -Chris
>

Bruce Kroeze

unread,
Oct 6, 2008, 8:15:45 PM10/6/08
to satchm...@googlegroups.com
On Mon, Oct 6, 2008 at 3:24 PM, hiwd <kfric...@gmail.com> wrote:


Hey Chris,

I noticed the code in the request template is looping through items
via

{% for product in cart.get_shipment_list %}

in the cart and actually creating a new package node for each item the
cart, instead of one package and then calculating the weight.

Now the UPS api may have another way to do this but I don't have
intimate knowledge of the API.

So I added a new cart method get_total_weight and then customized the
xml request template to get this issues resolved.

That's how I do it.  This is an incredibly involved issue, since every different store will box things differently.

--
Bruce Kroeze
http://solidsitesolutions.com
Dynamic Designs, Optimized

hiwd

unread,
Oct 6, 2008, 8:55:15 PM10/6/08
to Satchmo users

Thanks Bruce.

Hearing that is comforting :)

And thanks to the Satchmo core ... it's an amazing product.

-kev

On Oct 6, 8:15 pm, "Bruce Kroeze" <bkro...@gmail.com> wrote:

Chris Moffitt

unread,
Oct 6, 2008, 9:27:51 PM10/6/08
to satchm...@googlegroups.com
Kevin-
When you get a chance, if you could add some notes on the wiki with how you handled it. I'll work to incorporate into the docs so others can deal with it in the future.

Thanks,
Chris

Reply all
Reply to author
Forward
0 new messages