PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.17
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.17
1.10.25 1.10.24 1.10.23 1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 All 169 releases
← All changes | includes/Gateways/Cash.php +2 -4 1.10.22 → 1.10.17 View file →
@@ -53,13 +53,11 @@
53 53 *
54 54 * @return array
55 55 */
56 56 public static function payment_details( WC_Order $order ) {
57 - // Read through the order: process_payment() writes these with update_meta_data(),
58 - // and on HPOS that is wc_orders_meta, which get_post_meta() cannot see.
59 57 return array(
60 - 'tendered' => $order->get_meta( '_pos_cash_amount_tendered' ),
61 - 'change' => $order->get_meta( '_pos_cash_change' ),
58 + 'tendered' => get_post_meta( $order->get_id(), '_pos_cash_amount_tendered', true ),
59 + 'change' => get_post_meta( $order->get_id(), '_pos_cash_change', true ),
62 60 );
63 61 }
64 62
65 63 /**