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

#   \[SOLVED\] Wrong shipping address on vendor notifications

##

- **[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")**
- [![trevsmiff's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9214.jpg)](/forum/user/9214-trevsmiff "View trevsmiff's Profile") Topic Author
- [ Offline](/forum/user/9214-trevsmiff)

Less More

- Posts: 306
- Thank you received: 42
-
-

9 years 10 months ago -  9 years 10 months ago [\#257868](#257868) by [trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")  *[\[SOLVED\] Wrong shipping address on vendor notifications](/forum/22-market-bug-report/887972-solved-wrong-shipping-address-on-vendor-notifications#257868 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.0  If a customer selects a different shipping address to the billing address then when the order status emails are sent to the vendor the shipping address is the same as the billing address. The email that is sent to the customer is correct.  Here is the result of a test purchase. 'Correct addresses' indicates that the different billing and shipping addresses were shown but the 'Wrong addresses had the shipping address the same as the billing address.  Status  Customer email  Vendor emal  Created  - Correct addresses  - Correct addresses  Confirmed  - Correct addresses  - Wrong addresses  Shipped  - Correct addresses  - Wrong addresses  Cancelled  - Correct addresses  - Wrong addresses  At the cancelled stage an additional email was sent to the main vendor which also had the wrong addresses.  I have no email overrides set.  Any ideas?  regards Trevor")* was created by *[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")*

-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.0

If a customer selects a different shipping address to the billing address then when the order status emails are sent to the vendor the shipping address is the same as the billing address. The email that is sent to the customer is correct.

Here is the result of a test purchase. 'Correct addresses' indicates that the different billing and shipping addresses were shown but the 'Wrong addresses had the shipping address the same as the billing address.

| Status | Customer email | Vendor emal |
|---|---|---|
| Created | - Correct addresses | - Correct addresses |
| Confirmed | - Correct addresses | - Wrong addresses |
| Shipped | - Correct addresses | - Wrong addresses |
| Cancelled | - Correct addresses | - Wrong addresses |

At the cancelled stage an additional email was sent to the main vendor which also had the wrong addresses.

I have no email overrides set.

Any ideas?

regards
Trevor

Last edit: 9 years 10 months ago by [trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 10 months ago [\#257872](#257872) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Wrong shipping address on vendor notifications](/forum/22-market-bug-report/887972-solved-wrong-shipping-address-on-vendor-notifications#257872 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.0  If a customer selects a different shipping address to the billing address then when the order status emails are sent to the vendor the shipping address is the same as the billing address. The email that is sent to the customer is correct.  Here is the result of a test purchase. 'Correct addresses' indicates that the different billing and shipping addresses were shown but the 'Wrong addresses had the shipping address the same as the billing address.  Status  Customer email  Vendor emal  Created  - Correct addresses  - Correct addresses  Confirmed  - Correct addresses  - Wrong addresses  Shipped  - Correct addresses  - Wrong addresses  Cancelled  - Correct addresses  - Wrong addresses  At the cancelled stage an additional email was sent to the main vendor which also had the wrong addresses.  I have no email overrides set.  Any ideas?  regards Trevor")*

Hi,

Can you please verify that you do not have any email override for the HikaMarket "order status notification" email ?

About the order number, do you have the setting "Use same order number for sub-orders" enable ?
[ www.hikashop.com/support/documentation/1...onfig\_market\_general](https://www.hikashop.com/support/documentation/143-hikamarket-configuration.html#config_market_general)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")**
- [![trevsmiff's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9214.jpg)](/forum/user/9214-trevsmiff "View trevsmiff's Profile") Topic Author
- [ Offline](/forum/user/9214-trevsmiff)

Less More

- Posts: 306
- Thank you received: 42
-
-

9 years 10 months ago [\#257883](#257883) by [trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")  Replied by *[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")* on topic *[Wrong shipping address on vendor notifications](/forum/22-market-bug-report/887972-solved-wrong-shipping-address-on-vendor-notifications#257883 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.0  If a customer selects a different shipping address to the billing address then when the order status emails are sent to the vendor the shipping address is the same as the billing address. The email that is sent to the customer is correct.  Here is the result of a test purchase. 'Correct addresses' indicates that the different billing and shipping addresses were shown but the 'Wrong addresses had the shipping address the same as the billing address.  Status  Customer email  Vendor emal  Created  - Correct addresses  - Correct addresses  Confirmed  - Correct addresses  - Wrong addresses  Shipped  - Correct addresses  - Wrong addresses  Cancelled  - Correct addresses  - Wrong addresses  At the cancelled stage an additional email was sent to the main vendor which also had the wrong addresses.  I have no email overrides set.  Any ideas?  regards Trevor")*

Hi Jerome

> Can you please verify that you do not have any email override for the HikaMarket "order status notification" email ?

I verify that there are no email overrides (Hikamarket and Hikashop)

> About the order number, do you have the setting "Use same order number for sub-orders" enable ?

I realised that this was the cause of the different order numbers after posting the topic :oops:

regards
Trevor

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 10 months ago [\#257900](#257900) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Wrong shipping address on vendor notifications](/forum/22-market-bug-report/887972-solved-wrong-shipping-address-on-vendor-notifications#257900 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.0  If a customer selects a different shipping address to the billing address then when the order status emails are sent to the vendor the shipping address is the same as the billing address. The email that is sent to the customer is correct.  Here is the result of a test purchase. 'Correct addresses' indicates that the different billing and shipping addresses were shown but the 'Wrong addresses had the shipping address the same as the billing address.  Status  Customer email  Vendor emal  Created  - Correct addresses  - Correct addresses  Confirmed  - Correct addresses  - Wrong addresses  Shipped  - Correct addresses  - Wrong addresses  Cancelled  - Correct addresses  - Wrong addresses  At the cancelled stage an additional email was sent to the main vendor which also had the wrong addresses.  I have no email overrides set.  Any ideas?  regards Trevor")*

Hi,

Please edit the HikaMarket "order_status_notification" preload and change the line (near the end of the file) Code:

} elseif(!empty($data-&gt;order_shipping_id) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address)) {

By Code:

} elseif(!empty($data-&gt;cart-&gt;order_shipping_id) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address)) {

I think that when the email is send, the HikaMarket sub-sale is not load/modify entirely and the information "order_shipping_id" is not available directly in the object "$data" ; but it would be in the "$data-&gt;cart".

You can perform a edition of the email using the HikaShop Business interface or you can modify directly the file using FTP (media/com_hikamarket/mail/order_status_notification.preload.php).
The next HikaMarket release will have that patch (if you right confirm that it fix the issue).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

- **[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")**
- [![trevsmiff's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9214.jpg)](/forum/user/9214-trevsmiff "View trevsmiff's Profile") Topic Author
- [ Offline](/forum/user/9214-trevsmiff)

Less More

- Posts: 306
- Thank you received: 42
-
-

9 years 10 months ago [\#257902](#257902) by [trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")  Replied by *[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")* on topic *[Wrong shipping address on vendor notifications](/forum/22-market-bug-report/887972-solved-wrong-shipping-address-on-vendor-notifications#257902 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.0  If a customer selects a different shipping address to the billing address then when the order status emails are sent to the vendor the shipping address is the same as the billing address. The email that is sent to the customer is correct.  Here is the result of a test purchase. 'Correct addresses' indicates that the different billing and shipping addresses were shown but the 'Wrong addresses had the shipping address the same as the billing address.  Status  Customer email  Vendor emal  Created  - Correct addresses  - Correct addresses  Confirmed  - Correct addresses  - Wrong addresses  Shipped  - Correct addresses  - Wrong addresses  Cancelled  - Correct addresses  - Wrong addresses  At the cancelled stage an additional email was sent to the main vendor which also had the wrong addresses.  I have no email overrides set.  Any ideas?  regards Trevor")*

Thanks for that Jerome, I will upload and test later today.

Best regards and seasons greetings
Trevor

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

- **[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")**
- [![trevsmiff's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9214.jpg)](/forum/user/9214-trevsmiff "View trevsmiff's Profile") Topic Author
- [ Offline](/forum/user/9214-trevsmiff)

Less More

- Posts: 306
- Thank you received: 42
-
-

9 years 10 months ago [\#257904](#257904) by [trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")  Replied by *[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")* on topic *[Wrong shipping address on vendor notifications](/forum/22-market-bug-report/887972-solved-wrong-shipping-address-on-vendor-notifications#257904 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.0  If a customer selects a different shipping address to the billing address then when the order status emails are sent to the vendor the shipping address is the same as the billing address. The email that is sent to the customer is correct.  Here is the result of a test purchase. 'Correct addresses' indicates that the different billing and shipping addresses were shown but the 'Wrong addresses had the shipping address the same as the billing address.  Status  Customer email  Vendor emal  Created  - Correct addresses  - Correct addresses  Confirmed  - Correct addresses  - Wrong addresses  Shipped  - Correct addresses  - Wrong addresses  Cancelled  - Correct addresses  - Wrong addresses  At the cancelled stage an additional email was sent to the main vendor which also had the wrong addresses.  I have no email overrides set.  Any ideas?  regards Trevor")*

Hi Jerome

I have just made the change and created a test order and can confirm the the address are now correct.

Many thanks
Trevor

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.279 seconds

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

[](#top)
