ID ); if ( ! ( $request instanceof SOFTOBA_Return_Request && $request->exists() ) ) { return; } $finished_request = apply_filters( 'softoba_finished_request', ( 'softoba-approved' == $request->status || 'softoba-rejected' == $request->status || 'trash' == $request->status ), $request ); $order = wc_get_order( $request->order_id ); $order_id = $order->get_id(); $order_number = $order->get_order_number(); $order_total = $order->get_total() - $order->get_total_refunded(); $product = $request->product_id ? wc_get_product( $request->product_id ) : ''; $tax_enabled = wc_tax_enabled(); $return_products = get_post_meta( $order_id, 'sobaoba_return_products', true ); $return_total = 0; ?>
' . wp_kses_post( $thumbnail ) . ''; ?> |
' . wp_kses_post( $item->get_name() ) . '' : ' ' . wp_kses_post( $item->get_name() ) . ' '; ?>
$order->get_currency() ) );
?>
Reason:
Comment:
|
$order->get_currency() ) ); ?> | $order->get_currency() ) ); ?> | ||||||||
$order->get_currency() ) ); ?> | get_items( 'tax' ); foreach ( $taxes as $tax_item ) { ?> $value ) { ?> | version, '3.0.0', '<' ) ? (float) $item['line_total'] : (float) $item->get_total(); ?> version, '3.0.0', '<' ) ? (float) $item['line_tax'] : (float) $item->get_total_tax(); ?> | $order->get_currency() ) ); ?> |
Order Total: | $order->get_currency() ) ); } else { echo $order->get_formatted_order_total(); } ?> | |
Request return Total: | $order->get_currency() ) ); ?> |
get_total(), array( 'currency' => $order->get_currency() ) ); ?> | ||
get_payment_method_title() ) { /* translators: 1: payment date. 2: payment method */ echo esc_html( sprintf( __( '%1$s via %2$s', 'astra' ), $order->get_date_paid()->date_i18n( get_option( 'date_format' ) ), $order->get_payment_method_title() ) ); } else { echo esc_html( $order->get_date_paid()->date_i18n( get_option( 'date_format' ) ) ); } // $refund_amount = wc_price( 1, array( 'currency' => $order->get_currency() ) ); ?> |
: | -get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> | |
: | get_total() - $order->get_total_refunded(), array( 'currency' => $order->get_currency() ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
is_closed ) : ?>
is_closed ) : ?>