izghitu Posted August 9, 2018 Share Posted August 9, 2018 Hi, I have setup Product Custom Fields for the customer to enter when ordering a product. The data that the customer is supposed to enter is sensitive so after he does checkout that data is sent to me by email in the order confirmation. Is there any way to filter out so certain Product Custom Fields are not included in the order confirmation email? Please let me know. Thanks 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted August 9, 2018 Share Posted August 9, 2018 (edited) Use EmailPreSend action hook to intercept the sending of Order Confirmation (messagename) then re-create {$order_details} variable so that it doesn't include the custom fields you don't want to show. If you are familiar with hooks it's doable but also very boring and long to complete. Probably it could be possible to remove your fields also with a Smarty modifier on {$order_details} (regex, replace and stuff like that) but it would be a bit crazy. I don't even know why I'm talking about it 😄 It would be the psycho approach. Edited August 9, 2018 by Kian 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 9, 2018 Share Posted August 9, 2018 hey there's nothing wrong with a psycho approach now and again - often WHMCS can drive you into doing them! 🤡 but seriously, i'd agree with Kian on this - neither path is particularly quick and easy to do and I can't think on an alternate method. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.