woocommerce/includes/admin/meta-boxes/views
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
..
html-order-download-permission.php Fix PEAR.Functions.FunctionCallSignature violations 2019-12-20 15:25:23 -03:00
html-order-fee.php Use phpcbf to fix coding standard violations in includes/admin 2018-03-05 16:21:35 -03:00
html-order-item-meta.php Fix PEAR.Functions.FunctionCallSignature violations 2019-12-20 15:25:23 -03:00
html-order-item.php Merge branch 'master' into update/order-detail-summary 2020-01-30 17:41:32 +01:00
html-order-items.php Only display the "Paid by customer" section if the order has been paid 2020-02-05 16:08:13 -03:00
html-order-notes.php Use full year and 24h format in order note tooltip 2019-10-16 14:59:36 +02:00
html-order-refund.php Add woocommerce_after_order_refund_item_name hook 2019-10-03 08:53:10 +03:00
html-order-shipping.php Use phpcbf to fix coding standard violations in includes/admin 2018-03-05 16:21:35 -03:00
html-product-attribute.php Merge branch 'fix/23221' of https://github.com/senff/woocommerce into senff-fix/23221 2019-07-08 17:55:07 -03:00
html-product-data-advanced.php Fix Generic.WhiteSpace.ScopeIndent violations 2019-12-20 14:48:11 -03:00
html-product-data-attributes.php Use phpcbf to fix coding standard violations in includes/admin 2018-03-05 16:21:35 -03:00
html-product-data-general.php Change misleading tooltip for product sale meta box 2019-06-14 11:12:54 +05:30
html-product-data-inventory.php Remove the stock data type on low stock threshhold input which can be blank 2018-11-29 14:58:51 -04:00
html-product-data-linked-products.php Prevent grouped products showing when the type is variable 2018-01-19 12:20:27 +00:00
html-product-data-panel.php Reintroduce Preview button on products 2018-11-06 15:28:23 -05:00
html-product-data-shipping.php Sort shipping classes under products alphabetically 2019-08-01 13:07:05 -04:00
html-product-data-variations.php Impoved JSON handling 2019-02-20 12:00:47 +00:00
html-product-download.php Admin metaboxes views translation escaping fix (#17776) 2017-11-21 17:50:30 +00:00
html-product-variation-download.php Admin metaboxes views translation escaping fix (#17776) 2017-11-21 17:50:30 +00:00
html-variation-admin.php Update html-variation-admin.php 2019-08-28 19:43:02 +05:30