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

#   Add custom fields to shopping cart and notification emails

##

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 9 months ago [\#358706](#358706) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358706 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")* was created by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")*

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 3.10.12
-- PHP version -- : 7.4

Hi,

I have three questions.

1. I created a custom field; how do I show it in the cart drop-down?
2. The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails
3. How can I add the customer address information to the email subject line?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 9 months ago [\#358708](#358708) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358708 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

1. Please provide a screenshot of the settings of the custom field.
I checked your website, but I couldn't find products, nor a cart drop down. Could you please provide more context on this ?

2. The customer billing and shipping address will be automatically included on the order admin notification email and the payment notification email which are sent once the customer finishes the checkout and the order is created. So I'm not sure what you mean. Could you please provide more context on this too ?

3. There is no easy way to do that. You'll have to edit the email via the menu System&gt;Emails. There, in the HTML area, you can change the email subject with code like this: Code:

&lt;php $mail-&gt;subject = 'My custom email subject with a custom address field: ' . $data-&gt;cart-&gt;biilling_address-&gt;address_firstname; ?&gt;

So it requires a bit of PHP coding.

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 9 months ago [\#358711](#358711) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358711 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

This is the custom field screenshot:  [ ![OmnitronSystems-Administration-Field&#95;productid.jpg](/forum/attachment/58732) ](/forum/attachment/58732 "...&#95;productid.jpg")

I will email you the admin credentials to check it.

Thanks.

- [ ![OmnitronSystems-Administration-Field&#95;productid.jpg](/forum/attachment/58732) ](/forum/attachment/58732 "...&#95;productid.jpg") [ ](/forum/attachment/58732?download=1 "...&#95;productid.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 9 months ago [\#358712](#358712) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358712 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

Ok, so I understand you want to display a custom field of the table "product" in the HikaShop cart module you have displayed at the top of your pages. Is that correct ?
There is no option to display it there. Since there is not much space there, we decided not to provide that possibility.
So, if you want to do that, you'll have to edit the view file product / cart via the menu Display&gt;Views and add custom PHP code to display the custom field there manually.
For example, after the code: Code:

echo $product-&gt;product_name;

which displays the product name, you could add : Code:

echo $product-&gt;productid;

in order to display the value in the custom field of your screenshot.

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 9 months ago [\#358729](#358729) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358729 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

That code solved the problem.
Is there any quick way to change the shopping cart dropdown width?

Also, we used the shopping cart for quoting and removed all the prices.
In checkout, the user only fills out the address fields for registration, and we don't ask for billing or shipping addresses. How can I add the user address information in the admin emails?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 9 months ago [\#358737](#358737) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358737 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

1. You can add such CSS code to your website: Code:

div.hikashop_cart_dropdown_content { width: 500px; }

2. If the user filled the address fields of HikaShop during the registration, then the checkout should automatically use the address entered during the registration as the billing and the shipping address of the order. So normally, there should be nothing to do for that. So I'm surprised you're asking about this.
How does the admin emails look at the moment on your website ? Did you customize it ?
Also, I checked your settings with the access you provided earlier, and I can see you've turned off the "Ask address on registration" setting of the HikaShop configuration. In that case, HikaShop won't ask his address to the customer during the registration, contrary to what you said. So I'm a bit lost in trying to understand the current situation you're in to be able to say what you need to do.

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 9 months ago [\#358785](#358785) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358785 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

On the front end, the user needs to fill out the address form before checkout  [ ![Checkout1.jpg](/forum/attachment/58743) ](/forum/attachment/58743 "Checkout1.jpg")

Also, on the backend, the "Ask address on the registration" field is enabled:  [ ![OmnitronSystems-Administration-Configuration.jpg](/forum/attachment/58744) ](/forum/attachment/58744 "...figuration.jpg")

I only removed the price from the admin notification email template, which doesn't show the address in the email preview or notification email. You can change the admin email in the backend and test it if you want.

Thanks.

- [ ![Checkout1.jpg](/forum/attachment/58743) ](/forum/attachment/58743 "Checkout1.jpg") [ ](/forum/attachment/58743?download=1 "Checkout1.jpg")
- [ ![OmnitronSystems-Administration-Configuration.jpg](/forum/attachment/58744) ](/forum/attachment/58744 "...figuration.jpg") [ ](/forum/attachment/58744?download=1 "...figuration.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 9 months ago [\#358787](#358787) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358787 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

You say " which doesn't show the address in the email preview or notification email.", but you don't have any order with an address in it so you can't test the address display in the emails with them.
Look at the details of the two orders you have configured via the Orders menu. They don't have any address set. And if there are no addresses set in the order, the email notification won't be able to display one.
I suppose that you simply created these orders when you had the address form deactivated from your checkout.
So either add an address to an existing order, or create a new order from the frontend (which will have an address), and you'll see the address in the preview for that ordar.

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 9 months ago [\#358819](#358819) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358819 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

What about registered users? They can log in and checkout without filling out the address fields.
How can I add the registered user address data to the admin notification emails?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 9 months ago [\#358838](#358838) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358838 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

That's because you removed the "address" view from your "checkout workflow".
Please add it back between the "login" and the "cart" view and it won't happen.

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 9 months ago -  2 years 9 months ago [\#358862](#358862) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358862 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

I added the address field between the "login" and the "cart" view; why email doesn't show custom address fields? like as a Company  [ ![OmnitronSystems-Administration-Field&#95;company.jpg](/forum/attachment/58758) ](/forum/attachment/58758 "...ld&#95;company.jpg")

?

Also, how can I modify the alignment of this code {TXT:CUSTOMFIELD_NAME}  [ ![OmnitronSystems-Administration-Emails1.jpg](/forum/attachment/58760) ](/forum/attachment/58760 "...on-Emails1.jpg")

in the emails?

- [ ![OmnitronSystems-Administration-Field&#95;company.jpg](/forum/attachment/58758) ](/forum/attachment/58758 "...ld&#95;company.jpg") [ ](/forum/attachment/58758?download=1 "...ld&#95;company.jpg")
- [ ![OmnitronSystems-Administration-Emails1.jpg](/forum/attachment/58760) ](/forum/attachment/58760 "...on-Emails1.jpg") [ ](/forum/attachment/58760?download=1 "...on-Emails1.jpg")

Last edit: 2 years 9 months ago by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 9 months ago [\#358868](#358868) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358868 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

I do see the address now in the email.
The address display in the emails and the invoice uses the "address format" you have in the HikaShop configuration, under the Checkout tab. So if you add extra address fields, you need to add them in that "address format" setting too if you want them to appear in the emails.
For the alignment of custom product fields in the products listing of the emails, you want to look in the "preload" of the email via the menu System&gt;Emails. There, search for "text-align:right".

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 9 months ago [\#358933](#358933) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358933 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

I added it to the Address box in the backend
[ ![Administration-Configuration1.jpg](/forum/attachment/58774) ](/forum/attachment/58774 "...iguration1.jpg")

,
but it still doesn't show in the emails.
[ ![email.jpg](/forum/attachment/58775) ](/forum/attachment/58775 "email.jpg")

- [ ![Checkout2.jpg](/forum/attachment/58773) ](/forum/attachment/58773 "Checkout2.jpg") [ ](/forum/attachment/58773?download=1 "Checkout2.jpg")
- [ ![Administration-Configuration1.jpg](/forum/attachment/58774) ](/forum/attachment/58774 "...iguration1.jpg") [ ](/forum/attachment/58774?download=1 "...iguration1.jpg")
- [ ![email.jpg](/forum/attachment/58775) ](/forum/attachment/58775 "email.jpg") [ ](/forum/attachment/58775?download=1 "email.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 9 months ago [\#358938](#358938) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#358938 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

With the backend access you had created before, I checked your custom fields, but you don't have any "address_industry" custom field and the "address_company" field is not published on your website. Instead, you've created two fields "industry" and "company". so you need to change your tags in the address format so that they correspond to the column name of your custom fields.

The following user(s) said Thank You: [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 9 months ago [\#359021](#359021) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#359021 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi

I added the provided code to the HTML section, and it worked.
"&lt;php $mail-&gt;subject = 'My custom email subject with a custom address field: ' . $data-&gt;cart-&gt;billing_address-&gt;address_firstname; ?&gt;"
Can I add more fields, such as State and County, to the subject?

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 9 months ago [\#359025](#359025) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#359025 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

Sure. The code should be similar: Code:

&lt;?php $mail-&gt;subject = 'My custom email subject with a custom address field: ' . $data-&gt;cart-&gt;billing_address-&gt;xxx; ?&gt;

where xxx can be replaced by the column name of any address field you want to use.
Now, what exact code you want to use depends on what exact subject you want your emails to have...

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 8 months ago [\#359231](#359231) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#359231 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

Can I add two or more address fields to the subject line?
For example, "My custom email subject with a custom address field: xxx1 , xxx2" ?
&lt;?php $mail-&gt;subject = 'My custom email subject with a custom address field: ' . $data-&gt;cart-&gt;billing_address-&gt;xxx; ',' . $data-&gt;cart-&gt;billing_address-&gt;xxx1; ?&gt;

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 8 months ago -  2 years 8 months ago [\#359239](#359239) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#359239 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

You sure can, if you write valid PHP code.
It should be like this in your example in order to be valid PHP code : Code:

&lt;?php $mail-&gt;subject = 'My custom email subject with a custom address field: ' . $data-&gt;cart-&gt;billing_address-&gt;xxx1 . ' ' . $data-&gt;cart-&gt;billing_address-&gt;xxx2; ?&gt;

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

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

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

Less More

- Posts: 27
- Thank you received: 2
-
-

2 years 8 months ago [\#359287](#359287) by [omnitron](/forum/user/63409-omnitron "View omnitron's Profile")  Replied by *[omnitron](/forum/user/63409-omnitron "View omnitron's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#359287 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

This code worked for me.
&lt;?php $mail-&gt;subject = 'My custom email subject with a custom address field: ' . $data-&gt;cart-&gt;billing_address-&gt;address_company . $data-&gt;cart-&gt;billing_address-&gt;address_state . $data-&gt;cart-&gt;billing_address-&gt;address_country; ?&gt;

How can I add space between the address fields?
Right now, the result is: My custom email subject with a custom address field: CompanyStateCountry

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzY4MS1hZGQtY3VzdG9tLWZpZWxkcy10by1zaG9wcGluZy1jYXJ0LWFuZC1ub3RpZmljYXRpb24tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

2 years 8 months ago [\#359290](#359290) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom fields to shopping cart and notification emails](/forum/27-checkout/907681-add-custom-fields-to-shopping-cart-and-notification-emails#359290 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4  Hi,  I have three questions.  &#42; I created a custom field; how do I show it in the cart drop-down?  &#42; The user should log in or register as a Guest before checkout. How can I add the customer address information on the registration page to the admin emails  &#42; How can I add the customer address information to the email subject line?  Thanks.")*

Hi,

You can use the code I wrote in my previous message, it includes a space, which you've removed in your code.
I had: Code:

$data-&gt;cart-&gt;billing_address-&gt;xxx1 . ' ' . $data-&gt;cart-&gt;billing_address-&gt;xxx2

and you wrote: Code:

$data-&gt;cart-&gt;billing_address-&gt;xxx1 . $data-&gt;cart-&gt;billing_address-&gt;xxx2

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

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