[Skip to main content](#vessel-content)

#   Send order confirmation to custom email field

##

- **[aulavirtualmusica](/forum/user/58425-aulavirtualmusica "View aulavirtualmusica's Profile")**
- [![aulavirtualmusica's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58425-aulavirtualmusica "View aulavirtualmusica's Profile") Topic Author
- [ Offline](/forum/user/58425-aulavirtualmusica)

Less More

- Posts: 10
- Thank you received: 0
-
-

7 years 4 months ago [\#308431](#308431) by [aulavirtualmusica](/forum/user/58425-aulavirtualmusica "View aulavirtualmusica's Profile")  *[Send order confirmation to custom email field](/forum/27-checkout/897829-send-order-confirmation-to-custom-email-field#308431 "We need to send the emails at the end of an order to the email account specified in one of the extra fields of the billing address that I created.  It's possible? Thanks")* was created by *[aulavirtualmusica](/forum/user/58425-aulavirtualmusica "View aulavirtualmusica's Profile")*

We need to send the emails at the end of an order to the email account specified in one of the extra fields of the billing address that I created.

It's possible? Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzgyOS1zZW5kLW9yZGVyLWNvbmZpcm1hdGlvbi10by1jdXN0b20tZW1haWwtZmllbGQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

7 years 4 months ago [\#308439](#308439) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send order confirmation to custom email field](/forum/27-checkout/897829-send-order-confirmation-to-custom-email-field#308439 "We need to send the emails at the end of an order to the email account specified in one of the extra fields of the billing address that I created.  It's possible? Thanks")*

Hi,

With the Business edition, you can edit the emails via the menu System&gt;Emails.
There, in the "preload" of the email, you can add a bit of PHP to do that.
Now, I'm not sure what you mean exactly ? Do you want to send a copy of the copy to that email address ? Or you actually don't want to send the email to the normal user, only to the email address in the custom address field ?
Supposing it's the later, you can add such code at the end of the preload and it should do the trick: Code:

$data-&gt;customer-&gt;user_email = $data-&gt;cart-&gt;billing_address-&gt;XXX;

where XXX is the column name of your custom address field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzgyOS1zZW5kLW9yZGVyLWNvbmZpcm1hdGlvbi10by1jdXN0b20tZW1haWwtZmllbGQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[aulavirtualmusica](/forum/user/58425-aulavirtualmusica "View aulavirtualmusica's Profile")**
- [![aulavirtualmusica's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58425-aulavirtualmusica "View aulavirtualmusica's Profile") Topic Author
- [ Offline](/forum/user/58425-aulavirtualmusica)

Less More

- Posts: 10
- Thank you received: 0
-
-

7 years 4 months ago [\#308462](#308462) by [aulavirtualmusica](/forum/user/58425-aulavirtualmusica "View aulavirtualmusica's Profile")  Replied by *[aulavirtualmusica](/forum/user/58425-aulavirtualmusica "View aulavirtualmusica's Profile")* on topic *[Send order confirmation to custom email field](/forum/27-checkout/897829-send-order-confirmation-to-custom-email-field#308462 "We need to send the emails at the end of an order to the email account specified in one of the extra fields of the billing address that I created.  It's possible? Thanks")*

Hello, thanks for the answer. What I need is to send the confirmation mail of the order to the address that the users put in the shipping form(that is a extrafield in display tab), not the email address of the joomla user.

Where do I have to put that code to prove it?

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzgyOS1zZW5kLW9yZGVyLWNvbmZpcm1hdGlvbi10by1jdXN0b20tZW1haWwtZmllbGQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

7 years 4 months ago [\#308463](#308463) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Send order confirmation to custom email field](/forum/27-checkout/897829-send-order-confirmation-to-custom-email-field#308463 "We need to send the emails at the end of an order to the email account specified in one of the extra fields of the billing address that I created.  It's possible? Thanks")*

Hi,

As I said, you need to add that code at the end of the preload section of the email when you're editing it via the menu System&gt;Emails of HikaShop.
Please note that email edition is only available with HikaShop Business.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NzgyOS1zZW5kLW9yZGVyLWNvbmZpcm1hdGlvbi10by1jdXN0b20tZW1haWwtZmllbGQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.063 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
