Show product purchase note on quote page
-
Thank you for the plugin, it works really well.
I would like to show the product’s purchase note on the thank you page.Is there a way to do this? I can show them on the normal checkout page using this code:
function mp_cart_item_sub_title( $cart_item ) {
$part_number = get_field( ‘part_number’, $cart_item[‘product_id’] );
echo “Part Number: $part_number”;
}
add_action( ‘woocommerce_after_cart_item_name’, ‘mp_cart_item_sub_title’, 10, 1 );function mp2_cart_item_sub_title( $cart_item ) {
$altpartname = get_field( ‘altpartname’, $cart_item[‘product_id’] );
echo “Alt Part Number: $altpartname”;
}
add_action( ‘woocommerce_after_cart_item_name’, ‘mp2_cart_item_sub_title’, 10, 1 );add_filter( ‘woocommerce_email_recipient_customer_completed_order’, ‘bbloomer_order_completed_email_add_to’, 9999, 3 );
Many thanks
- The topic ‘Show product purchase note on quote page’ is closed to new replies.