-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Free Orders where shipping is all that needs to be paid, ref #361
- Loading branch information
1 parent
d7fc62c
commit 6e6d171
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6e6d171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcppdevelopers Looks like we're still adding a WC notice about the amount being zero and unable to process even though we're redirecting and allowing the order..??
6e6d171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@angelleye I have tested all the payment method and now it's working fine.
6e6d171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcppdevelopers I understand the functionality looks to be working fine, but is it still leaving an admin notice somewhere about the order amount being zero? I'm referring to 6e6d171#diff-0d4905591d4c6c2d8a88434d34bbfaffR686
6e6d171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@angelleye Logically it's true because shipping cost must be added in the WC()->cart->total variable.
6e6d171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kcppdevelopers If the line items come to $0 but shipping is $5, and you're adding $5 to the cart -> total, then how is the order total zero? They wouldn't need to try again because of an unprocessed order. The whole point is that we're allowing these to go through so that people can pay for just the shipping.
So I still don't see how this log message makes sense..??
6e6d171
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I am not adding shipping to cart total. cart->total = shipping + tax + product total - discount.
cart->total = 0 means shipping is disable or 0 amount.