add comment about (over-simplified) handling of shipping

This commit is contained in:
paulcc 2009-09-07 12:08:51 +01:00
parent da032c6751
commit 717ea040f5
1 changed files with 8 additions and 2 deletions

View File

@ -103,6 +103,12 @@ is started. My sites only have a single shipping method, so I can get away with
that method and using that for calculations. It also means that I've not written any code yet
for selecting from applicable methods etc etc.
Beware that this code does make some big assumptions about shipping. In particular, it AVOIDS
use of the Spree shipping calcs, effectively performing its own calcs (via the hook), but then
assigning the first shipping method at the end, just so order display will work. This stuff
is ok when there's a single shipping option defined (like me), but will need work if you have
more options.
Note that PPX allows you to capture up to 115% of the original authorized amount: this could
allow some flexibility in shipping choices, eg you could add a stage after return from PPX
which asks for a shipping choice and confirms the final amount to be captured.
@ -125,4 +131,4 @@ have not tried to use this yet.
5. Double-check implementation of the full PPX process
6. Look at shipping method selection integration