I haven't tried this, but we used a similar message to customize the outgoing message subject, when orders were processed from different sections and sub-sites, so it may also work for email.
CONFIRMATION: Publication Order from {order_custom9}
Basically, we created a custom order field
and inserted that into the subject from the checkout_review
template, with a hidden input variable
<input type="hidden" name="order_custom9" value="Social Science Store" />
So, I imagine, but can't guarantee this would work, but you could insert a custom field into the BCC: field, like:
BCC: [email protected], {order_custom10}
<div class="form-actions">
<input type="hidden" name="payment_method" value="free" />
<input type="hidden" name="order_custom10" value="{selected_email}" />
<a href="{path='store/order_checkout'}" class="btn">Back</a>
<input type="submit" name="submit" value="Place Order" class="btn btn-success" />
</div>
where the {selected_email}
would be the results of whatever calculation you use to determine the proper email address. This could be straight up text, with an {if}{if:else}
statement or potentially a field. We've worked with just straight up text, so I can't say a field would work, but it could.
Anyway, there's no harm in trying. But this is how we've been using custom_fields
, basically to modify the outgoing email messages.