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

#   Order confirmation emails billing / shipping addr

##

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 4 months ago [\#243605](#243605) by [edizioniromena](/forum/user/35067-edizioniromena "View edizioniromena's Profile")  *[Order confirmation emails billing / shipping addr](/forum/35-orders-management/885187-order-confirmation-emails-billing-shipping-addr#243605 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  I wanted to know how to display correctly the shipping address in my order confirmation emails. I attach to this message two screenshots to explain what's happening in my admin: when a customer has specified a shipping address different than the billing address, in the order confirmation emails the shipping address is not displayed. Instead of that is displayed the billing address.  Please refer to the screenshots for a better understanding.  Thank you")* was created by *[edizioniromena](/forum/user/35067-edizioniromena "View edizioniromena's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1

Hi,

I wanted to know how to display correctly the shipping address in my order confirmation emails.
I attach to this message two screenshots to explain what's happening in my admin: when a customer has specified a shipping address different than the billing address, in the order confirmation emails the shipping address is not displayed. Instead of that is displayed the billing address.

Please refer to the screenshots for a better understanding.

Thank you

- [ ![Order&#95;detail.jpg](/forum/attachment/32220) ](/forum/attachment/32220 "Order&#95;detail.jpg") [ ](/forum/attachment/32220?download=1 "Order&#95;detail.jpg")
- [ ![Order&#95;confirmation&#95;email.jpg](/forum/attachment/32221) ](/forum/attachment/32221 "...tion&#95;email.jpg") [ ](/forum/attachment/32221?download=1 "...tion&#95;email.jpg")

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

10 years 4 months ago -  10 years 4 months ago [\#243611](#243611) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Order confirmation emails billing / shipping addr](/forum/35-orders-management/885187-order-confirmation-emails-billing-shipping-addr#243611 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  I wanted to know how to display correctly the shipping address in my order confirmation emails. I attach to this message two screenshots to explain what's happening in my admin: when a customer has specified a shipping address different than the billing address, in the order confirmation emails the shipping address is not displayed. Instead of that is displayed the billing address.  Please refer to the screenshots for a better understanding.  Thank you")*

Hello,

Do you have some **custom** on your email because **by default email adrress** shouldn't work like this.
Have a look there, in **Components** =&gt; **HikaShop** =&gt; **Configuration**, in **System** dropdown select **Emails**.
If you see a little **trash icon** that means that there is some **custom** on your emails **AND maybe** the root issue is there.

Awaiting news from you.

Regards.

Last edit: 10 years 4 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 4 months ago [\#243707](#243707) by [edizioniromena](/forum/user/35067-edizioniromena "View edizioniromena's Profile")  Replied by *[edizioniromena](/forum/user/35067-edizioniromena "View edizioniromena's Profile")* on topic *[Order confirmation emails billing / shipping addr](/forum/35-orders-management/885187-order-confirmation-emails-billing-shipping-addr#243707 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  I wanted to know how to display correctly the shipping address in my order confirmation emails. I attach to this message two screenshots to explain what's happening in my admin: when a customer has specified a shipping address different than the billing address, in the order confirmation emails the shipping address is not displayed. Instead of that is displayed the billing address.  Please refer to the screenshots for a better understanding.  Thank you")*

Thank you for your answer.

I think i've located the part of the code that displays shipping addresses and billing addresses, could you please tell if it's correct?

This is part of the template "ORDER_NOTIFICATION_SUBJECT". I've checked also the "ORDER_CREATION_NOTIFICATION_SUBJECT" and the "ORDER_STATUS_NOTIFICATION_SUBJECT", and the code is pretty much the same: Code:

&lt;table class="w550" border="0" cellspacing="0" cellpadding="0" width="550" style="margin-top:10px;font-family: Arial, Helvetica, sans-serif;font-size:12px;line-height:18px;"&gt; &lt;tr&gt; &lt;!--{IF:BILLING_ADDRESS}--&gt;&lt;td style="color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:BILLING_ADDRESS}&lt;/td&gt;&lt;!--{ENDIF:BILLING_ADDRESS}--&gt; &lt;!--{IF:SHIPPING}--&gt;&lt;!--{IF:SHIPPING_ADDRESS}--&gt;&lt;td style="color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:SHIPPING_ADDRESS}&lt;/td&gt;&lt;!--{ENDIF:SHIPPING_ADDRESS}--&gt;&lt;!--{ENDIF:SHIPPING}--&gt; &lt;/tr&gt; &lt;tr&gt; &lt;!--{IF:BILLING_ADDRESS}--&gt;&lt;td&gt;{VAR:BILLING_ADDRESS}&lt;/td&gt;&lt;!--{ENDIF:BILLING_ADDRESS}--&gt; &lt;!--{IF:SHIPPING}--&gt;&lt;!--{IF:SHIPPING_ADDRESS}--&gt;&lt;td&gt;{VAR:SHIPPING_ADDRESS}&lt;/td&gt;&lt;!--{ENDIF:SHIPPING_ADDRESS}--&gt;&lt;!--{ENDIF:SHIPPING}--&gt; &lt;/tr&gt; &lt;/table&gt;

The specific template has been changed, but i don't think we touched that part. We changed only some texts and little parts of the layout.

If you aren't sure if something important has been changed, can you please send me a correct, unchanged email template?

Thank you again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NTE4Ny1vcmRlci1jb25maXJtYXRpb24tZW1haWxzLWJpbGxpbmctc2hpcHBpbmctYWRkcj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago -  10 years 4 months ago [\#243741](#243741) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order confirmation emails billing / shipping addr](/forum/35-orders-management/885187-order-confirmation-emails-billing-shipping-addr#243741 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  I wanted to know how to display correctly the shipping address in my order confirmation emails. I attach to this message two screenshots to explain what's happening in my admin: when a customer has specified a shipping address different than the billing address, in the order confirmation emails the shipping address is not displayed. Instead of that is displayed the billing address.  Please refer to the screenshots for a better understanding.  Thank you")*

Hi,

This part is not the problem. The problem must come from the "preload version" part, not the HTML version.
If you didn't do any change in the preload version of the email, click on the delete icon for the preload version and that should fix your problem.

And if you want the unchanged email template, preload, or a view file, copy/paste your modified version in a notepad on your computer, click on the delete button to remove the customization and when you open it, you'll get the latest unchanged version. You can then compare it with the modified version in your notepad and reapply your changes to the new version.

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

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 4 months ago [\#243844](#243844) by [edizioniromena](/forum/user/35067-edizioniromena "View edizioniromena's Profile")  Replied by *[edizioniromena](/forum/user/35067-edizioniromena "View edizioniromena's Profile")* on topic *[Order confirmation emails billing / shipping addr](/forum/35-orders-management/885187-order-confirmation-emails-billing-shipping-addr#243844 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  I wanted to know how to display correctly the shipping address in my order confirmation emails. I attach to this message two screenshots to explain what's happening in my admin: when a customer has specified a shipping address different than the billing address, in the order confirmation emails the shipping address is not displayed. Instead of that is displayed the billing address.  Please refer to the screenshots for a better understanding.  Thank you")*

Hi,

I need to ask you three questions:

1. Could you please tell me which email template is used when i click on the "Email" icon, inside the order detail page?
The ORDER_STATUS_NOTIFICATION_SUBJECT, or the ORDER_NOTIFICATION_SUBJECT?
This is the button i'm referring to:

[ ![Schermata&#95;2016-06-23&#95;alle&#95;15&#95;38&#95;03.png](/forum/attachment/32260) ](/forum/attachment/32260 "...e&#95;15&#95;38&#95;03.png")

And this is the output when i click it:

[ ![Schermata&#95;2016-06-23&#95;alle&#95;15&#95;37&#95;05.png](/forum/attachment/32261) ](/forum/attachment/32261 "...e&#95;15&#95;37&#95;05.png")

This is because i've found out that the ORDER_CREATION_NOTIFICATION_SUBJECT (which i think is the email template used when the customer finalize the order) displays correctly the "shipping address" and the "billing address", as in the picture below (i've tested with my admin user):

[ ![Schermata&#95;2016-06-23&#95;alle&#95;15&#95;31&#95;03.png](/forum/attachment/32262) ](/forum/attachment/32262 "...e&#95;15&#95;31&#95;03.png")

2. The other question is: which part of the code (in the preload version) displays the shipping and the billing address as in the picture above?

Thank you

- [ ![Schermata&#95;2016-06-23&#95;alle&#95;15&#95;38&#95;03.png](/forum/attachment/32260) ](/forum/attachment/32260 "...e&#95;15&#95;38&#95;03.png") [ ](/forum/attachment/32260?download=1 "...e&#95;15&#95;38&#95;03.png")
- [ ![Schermata&#95;2016-06-23&#95;alle&#95;15&#95;37&#95;05.png](/forum/attachment/32261) ](/forum/attachment/32261 "...e&#95;15&#95;37&#95;05.png") [ ](/forum/attachment/32261?download=1 "...e&#95;15&#95;37&#95;05.png")
- [ ![Schermata&#95;2016-06-23&#95;alle&#95;15&#95;31&#95;03.png](/forum/attachment/32262) ](/forum/attachment/32262 "...e&#95;15&#95;31&#95;03.png") [ ](/forum/attachment/32262?download=1 "...e&#95;15&#95;31&#95;03.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NTE4Ny1vcmRlci1jb25maXJtYXRpb24tZW1haWxzLWJpbGxpbmctc2hpcHBpbmctYWRkcj90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 4 months ago [\#243845](#243845) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order confirmation emails billing / shipping addr](/forum/35-orders-management/885187-order-confirmation-emails-billing-shipping-addr#243845 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  I wanted to know how to display correctly the shipping address in my order confirmation emails. I attach to this message two screenshots to explain what's happening in my admin: when a customer has specified a shipping address different than the billing address, in the order confirmation emails the shipping address is not displayed. Instead of that is displayed the billing address.  Please refer to the screenshots for a better understanding.  Thank you")*

Hi,

1. It's the "order notification" email which is used there.

2. It's this code at the end: Code:

$vars['BILLING_ADDRESS'] = ''; $vars['SHIPPING_ADDRESS'] = ''; $addressClass = hikashop_get('class.address'); if(!empty($data-&gt;cart-&gt;billing_address) &amp;&amp; !empty($data-&gt;cart-&gt;fields)){ $vars['BILLING_ADDRESS'] = $addressClass-&gt;displayAddress($data-&gt;cart-&gt;fields,$data-&gt;cart-&gt;billing_address,$view); } if(!empty($data-&gt;cart-&gt;override_shipping_address)) { $vars['SHIPPING_ADDRESS'] = $data-&gt;cart-&gt;override_shipping_address; } elseif(!empty($data-&gt;cart-&gt;order_shipping_id) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address) &amp;&amp; !empty($data-&gt;cart-&gt;fields)) { $vars['SHIPPING_ADDRESS'] = $addressClass-&gt;displayAddress($data-&gt;cart-&gt;fields,$data-&gt;cart-&gt;shipping_address,$view); } else { $vars['SHIPPING_ADDRESS'] = $vars['BILLING_ADDRESS']; }

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

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

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

Less More

- Posts: 26
- Thank you received: 0
-
-

10 years 4 months ago [\#243882](#243882) by [edizioniromena](/forum/user/35067-edizioniromena "View edizioniromena's Profile")  Replied by *[edizioniromena](/forum/user/35067-edizioniromena "View edizioniromena's Profile")* on topic *[Order confirmation emails billing / shipping addr](/forum/35-orders-management/885187-order-confirmation-emails-billing-shipping-addr#243882 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1  Hi,  I wanted to know how to display correctly the shipping address in my order confirmation emails. I attach to this message two screenshots to explain what's happening in my admin: when a customer has specified a shipping address different than the billing address, in the order confirmation emails the shipping address is not displayed. Instead of that is displayed the billing address.  Please refer to the screenshots for a better understanding.  Thank you")*

Hi,

Thank you, this solved our issue.
One more question: since we are quite sure we didn't change anything on the "Preload version" (we changed surely something on the HTML version, though) why that part is changed?
I know it's a very difficult question (if not impossible), and i accept an "i don't know" answer ![:)](/media/kunena/emoticons/8.png ":)") but i'm just wondering.
Is it possible - i'm speculating - that if i change something on the HTML version, the email template is blocked from future updates, in its entirety (HTML version, Text version and Preload version)?

Thank you again

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

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

[](#top)
