Add SKU to the order list in the Request Email
-
There is an older forum post which answers this question. But the answer is inside a picture that is an expired link and cannot be viewed.
So anyway I thought I would show the solution here so it might help people wanting to do the same thing. I was trying to add the SKU part numbers to emails sent as part of the Request New quote email. But get_sku() does not work on the object I was trying it on. In request-new-quote.php –under the foreach loop –
foreach ( $order_obj->get_items() as $items ) {
$product = $items->get_product(); // get_sku() can only be used on the product objectand then in your table you can add a new line
<td style=”text-align:left; border: 1px solid #eee;”><?php echo wp_kses_post( $product->get_sku() ); ?></td>Gavin
The page I need help with: [log in to see the link]
- The topic ‘Add SKU to the order list in the Request Email’ is closed to new replies.