Jump to content

Product Custom Fields and email confirmation


izghitu

Recommended Posts

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

Link to comment
Share on other sites

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 by Kian
Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated