get_product_from_item( $item ); $productLink = $product ? admin_url( 'post.php?post=' . absint( ACR_Functions::acrGetProductID( $product ) ) . '&action=edit' ) : ''; $thumbnail = $product ? apply_filters( 'acr_order_item_thumbnail', $product->get_image( array( 50, 50 ) ), $itemID, $item ) : ''; $itemTotal = ( isset( $item[ 'line_total' ] ) ) ? esc_attr( wc_format_localized_price( $item[ 'line_total' ] ) ) : ''; $itemSubtotal = ( isset( $item[ 'line_subtotal' ] ) ) ? esc_attr( wc_format_localized_price( $item[ 'line_subtotal' ] ) ) : ''; $itemRowClass = apply_filters( 'acr_order_item_class', 'cart_item', $item, $order ); ?> ' . wp_kses_post( $thumbnail ) . ''; ?> ' . esc_html( $item['name'] ) . '' : '
' . esc_html( $item['name'] ) . '
'; if ( $product && $product->get_sku() ) { echo '
' . __( 'SKU:', 'advanced-cart-recovery' ) . ' ' . esc_html( $product->get_sku() ) . '
'; } if ( ! empty( $item[ 'variation_id' ] ) ) { echo '
' . __( 'Variation ID:', 'advanced-cart-recovery' ) . ' '; if ( ! empty( $item[ 'variation_id' ] ) && 'product_variation' === get_post_type( $item[ 'variation_id' ] ) ) { echo esc_html( $item[ 'variation_id' ] ); } elseif ( ! empty( $item[ 'variation_id' ] ) ) { echo esc_html( $item[ 'variation_id' ] ) . ' (' . __( 'No longer exists', 'advanced-cart-recovery' ) . ')'; } echo '
'; } do_action( 'acr_before_order_itemmeta', $itemID, $item, $product ); include( 'html-order-item-meta.php' ); do_action( 'acr_after_order_itemmeta', $itemID, $item, $product ) ?>
get_item_total( $item, false, true ), array( 'currency' => ACR_Functions::acrGetOrderCurrency( $order ) ) ); if ( isset( $item[ 'line_subtotal' ] ) && $item[ 'line_subtotal' ] != $item[ 'line_total' ] ) { echo '-' . wc_price( wc_format_decimal( $order->get_item_subtotal( $item, false, false ) - $order->get_item_total( $item, false, false ), '' ), array( 'currency' => ACR_Functions::acrGetOrderCurrency( $order ) ) ) . ''; } } ?>
× ' . ( isset( $item[ 'qty' ] ) ? esc_html( $item[ 'qty' ] ) : '1' ); if ( $refunded_qty = $order->get_qty_refunded_for_item( $itemID ) ) { echo '' . ( $refunded_qty * -1 ) . ''; } ?>
ACR_Functions::acrGetOrderCurrency( $order ) ) ); } if ( isset( $item[ 'line_subtotal' ] ) && $item[ 'line_subtotal' ] !== $item[ 'line_total' ] ) { echo '-' . wc_price( wc_format_decimal( $item[ 'line_subtotal' ] - $item[ 'line_total' ], '' ), array( 'currency' => ACR_Functions::acrGetOrderCurrency( $order ) ) ) . ''; } if ( $refunded = $order->get_total_refunded_for_item( $itemID ) ) { echo '' . wc_price( $refunded, array( 'currency' => ACR_Functions::acrGetOrderCurrency( $order ) ) ) . ''; } ?>