Needs review
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Payment
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 May 2012 at 15:43 UTC
Updated:
15 Feb 2016 at 03:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
longwaveIndeed, PayPal does not support orders with a zero subtotal, even if shipping is charged. This is not a bug in Ubercart, I think you will have to find another workaround (such as charging for the product and not charging for shipping).
Comment #2
sittard commentedConfirms what I thought!!! Unfortunately due to the nature of this promotion the product has to remain at zero with a postage charge. Would it be possible for the postage to be treated as a product automatically, for the purpose of this campaign?
Thanks.
Comment #3
end user commentedMaybe set the product as a product kit?
Comment #4
sittard commentedThanks for the suggestion, I've not used the 'product kit' module on this site build and I'm not 100% sure how this would help, perhaps you could expand.
Ubercart should have a fall back to catch orders with a zero subtotal being presented to PayPal in the first instance. Perhaps, the order could be blocked along with a logged warning message or the postage is bundled with the item amount so that the payment can be processed without failure.
Comment #5
longwaveThis issue was previously noted at #1017010: Paypal WPS not accepting zero value items where the cart total does have a value with the same conclusions.
Changing this to a feature request based on #4, I guess we could bundle shipping in with the product total in this special case.
Comment #6
end user commentedWell product kits lets you group several products into one. So I was thinking maybe have a Free Product with $0 cost and Second product would be Shipping Cost? Since the kits is a product the price of the Shipping Cost Product would be sent to PayPal. Although I guess it would have to be set to flat rate/weight.
Comment #7
sittard commentedThe idea of using product kits as a workaround is a smart one.
Attached is a patch which bundles the shipping charge in with the product total but only if the order would otherwise be declined by PayPal.
I've not tested on a live site, but it seems to be working on my development environment. Would be appreciate if one of the UC maintainers could take a quick look and improve if required.
Comment #8
longwaveComment #9
sittard commentedCould we get this patch committed. I've been running this on a live site for a long while now with out issues.
Thanks.
Comment #10
longwavePlease test this slightly simplified patch.
Comment #11
tr commented6.x-2.x is obsolete.