Custom Fields – Print
-
I’m trying to define the values of a gift plugin i’m using on my client’s website in the order_handler.php file. These are the defined values. How do I print these values? Thanks for all your help in advance.
$gift_amount = get_post_meta($order_id, ‘pw_gift_card_amount’, true);
$gift_to = get_post_meta($order_id, ‘pw_gift_card_to’, true);
$gift_from = get_post_meta($order_id, ‘pw_gift_card_from’, true);
$gift_message = get_post_meta($order_id, ‘pw_gift_card_message’, true);Right now it’s printing like this:
pw_gift_card_amount: $100
pw_gift_card_to: [email protected]
pw_gift_card_from: [email protected]
pw_gift_card_message: Test MessageThis is how it shows up on the email confirmation:
Gift Card – $100
?Amount: 100
?To: [email protected]
?From: [email protected]
?Message:test
?Gift Card: XXXX-XXXX-XXXX-XXXX
- The topic ‘Custom Fields – Print’ is closed to new replies.