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

#   How to send a copy of an order to a mail address chosen by the customer?

##

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

Less More

- Posts: 13
- Thank you received: 1
-
-

9 years 7 months ago [\#265411](#265411) by [cpix](/forum/user/47338-cpix "View cpix's Profile")  *[How to send a copy of an order to a mail address chosen by the customer?](/forum/35-orders-management/889436-how-to-send-a-copy-of-an-order-to-a-mail-address-chosen-by-the-customer#265411 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.4.45  Hi,  I need to implement a way to have a copy of an order be sent to a specific address the customer chooses from a list during check-out. Any suggestion is welcome!  Regards, cpix")* was created by *[cpix](/forum/user/47338-cpix "View cpix's Profile")*

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.4.45

Hi,

I need to implement a way to have a copy of an order be sent to a specific address the customer chooses from a list during check-out.
Any suggestion is welcome!

Regards,
cpix

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4OTQzNi1ob3ctdG8tc2VuZC1hLWNvcHktb2YtYW4tb3JkZXItdG8tYS1tYWlsLWFkZHJlc3MtY2hvc2VuLWJ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

9 years 7 months ago [\#265413](#265413) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to send a copy of an order to a mail address chosen by the customer?](/forum/35-orders-management/889436-how-to-send-a-copy-of-an-order-to-a-mail-address-chosen-by-the-customer#265413 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.4.45  Hi,  I need to implement a way to have a copy of an order be sent to a specific address the customer chooses from a list during check-out. Any suggestion is welcome!  Regards, cpix")*

Hi,

You can create a custom field of the table "order" via the menu Display&gt;Custom fields to have such list in the HikaShop checkout.
That information will be stored with the order and you can then customize the code of the emails via the menu Display&gt;Emails to add the value of that field, stored in $data-&gt;XXX where XXX is the custom field column name, as BCC of the email.
[ www.hikashop.com/forum/orders-management...ustomers.html#188279](https://www.hikashop.com/forum/orders-management/874525-how-to-cc-or-bcc-hikashop-emails-to-customers.html#188279)
[ www.hikashop.com/support/forum/4-how-to/...firmation-email.html](https://www.hikashop.com/support/forum/4-how-to/872622-add-custom-bcc-on-admin-confirmation-email.html)

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

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

Less More

- Posts: 13
- Thank you received: 1
-
-

9 years 7 months ago [\#265489](#265489) by [cpix](/forum/user/47338-cpix "View cpix's Profile")  Replied by *[cpix](/forum/user/47338-cpix "View cpix's Profile")* on topic *[How to send a copy of an order to a mail address chosen by the customer?](/forum/35-orders-management/889436-how-to-send-a-copy-of-an-order-to-a-mail-address-chosen-by-the-customer#265489 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.4.45  Hi,  I need to implement a way to have a copy of an order be sent to a specific address the customer chooses from a list during check-out. Any suggestion is welcome!  Regards, cpix")*

Hi Nicolas,

Thanks a lot for your rapid answer!

> nicolas wrote: You can create a custom field of the table "order" via the menu Display&gt;Custom fields to have such list in the HikaShop checkout.

Ok, in the meantime I've created that field and I wrote a PHP script to populate the custom field with all possible e-mail addresses from an external database. Is there a way to import those values from a CSV file?

> nicolas wrote: That information will be stored with the order and you can then customize the code of the emails via the menu Display&gt;Emails to add the value of that field, stored in $data-&gt;XXX where XXX is the custom field column name, as BCC of the email.
> [ www.hikashop.com/forum/orders-management...ustomers.html#188279](https://www.hikashop.com/forum/orders-management/874525-how-to-cc-or-bcc-hikashop-emails-to-customers.html#188279)
> [ www.hikashop.com/support/forum/4-how-to/...firmation-email.html](https://www.hikashop.com/support/forum/4-how-to/872622-add-custom-bcc-on-admin-confirmation-email.html)

Ok, thanks for these precious tipps!

cpix

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

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

Less More

- Posts: 13
- Thank you received: 1
-
-

9 years 7 months ago [\#265533](#265533) by [cpix](/forum/user/47338-cpix "View cpix's Profile")  Replied by *[cpix](/forum/user/47338-cpix "View cpix's Profile")* on topic *[How to send a copy of an order to a mail address chosen by the customer?](/forum/35-orders-management/889436-how-to-send-a-copy-of-an-order-to-a-mail-address-chosen-by-the-customer#265533 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.4.45  Hi,  I need to implement a way to have a copy of an order be sent to a specific address the customer chooses from a list during check-out. Any suggestion is welcome!  Regards, cpix")*

Hi Nicolas,

I have the next question, which is related to this problem. The custom field used for the mail address is shown as a simple dropdown menu. I have to ensure that the customer really chooses an address, so I've put a dummy entry at the first list position. How can I check that this entry is **not** chosen?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4OTQzNi1ob3ctdG8tc2VuZC1hLWNvcHktb2YtYW4tb3JkZXItdG8tYS1tYWlsLWFkZHJlc3MtY2hvc2VuLWJ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86286
- Thank you received: 14263
-
-

9 years 7 months ago -  9 years 7 months ago [\#265503](#265503) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to send a copy of an order to a mail address chosen by the customer?](/forum/35-orders-management/889436-how-to-send-a-copy-of-an-order-to-a-mail-address-chosen-by-the-customer#265503 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.4.45  Hi,  I need to implement a way to have a copy of an order be sent to a specific address the customer chooses from a list during check-out. Any suggestion is welcome!  Regards, cpix")*

Hi,

There is no import system in HikaShop for custom field values.
You could potentially export/import the data from the hikashop_field table via your PHPMyAdmin.

If the default option of the select has a value with an empty string (the text of the option can be whatever you want), and if you turn on the "required" setting of the custom field, the system won't validate the form where the custom field is unless the customer selects another option in the select.

Last edit: 9 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 13
- Thank you received: 1
-
-

9 years 7 months ago [\#265548](#265548) by [cpix](/forum/user/47338-cpix "View cpix's Profile")  Replied by *[cpix](/forum/user/47338-cpix "View cpix's Profile")* on topic *[How to send a copy of an order to a mail address chosen by the customer?](/forum/35-orders-management/889436-how-to-send-a-copy-of-an-order-to-a-mail-address-chosen-by-the-customer#265548 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.4.45  Hi,  I need to implement a way to have a copy of an order be sent to a specific address the customer chooses from a list during check-out. Any suggestion is welcome!  Regards, cpix")*

Hi Nicolas,

> nicolas wrote: There is no import system in HikaShop for custom field values.
> You could potentially export/import the data from the hikashop\_field table via your PHPMyAdmin.

Ok, good point. In this case I solved the problem by directly updating the hikashop_field table.

> If the default option of the select has a value with an empty string (the text of the option can be whatever you want), and if you turn on the "required" setting of the custom field, the system won't validate the form where the custom field is unless the customer selects another option in the select.

That solved my problem! Thank you very much!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4OTQzNi1ob3ctdG8tc2VuZC1hLWNvcHktb2YtYW4tb3JkZXItdG8tYS1tYWlsLWFkZHJlc3MtY2hvc2VuLWJ5LXRoZS1jdXN0b21lcj90bXBsPW1hcmtkb3du) 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.221 seconds

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

[](#top)
