Commit graph

120 commits

Author SHA1 Message Date
Colin Kuskie
8bc944d526 Prevent the PayPal standard driver from being abused. Update POD and comments in several Shop files. Fix form labels for PayPal Express checkout driver. Fix a niggling bug with updating a transaction with a cart, twice. Fixes bug #12140.
commit cef8c5bde10f793db0890dcfd18cbf20b0e69c90
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:52:48 2011 -0700

    Build a Shop::Transaction.

commit c386079ac29fc70c1cc63d0c2844511ce9db553e
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:34:13 2011 -0700

    Pull a session out of the object.

commit 59d780eb0ffcc82572491f85f08eb4ac04cab109
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:15:05 2011 -0700

    Rework PayPalStd driver to create transaction before sending the user off to PayPal.

commit cd2683aa8595875f7c501f29c622abaf350e90f6
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:14:19 2011 -0700

    Fix some comments to be more cleanly readable.

commit cf1fecfb916906c4d8ec8d33bd85c59b0aea3b7c
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Tue May 24 11:13:52 2011 -0700

    Make the transaction optional when displaying a payment error.

commit f3c949e03a18ac513938f2ed483002c5304663d5
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 23 19:19:56 2011 -0700

    Remove dead code.

commit 5ddcb49f094fd054f79da38c4a95dd86c55a157f
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Thu May 19 11:31:15 2011 -0700

    If a transaction is updated with a cart object, remove all transationItems from the transaction before adding new ones.

commit 3315cb30a5c1fd4d583ce352cbc9022e52544404
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Thu May 19 11:30:58 2011 -0700

    Remove duplicate entries from ExpressCheckout i18n

commit b46d5af528d7223d12ecbed383e798cfc376ad2a
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 23 16:07:33 2011 -0700

    Fix the version number of the PayPal API we send.  Add the serialized request to the log file.  Fix i18n labels so it's clear which username and password to use.

commit 1604d375822eb013c633b72993fa524703a72127
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Wed May 18 15:50:42 2011 -0700

    Fix copy/paste errors from other i18n modules into ExpressCheckout.

commit f2c958fc7128348a18a005bfbadf83457861d6e2
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Wed May 18 11:26:15 2011 -0700

    Update out of date POD about checking out.

commit 61ca80b15701733a1a7c7eae5d825b161e0c71c1
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 23 16:05:09 2011 -0700

    Fix documentation in appendCartVariables, and return the hash instead of $self.

commit d3b7341c44c924f395f8594c8ae77d8187170c9f
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 23 16:03:20 2011 -0700

    Remove variables that were not being used.

commit 2913f96182a7630bce01998bb022d3ebf4842171
Author: Colin Kuskie <colink@perldreamer.com>
Date:   Mon May 16 21:05:54 2011 -0700

    Pull isRecurring directly from the Cart if creating/updating a transaction from one.
2011-05-24 11:57:16 -07:00
Colin Kuskie
52294139a0 -0.00 ne 0.00. Handle both cases of ~0 when checking out to intercept and finish the transaction immediately. 2011-05-19 08:58:44 -07:00
Colin Kuskie
5c175c42d9 If there is a problem with the user's billing address, still let them get into the Cart. Fixes bug #12081. 2011-03-31 16:56:09 -07:00
Martin Kamerbeek
b22ed80dc7 Fixed #12007: Hardcoded js in cart view. 2010-12-23 16:45:15 +00:00
Martin Kamerbeek
10ea82d6ec Don't let the cart crash on invalid addressIds 2010-12-22 13:31:16 +00:00
Martin Kamerbeek
f748aa1b83 Return a list of shipper to choose from in stead of none if no shipper has be chosen yet. 2010-12-22 13:11:56 +00:00
Colin Kuskie
5765739a95 Labels in the Cart for addresses are optional. They take the first line of the address if left blank. Tested w and w/o JS. 2010-09-01 12:22:55 -07:00
Doug Bell
c931cab85c fix #11755: New cart does not update shipping 2010-07-29 17:33:02 -05:00
Colin Kuskie
89e20a3073 Fix how the cart handles items with shipping, added to the cart by visitor. Fixes bug #11693. 2010-06-30 09:00:24 -07:00
Colin Kuskie
8283243823 Allow visitor to remove items from their cart. Fixes bug #11667 2010-06-22 08:27:38 -07:00
Colin Kuskie
760abafd9c Put back a www_checkout method, to be used by the Payment plugin when displaying upstream errors. Fixes bug #11584. 2010-05-24 11:05:33 -07:00
Colin Kuskie
bd41360ad4 Internationalize all cart error messages. 2010-05-10 19:21:57 -07:00
Colin Kuskie
22d6806dfe Better UI for changing addresses. Prevent bad things from happening if the user delete required fields. 2010-05-10 17:19:01 -07:00
Colin Kuskie
f04cf29300 Fix display of the shop credit deduction when there's a recurring item in the cart. Fixes bug #11557 2010-05-05 18:29:03 -07:00
Colin Kuskie
eb9d32f6f5 Log the correct transaction data on a $0 checkout. 2010-05-05 17:28:33 -07:00
Colin Kuskie
113c44ada8 Give the cart an id for the JS to work with. 2010-05-05 16:36:31 -07:00
Colin Kuskie
984003123c Shade the buttons with CSS. Don't show per-item shipping if there's only 1 item in the cart. 2010-05-04 10:20:31 -07:00
Paul Driver
e26723f526 handling per-item shipping dropdowns in js 2010-05-03 17:06:11 -07:00
Colin Kuskie
d92347bf34 Use a method rather than reinventing the getPaymentGateway method. 2010-05-02 18:13:25 -07:00
Colin Kuskie
0179930011 Give the perItem dropdowns the same class name. 2010-04-30 16:45:09 -07:00
Colin Kuskie
cb8c8da1ac Per item shipping. 2010-04-30 16:42:10 -07:00
Paul Driver
9a827affc4 Updating shipping/tax info based on address 2010-04-30 11:03:59 -07:00
Colin Kuskie
9ab13fb524 Document how and why we handle $0 checkouts 2010-04-30 08:51:30 -07:00
Colin Kuskie
d986496131 Code tweaks and comments for clarity. 2010-04-30 08:48:22 -07:00
Colin Kuskie
85978eeb23 Remove totalPrice since it was in there twice 2010-04-29 18:15:24 -07:00
Colin Kuskie
295ff15491 Wrap summary price data in a span so they can be automatically updated. 2010-04-29 17:01:43 -07:00
Colin Kuskie
273452c024 Restore the checkout button. 2010-04-29 15:25:57 -07:00
Colin Kuskie
b186f2f713 Make the cart be able to remove items, without using Javascript. 2010-04-29 15:20:58 -07:00
Colin Kuskie
6fe302774c remove www_selectPaymentGateway, and www_checkout which are now dead code 2010-04-29 14:57:27 -07:00
Colin Kuskie
674b299069 Handle $0 checkouts. Still requires that ANY payment plugin be selected. 2010-04-29 14:51:06 -07:00
Colin Kuskie
bdb1777875 Checking out when shipping is not required works. 2010-04-29 12:22:51 -07:00
Colin Kuskie
a9578eec2c Always show a shipping selector dropdown, unless there are no shipping options available. 2010-04-28 22:51:05 -07:00
Colin Kuskie
f5ecc2f507 Add valid address checks to cart readyForCheckout. Only log missing fields if an address operation isn't occuring. 2010-04-28 22:23:07 -07:00
Colin Kuskie
cf95ff6683 Allow billingAddress to be set at the same time as the shippingAddress is set to it. 2010-04-28 20:15:26 -07:00
Colin Kuskie
131d4cb041 If shipping is required by an item in the cart, always display a shipping dropdown or option. 2010-04-28 16:09:34 -07:00
Colin Kuskie
622f1b1658 Fix a double my warning in the Cart. 2010-04-28 15:53:17 -07:00
Paul Driver
17dd742c08 Javascript enhancements for cart address handling 2010-04-28 15:09:37 -07:00
Colin Kuskie
5ebd6864cc Log cart errors for anything that prevents you from checking out. Fix an error in the PayDriver template variables. 2010-04-28 11:48:07 -07:00
Colin Kuskie
a472f9ebdd Add common cart summary template variables to the PayDriver. Add a summary screen for Cash. i18n fixes for Cash. 2010-04-28 11:19:34 -07:00
Colin Kuskie
d48d9bc90f Check for valid shipping and payment drivers for checkout. Rebuild transaction to take all info from the Cart. 2010-04-28 09:31:01 -07:00
Colin Kuskie
e0a9f34b53 Update readyForCheckout, shipping address is optional, must have gatewayId, too. 2010-04-27 17:29:14 -07:00
Colin Kuskie
822cac8dec Error promoted to a full cart method. Beginning to process the address forms. 2010-04-27 17:18:35 -07:00
Colin Kuskie
9365a55477 Bad code fixes, and no tax calculations without an address. 2010-04-27 13:14:53 -07:00
Colin Kuskie
7ef8de2a1f Checkout preparations. Change payment options to a dropdown in the cart. Pay->getOptions now returns just a hash. 2010-04-27 12:03:43 -07:00
Colin Kuskie
69bfa9b6ea Better detection for same shipping/billing address. 2010-04-26 18:03:50 -07:00
Colin Kuskie
fc95fa8f86 display taxes again. 2010-04-26 16:23:17 -07:00
Colin Kuskie
fe7f3e0cb2 Recalculate totals based on shipping, now that it works correctly. 2010-04-26 16:15:45 -07:00
Colin Kuskie
a98484dbcb Fix flag for having a price. Remove debug. Fix typos in ship driver selector generator. 2010-04-26 16:12:02 -07:00
Colin Kuskie
a26f85c8c0 Handle cases of no shipping plugin, and optional price formatting for shipping. 2010-04-26 15:20:34 -07:00
Colin Kuskie
fa48f2eca9 Remove old form JS. Display shipping information, but not the address. Do not format currency unless it exists. Template support. 2010-04-26 14:55:43 -07:00