Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

kazie on "[Plugin: WooCommerce - excelling eCommerce] Product tags in order confirmation email?"

$
0
0

This is what my code looks like now, but it's not outputting the product brand.

<?php

			$term_list = wp_get_post_terms( $product_id, 'product_tag', array( "fields" => "names" ) );
			foreach( $term_list as $term ) echo $term . '<br/>';

			// Show title/image etc
			echo 	apply_filters( 'woocommerce_order_product_image', $image, $_product, $show_image);

			// Product name
			echo 	apply_filters( 'woocommerce_order_product_title', $item['name'], $_product );

			// SKU
			echo 	($show_sku && $_product->get_sku()) ? ' (#' . $_product->get_sku() . ')' : '';

			// File URLs
			if ( $show_download_links && $_product->exists() && $_product->is_downloadable() ) {

				$download_file_urls = $order->get_downloadable_file_urls( $item['product_id'], $item['variation_id'], $item );

				$i = 0;

				foreach ( $download_file_urls as $file_url => $download_file_url ) {
					echo '<br/><small>';

					if ( count( $download_file_urls ) > 1 ) {
						echo sprintf( __('Download %d:', 'woocommerce' ), $i + 1 );
					} elseif ( $i == 0 )
						echo __( 'Download:', 'woocommerce' );

					echo ' <a href="' . $download_file_url . '" target="_blank">' . basename( $file_url ) . '</a></small>';

					$i++;
				}
			}

			// Variation
			echo 	($item_meta->meta) ? '<br/><small>' . nl2br( $item_meta->display( true, true ) ) . '</small>' : '';

		?>

Viewing all articles
Browse latest Browse all 104029

Trending Articles