Claudio Sanches
77f8bb57a6
Check if there's a payment method title
2020-07-30 13:05:03 -03:00
Claudio Sanches
008e41170b
Improved UX to highlight order data when there's some refund
2020-07-28 15:13:00 -03:00
Claudio Sanches
134ab5c184
Fixed coding standards
2020-07-27 20:21:41 -03:00
Claudio Sanches
4f90307e2e
Fixed "Paid By Customer" data when the orders contains refunds
2020-07-27 20:18:33 -03:00
Rodrigo Primo
44ecb0ec9e
Only display the "Paid by customer" section if the order has been paid
...
This commit changes the condition in the if the statement that decides
whether or not to display the "Paid by customer" section in the order admin
page. Before it, this section was displayed for all orders that
contained one of the following statuses: 'processing', 'completed' or 'refunded'.
The problem with this approach is that offline payment gateways, like
'Cash on Delivery', set the order status to processing when the order is
placed but before the customer pays for it. So the "Paid by customer"
section was being displayed in some cases where the order was not
actually paid yet creating a confusing experience to store managers.
To fix this, this commit also checks for the presence of the
`_date_paid` order meta. If this order meta is present and the order
status corresponds to one of the three statuses listed above, it means that
the order has been paid and we can display the "Paid by customer"
section. If this order meta is not present, we don't display the "Paid
by customer" section.
2020-02-05 16:08:13 -03:00
Peter Fabian
147266f44f
Updates to reflect PR feedback.
2020-02-04 21:43:29 +01:00
Peter Fabian
5001e14086
Renamed Discounts to Coupons.
2020-02-04 18:27:53 +01:00
Peter Fabian
d588218eb6
PHPCS
2020-02-03 23:18:12 +01:00
Peter Fabian
12fe0e6815
Corrected tax amount displayed in the summary.
2020-02-03 23:09:59 +01:00
Peter Fabian
f9c9498e7c
Replaced deprecated call with a substitute function.
2020-02-03 23:09:19 +01:00
David Levin
ee2c6b8096
Change net payment to net total
2020-01-27 21:10:11 -08:00
David Levin
3c92aacfcb
update shipping methods
2020-01-27 19:22:04 -08:00
David Levin
40c76b83a2
update order to play nice with gateways, add paid by customer when order is paid in full
2019-12-22 20:14:31 -08:00
David Levin
e4fcfc4d1a
add net payment calculation, and re-order refund item to bottom of rows
2019-12-20 14:28:06 -08:00
David Levin
34ff4544ff
trying to get net payment to work
2019-12-20 12:27:17 -08:00
David Levin
b7c455c9d1
Add line for net payment post refund
2019-12-20 12:06:11 -08:00
David Levin
b5bdb3dae0
change the order of shipping and fees in order line items
2019-12-19 12:11:50 -08:00
David Levin
7ecae84d99
Rename coupons to discounts in order summary
2019-12-19 08:00:21 -08:00
David Levin
8c62fc72a6
update order summary totals
2019-12-19 07:53:35 -08:00
David Levin
5df30cdbd6
rename method to get fee totals
2019-12-18 21:34:40 -08:00
David Levin
c6cd7331f9
update order details summary with items subtotal and start to add fees
2019-12-18 20:51:45 -08:00
Christopher Allford
d3a7266848
Hid variable product types from "Add Products" search on order management page
2019-12-03 14:17:51 -08:00
Claudio Sanches
47c370809e
Prevents taxes columns from being removed when the order is no longer editable
2019-06-07 10:07:32 -03:00
Mike Jolley
27ac2e1577
phpcs
2019-02-22 13:33:41 +00:00
Mike Jolley
d07d1cf0b0
If taxes are enabled, make the refund box readonly
2019-02-22 13:30:49 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
Gerhard Potgieter
6ff90a1912
Cleaner code and correct apply_filters
2018-09-11 12:50:20 +02:00
Gerhard Potgieter
e3994348b3
Update checked functionality to use a filter, removed option from settings screen. Can use the woocommerce_restock_refunded_items filter to have the option checked or not, defaults to unchecked.
2018-09-10 11:31:24 +02:00
Ivete Tecedor
9b07180c7a
#20822 -- adding config for making the "restock refunded items" checkbox be UNchecked by default
2018-09-10 11:27:14 +02:00
Mike Jolley
04e304921a
Show stock based on querystring var
2018-06-15 15:11:07 +01:00
Mike Jolley
a1bd9ab2ae
Input type number with correct width
2018-06-15 14:32:30 +01:00
Mike Jolley
52854b7690
Add qty to order via modal, include stock qty in formatted name display for reference
2018-06-08 16:18:32 +01:00
Mike Jolley
ce8eabc4a5
Include qty and reduce stock field on add item modal
2018-06-08 12:19:14 +01:00
Mike Jolley
8261cffaa7
Remove bulk actions
2018-06-07 18:01:21 +01:00
Beka Rice
7bd9cdacaa
Filter the used coupon URL in 'edit order' screen
2018-04-18 11:49:35 -04:00
Mike Jolley
5ac7aac369
Improve can_refund_order and add unit tests
2018-04-03 17:09:09 +01:00
Rodrigo Primo
23b69eba53
Use phpcbf to fix coding standard violations in includes/admin
...
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Mike Jolley
5fce9152bd
Merge pull request #18080 from WPprodigy/fix-stock-update-order-notes
...
Enhancements for stock updates
2018-02-19 14:51:05 +00:00
Mike Jolley
e36c05b1d5
Fix esc_attr/esc_html usage
2018-02-05 14:54:18 +00:00
Caleb Burks
9c3611624c
Remove extra CSS padding
2018-02-02 22:19:07 -05:00
Caleb Burks
02952bd0a3
Allow removing coupons on editable orders only
2018-02-02 21:59:09 -05:00
Caleb Burks
0d9e55d2ec
Hide Apply coupon in admin if coupons are disabled
2017-12-17 22:21:08 -06:00
Caleb Burks
274e5c3aa2
Hide manage stock buttons if inventory is disabled
2017-12-09 23:02:40 -06:00
The Dramatist
1783953f15
Admin metaboxes views translation escaping fix ( #17776 )
...
* Data escaped and validated. Plus translator comment documentation added.
* If it should be int then we should change the empty string default parameter to 0 as in 'if' condition checking 0 and empty string are same.
* Extra bracket removed.
* Indentation is fixed now.
* The taxonomy object should not be assigned to a variable before checking if this is a taxonomy or not.
* echo esc_attr__ replaced by esc_attr_e and visually tested.
* As I use WordPress VIP Coding Standard, they were marking them as warnings. But now it's fixed again.
* Escaping fix
* Extra Bracket Fix Again
2017-11-21 17:50:30 +00:00
Mike Jolley
98eeafcc29
Hide shipping/discount rows when not needed and match email wording.
2017-10-13 14:01:20 +01:00
claudiulodro
b5e02ea6f6
Add extra lines back in admin order summary
2017-10-12 14:01:11 -07:00
Mike Jolley
e0421cd7bc
Replay protection on refunds
...
Sends the current refunded amount with the request, so if a refund is
attempted twice it will mismatch.
Fixes #13614
2017-09-28 16:17:13 +01:00
Mike Jolley
8b4086caf2
Hide link to non-existing coupons
2017-08-24 17:08:34 +01:00
Mike Jolley
f18a146d0f
Prompt to apply fee in admin
2017-08-23 11:22:18 +01:00
Claudiu Lodromanean
a4d3518a61
Merge pull request #16508 from woocommerce/remove-manual-discounts
...
Removed manual discounts code
2017-08-18 08:30:07 -07:00