PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.21
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.21
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 1.10.1 1.10.0 1.9.17 All 166 releases
← All changes | includes/Gateways/Cash.php +4 -2 1.10.7 → 1.10.21 View file →
@@ -53,11 +53,13 @@
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.
57 59 return array(
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 ),
60 + 'tendered' => $order->get_meta( '_pos_cash_amount_tendered' ),
61 + 'change' => $order->get_meta( '_pos_cash_change' ),
60 62 );
61 63 }
62 64
63 65 /**