Custom Content Type Manager has been a great help for my store's showcasing needs. With it, I have created detailed product information (without need of a shopping cart) and even an order queue for people to track their custom on-demand commission online.
However, Im still curious if I could input an email address custom field in the Order Queue content type, so that when another field (called "Status") is updated, an email notification will be sent (via wp mail) to the customer. This would work for us best because our DIY items go through 3-5 phases in its creation process. As of now, someone has to go to our site and stalk the order queue page themselves to know if their item has moved to the next phase. A notification email upon change of a particular Custom Content Type Manager Custom Field would be better:
While I have seen this done with PodsCMS, I wondered if code similar to this could be used:
<?php
$ready_to_ship = $columns['ready_to_ship']['value'];
$to = $columns['email_address']['value'];
$customer_name = $columns['name']['value'];
if ( $ready_to_ship ) {
$subject = 'Your order is ready to ship!';
$message = 'Dear ' . $customer_name . ': Your order is ready to ship. ';
wp_mail( $to, $subject, $message);
}
?>