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 = "
{$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' => ' ',
'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 = ' |
get_formatted_line_subtotal( $item ) ); ?> |