parse_styles( $props['childStyle']['.viwec-item-style-1'] ) : ''; $col_width = $props['childStyle']['.viwec-text-price'] ? $render->parse_styles( $props['childStyle']['.viwec-text-price'] ) : ''; $trans_product = $props['content']['product'] ?? esc_html__( 'Product', 'viwec-email-template-customizer' ); $trans_quantity = $props['content']['quantity'] ?? esc_html__( 'Quantity', 'viwec-email-template-customizer' ); $trans_price = $props['content']['price'] ?? esc_html__( 'Price', 'viwec-email-template-customizer' ); $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'; $left_align = $direction === 'rtl' ? 'right' : 'left'; $right_align = $direction === 'rtl' ? 'left' : 'right'; $th_style_left = "border:1px solid #dddddd; text-align:{$left_align}; padding: 10px;"; $th_style_center = 'border:1px solid #dddddd; text-align:center; padding: 10px;'; $th_style_right = 'border:1px solid #dddddd; text-align:right; padding: 10px;'; $html = ""; $html .= ""; ob_start(); foreach ( $items as $item_id => $item ) { $product = $item->get_product(); $sku = $purchase_note = $image = $p_url = ''; if ( ! apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { continue; } if ( is_object( $product ) ) { $sku = $product->get_sku(); $purchase_note = $product->get_purchase_note(); $p_url = $remove_product_link ? '#' : $product->get_permalink(); $image_size = apply_filters( 'viwec_order_detail_default_image_size', array( 64, 64 ) ); $image = $product->get_image( $image_size ); } ?> '; echo wp_kses( $out, viwec_allowed_html() );
{$trans_product}{$trans_quantity}{$trans_price}
{$item->get_name()}"; echo wp_kses_post( apply_filters( 'woocommerce_order_item_name', $name, $item, false ) ); if ( $show_sku && $sku ) { echo '' . wp_kses_post( ' (#' . $sku . ')' ) . ''; } do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false ); wc_display_item_meta( $item, array( 'before' => '
', 'after' => '
', 'separator' => '
', 'label_before' => '', ) ); // allow other plugins to add additional product information here. do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false ); do_action( 'viwec_order_item_parts', $item_id, $item, $order, false ); ?>
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 ) ); ?> get_formatted_line_subtotal( $item ) ); ?>