parse_styles( $props['childStyle']['.viwec-item-row'] ) : ''; $name_style = ! 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 ); $item_id_start = 0; $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 = ''; $sku = $product->viwec_product_sku ?? (method_exists($product,'get_sku')? $product->get_sku(): ''); $purchase_note = $product->viwec_purchase_note ?? (method_exists($product,'get_purchase_note')? $product->get_purchase_note():''); if (!$remove_product_link) { $p_url = $product->viwec_product_permalink ?? ( method_exists( $product, 'get_purchase_note' ) ? $product->get_permalink() : '' ); } if (!$item_id_start){ $item_id_start = $item_id; } $tmp_item_style = $item_style.'border-collapse:collapse;font-size: 0;'; $tmp_item_distance = ''; if ($item_id_start != $item_id){ $tmp_item_distance = 'width: 100%;'.$items_distance; } if (isset($product->viwec_product_img_url)){ $img_url = $product->viwec_product_img_url; }else{ $img_url = $product && method_exists($product,'get_image_id') ? wp_get_attachment_image_url( $product->get_image_id(), 'woocommerce_thumbnail' ):wc_placeholder_img_src(); } $img_url = apply_filters( 'viwec_order_item_thumbnail_url',$img_url,$product, $item); if ($tmp_item_distance){ ?>
",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 ) );// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

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 ) ); ?>