Email Templates html in foreach $args
-
According to “Email Templates” closed topic, I’m using the response of manticarodrigo (thanks a lot!).
The only thing missing is a bit html to put the text smaller, but I can’t make it work in the echo sentence. Here’s the code:
<table cellspacing="0" cellpadding="6" style="width: 100%; border: 1px solid #eee;" border="1" bordercolor="#eee"> <tbody> <tr> <th style="text-align:center; border: 1px solid #eee;"><?php esc_html_e( 'Product', 'quote-wc' ); ?></th> <th style="text-align:center; border: 1px solid #eee;"><?php esc_html_e( 'Quantity', 'quote-wc' ); ?></th> <th style="text-align:center; border: 1px solid #eee;"><?php esc_html_e( 'Product Price', 'quote-wc' ); ?></th> </tr> </tbody> <?php foreach ( $order_obj->get_items() as $items ) { $args = array( 'show_download_links' => $downloadable, 'show_sku' => true, 'show_purchase_note' => true, 'show_image' => true, 'image_size' => array( 25, 25 )); } echo ($order_obj->email_order_items_table( $args )); ?> </table>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Email Templates html in foreach $args’ is closed to new replies.