Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

vimes1984 on "Woocommerce purchase note?"

$
0
0

I think i am missing something glaringly obvious here:
I am trying to include the pruchase note in the customer-completed-order.php so the customer recives the note along with the pruchase confirmation. but i am failing miserably.
here is what i have tried:

<?php echo '<div class=\"product-purchase-note\">'. $purchase_note . 'PURCHASE NOTE</div>'; ?>

`<?php $purchase_note = get_post_meta( $_product->id,'_purchase_note');
echo '<div class="product-purchase-note">' . $purchase_note . '</div>';
?>`
and this:

` <?php
$purchase_note = get_post_meta( $_product->id, '_purchase_note', true)) :
echo '<td class="product-purchase-note">' . apply_filters('the_content', $purchase_note) . '</td>';
?>`

and this:

<?php 		if ($order->status=='completed' || $order->status=='processing') {
					if ($purchase_note = get_post_meta( $_product->id, '_purchase_note', true))
						echo '<div class="product-purchase-note"><div>' . apply_filters('the_content', $purchase_note) . '</div></div>';
				} ?>

nothing seems to work....
it shows up on the order-received page but will not show on the order confirmed email.
Any help is much apricated I am also open to some other method to get the note to the client upon purchase.
such as custom meta values maybe??
Chris


Viewing all articles
Browse latest Browse all 8245

Trending Articles