parse_styles( $props['childStyle']['.viwec-item-row'] ) : ''; $name_size = ! empty( $props['childStyle']['.viwec-product-name'] ) ? $render->parse_styles( $props['childStyle']['.viwec-product-name'] ) : ''; $quantity_size = ! empty( $props['childStyle']['.viwec-product-quantity'] ) ? $render->parse_styles( $props['childStyle']['.viwec-product-quantity'] ) : ''; $price_size = ! empty( $props['childStyle']['.viwec-product-price'] ) ? $render->parse_styles( $props['childStyle']['.viwec-product-price'] ) : ''; $items_distance = ! empty( $props['childStyle']['.viwec-product-distance'] ) ? $render->parse_styles( $props['childStyle']['.viwec-product-distance'] ) : ''; $show_sku = ! empty( $props['attrs']['show_sku'] ) && $props['attrs']['show_sku'] == 'true' ? true : false; $remove_product_link = ! empty( $props['attrs']['remove_product_link'] ) && $props['attrs']['remove_product_link'] == 'true'; $trans_quantity = $props['content']['quantity'] ?? 'x'; $font_size = '15px'; $list_items_key = array_keys( $items ); $end_id = end( $list_items_key ); $parent_width = ! empty( $props['style']['width'] ) ? str_replace( 'px', '', $props['style']['width'] ) : 600; $img_width = ! empty( $props['childStyle']['.viwec-product-img']['width'] ) ? str_replace( 'px', '', $props['childStyle']['.viwec-product-img']['width'] ) : 150; $price_width = ! empty( $props['childStyle']['.viwec-price-width']['width'] ) ? str_replace( 'px', '', $props['childStyle']['.viwec-price-width']['width'] ) : 120; $name_width = $parent_width - $img_width - $price_width - 2; foreach ( $items as $item_id => $item ) { if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { continue; } $product = $item->get_product(); $sku = $purchase_note = ''; if ( ! is_object( $product ) ) { continue; } $sku = $product->get_sku(); $purchase_note = $product->get_purchase_note(); $p_url = $remove_product_link ? '#' : $product->get_permalink(); $img_url = wp_get_attachment_image_url( $product->get_image_id(), 'woocommerce_thumbnail' ); $image = sprintf( "", esc_attr( $img_width ), esc_url( $img_url ) ); ?>
get_name(), $item, false ) ); if ( $show_sku && $sku ) { echo '' . wp_kses_post( ' (#' . $sku . ')' ) . ''; } ?>

get_quantity(); $refunded_qty = $order->get_qty_refunded_for_item( $item_id ); if ( $refunded_qty ) { $qty_display = '' . esc_html( $qty ) . ' ' . esc_html( $qty - ( $refunded_qty * - 1 ) ) . ''; } else { $qty_display = esc_html( $qty ); } echo wp_kses_post( apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item ) ); echo '
'; ?>

'
', 'after' => '
', 'separator' => '
', 'label_before' => '', ) ); do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false ); ?>

get_formatted_line_subtotal( $item ) ); ?>