Why are there tutorials on everything having to do with rails EXCEPT
on calculating shipping costs for a shopping cart? there are 10 or so
blog posts about the "shipping_gem" or "active_shipping" but no real
details like how one might get the information from a form and then
pass the cost into the total for checkout. Does anyone know of a
tutorial i might have missed in the past two weeks for trying to
figure this out that actually details the process? I'm about ready to
put my head through a wall.
Why are there tutorials on everything having to
do with rails EXCEPT on calculating shipping
costs for a shopping cart?
Because it's trivial?
What, exactly, are you having trouble getting your arms around? One
approach would be to use observe_field to submit the info on the items as
they're selected, calculate shipping and update a total shipping cost field,
etc. There are, of course, alternatives. How do you want it to work for
your app?
Next time, it might be a good idea to ask for help before you get angry
It's a very helpful community!
Why are there tutorials on everything having to do with rails EXCEPT
on calculating shipping costs for a shopping cart? there are 10 or so
blog posts about the "shipping_gem" or "active_shipping" but no real
details like how one might get the information from a form and then
pass the cost into the total for checkout. Does anyone know of a
tutorial i might have missed in the past two weeks for trying to
figure this out that actually details the process? I'm about ready to
put my head through a wall.
I went through dealing with UPS a few years ago, and the bottom
line was: their API *flat didn't work*.
As a sanity check I used their consumer web-based form to calculate
a shipping amount, and then compared to the API result. Oops. mmm.
Not compare equal. Bummer.
Long story short -- UPS "tech support" *couldn't even understand*
why this was a problem. After weeks of emails, providing test cases
and code, nothing. No resolution. I gave up. No UPS business from
that client.
So, to the OP -- the technical side of this isn't any big deal, but the
rest of it is a bundle of worms. Have fun