Displaying shortcode in email
-
I am trying to add the shortcode to the completed email so the user gets emailed the information. Here is my code in the customer completed order email:
$carrier = do_shortcode( '[carrier_name]' ); $date = do_shortcode( '[pickup_date]' ); $tracking = do_shortcode( '[track_code]' ); <p>Your order has been picked up by <?php echo $carrier; ?> on <?php echo $date; ?>. Your track code is <?php echo $tracking; ?>.</p>
This prints out ‘[carrier_name]’ instead of the actual value, so what other code do I need to add to this template so that shortcode works?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Displaying shortcode in email’ is closed to new replies.