get_product();
if ( empty( $product ) ) {
return;
}
$step = \Atum\Inc\Helpers::get_input_step();
$product_id = 'variation' === $product->get_type() ? $product->get_parent_id() : $product->get_id();
$product_link = $product ? admin_url( 'post.php?post=' . $item->get_product_id() . '&action=edit' ) : '';
$thumbnail = $product ? apply_filters( 'atum/atum_order/item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), FALSE ), $item_id, $item ) : '';
?>
|
' . wp_kses_post( $thumbnail ) . ''; ?>
|
' . esc_html( $item->get_name() ) . '' : ' ' . esc_html( $item->get_name() ) . ' ';
if ( $product && $product->get_sku() ) : ?>
get_sku() ) ?>
get_supplier_sku();
if ( $supplier_sku ) : ?>
get_variation_id() ) : ?>
get_variation_id() ) ) :
echo esc_html( $item->get_variation_id() );
else :
/* translators: the variation ID */
printf( esc_html__( '%s (No longer exists)', ATUM_TEXT_DOMAIN ), esc_attr( $item->get_variation_id() ) );
endif; ?>
managing_stock() || 'parent' === $product->managing_stock() ) : ?>
">
get_meta( '_stock_changed' ) ) : ?>
">
|
'names' ) );
$locations_list = ! empty( $locations ) ? implode( ', ', $locations ) : '–';
?>
>
|
get_currency();
echo wc_price( $atum_order->get_item_total( $item, FALSE, TRUE ), array( 'currency' => $currency ) ); // WPCS: XSS ok.
if ( $item->get_subtotal() != $item->get_total() ) : // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison ?>
-get_item_subtotal( $item, FALSE, FALSE ) - $atum_order->get_item_total( $item, FALSE, FALSE ), '' ), array( 'currency' => $currency ) ); // WPCS: XSS ok. ?>
|
× get_quantity() ); ?>
|
get_total(), array( 'currency' => $currency ) ); // WPCS: XSS ok.
if ( $item->get_subtotal() != $item->get_total() ) : // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison ?>
-get_subtotal() - $item->get_total(), '' ), array( 'currency' => $currency ) ); // WPCS: XSS ok. ?>
|
get_taxes() ) && wc_tax_enabled() ) :
foreach ( $atum_order->get_taxes() as $tax_item ) :
/**
* Variable definition
*
* @var WC_Order_Item_Tax $tax_item
*/
$tax_item_id = $tax_item->get_rate_id();
$tax_item_total = isset( $tax_data['total'][ $tax_item_id ] ) ? $tax_data['total'][ $tax_item_id ] : '';
$tax_item_subtotal = isset( $tax_data['subtotal'][ $tax_item_id ] ) ? $tax_data['subtotal'][ $tax_item_id ] : '';
?>
$currency ) ); // WPCS: XSS ok.
else :
echo '–';
endif;
if ( $item->get_subtotal() != $item->get_total() ) : // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
if ( '' === $tax_item_total ) : ?>
–
- $currency ) ); // WPCS: XSS ok. ?>
|
|