Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jcl3217

    (@jcl3217)

    I know how i can disable the attributes in the product title. how can i show product attribute without product title then.

    Thread Starter jcl3217

    (@jcl3217)

    Then how can i show the variation only?

    Thread Starter jcl3217

    (@jcl3217)

    <tr style=”font-size: 9px;” class=”<?php echo esc_attr( apply_filters( ‘woocommerce_order_item_class’, ‘order_item’, $item, $order ) ); ?>”>
    <td class=”td” style=”line-height: 100% padding:0; font-size: 11px;text-align:<?php echo $text_align; ?>; vertical-align:middle; border:1px solid #eee; font-family: ‘Helvetica Neue’, Helvetica, Roboto, Arial, sans-serif; word-wrap:break-word;”>
    <?php

    // Show title/image et
    // Product name
    echo apply_filters( ‘woocommerce_order_item_name’, $product->get_sku(), $product, false );
    // SKU

    // allow other plugins to add additional product information here
    do_action( ‘woocommerce_order_item_meta_start’, $item_id, $item, $order, $plain_text );

    wc_display_item_meta( $item );

    // allow other plugins to add additional product information here
    do_action( ‘woocommerce_order_item_meta_end’, $item_id, $item, $order, $plain_text );

    ?>
    </td>
    <td class=”td” style=”line-height: 100% padding:5px 50px 0px 0px; font-size: 11px; text-align:<?php echo $text_align; ?>; vertical-align:middle; border: 1px solid #eee; font-family: ‘Helvetica Neue’, Helvetica, Roboto, Arial, sans-serif; word-wrap:break-word;”><?php

    // Product name
    echo apply_filters( ‘woocommerce_order_item_name’, $item->get_name(), $item, false );

    // allow other plugins to add additional product information here
    do_action( ‘woocommerce_order_item_meta_start’, $item_id, $item, $order, $plain_text );

    wc_display_item_meta( $item );

    // allow other plugins to add additional product information here
    do_action( ‘woocommerce_order_item_meta_end’, $item_id, $item, $order, $plain_text );

    ?></td>

    <td class=”td” style=”line-height: 100% padding:0; font-size: 11px; text-align:<?php echo $text_align; ?>; vertical-align:middle; border: 1px solid #eee; font-family: ‘Helvetica Neue’, Helvetica, Roboto, Arial, sans-serif;”><?php echo apply_filters( ‘woocommerce_email_order_item_quantity’, $item->get_quantity(), $item ); ?>

    </td>
    <td class=”td” style=”line-height: 100% padding:0; font-size: 11px; text-align:<?php echo $text_align; ?>; vertical-align:middle; border: 1px solid #eee; font-family: ‘Helvetica Neue’, Helvetica, Roboto, Arial, sans-serif;”>
    <?php echo apply_filters( ‘woocommerce_order_item_name’, $data[‘key’], false );
    ?>

    </td>
    </tr>
    <?php

    Thread Starter jcl3217

    (@jcl3217)

    Sorry for wrong explanation,
    I made the order email template, that has SKU, Item name, Qty, Variation (color or sex)
    but the variation information with product name – Variation.
    I really want to separate variation with product and show with different column on email template.
    I got the how to separate only SKU, however, Variations are keep coming with product name

    do you get it what I’m trying to do??

Viewing 4 replies - 1 through 4 (of 4 total)