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

#   Alternate Shipping Address Issue in Checkout

##

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

Less More

- Posts: 100
- Thank you received: 1
-
-

11 years 6 months ago [\#202163](#202163) by [reders](/forum/user/8228-reders "View reders's Profile")  *[Alternate Shipping Address Issue in Checkout](/forum/27-checkout/877049-alternate-shipping-address-issue-in-checkout#202163 "-- url of the page with the problem -- :   www.totalpipes.co.uk/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Internet Explorer (all versions) -- Error-message(debug-mod must be tuned on) -- : script 5007 error unable get property 'value’  When adding an alternative delivery address when checking out it is defaulting to the original address. This issue only occurs in internet explorer, all other browsers are fine. When looking at the dev tools, it shows the error 'script 5007 error unable get property 'value’. This seems to be from the ‘init.js' file.  Once submitted, the address is not available from the address drop-down menu. Yet when you back out of the check out and re-enter, the new delivery address is selectable. As stated this is only an issue with internet explorer.  Please help me fix this issue.  Thanks")* was created by *[reders](/forum/user/8228-reders "View reders's Profile")*

-- url of the page with the problem -- : [ www.totalpipes.co.uk/](http://www.totalpipes.co.uk/)
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : Internet Explorer (all versions)
-- Error-message(debug-mod must be tuned on) -- : script 5007 error unable get property 'value’

When adding an alternative delivery address when checking out it is defaulting to the original address. This issue only occurs in internet explorer, all other browsers are fine. When looking at the dev tools, it shows the error 'script 5007 error unable get property 'value’. This seems to be from the ‘init.js' file.

Once submitted, the address is not available from the address drop-down menu. Yet when you back out of the check out and re-enter, the new delivery address is selectable. As stated this is only an issue with internet explorer.

Please help me fix this issue.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzA0OS1hbHRlcm5hdGUtc2hpcHBpbmctYWRkcmVzcy1pc3N1ZS1pbi1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#202215](#202215) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Alternate Shipping Address Issue in Checkout](/forum/27-checkout/877049-alternate-shipping-address-issue-in-checkout#202215 "-- url of the page with the problem -- :   www.totalpipes.co.uk/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Internet Explorer (all versions) -- Error-message(debug-mod must be tuned on) -- : script 5007 error unable get property 'value’  When adding an alternative delivery address when checking out it is defaulting to the original address. This issue only occurs in internet explorer, all other browsers are fine. When looking at the dev tools, it shows the error 'script 5007 error unable get property 'value’. This seems to be from the ‘init.js' file.  Once submitted, the address is not available from the address drop-down menu. Yet when you back out of the check out and re-enter, the new delivery address is selectable. As stated this is only an issue with internet explorer.  Please help me fix this issue.  Thanks")*

Hi,

I can't reproduce your issue using Internet Explorer 11 but when I want to edit an address in the checkout, the "save" button is not display properly (does not have any image) so I had to click on the link even if it's not really "visible".
But I could create two addresses for the "test hikashop" account.

Regards,

---

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

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

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

Less More

- Posts: 100
- Thank you received: 1
-
-

11 years 6 months ago [\#202275](#202275) by [reders](/forum/user/8228-reders "View reders's Profile")  Replied by *[reders](/forum/user/8228-reders "View reders's Profile")* on topic *[Alternate Shipping Address Issue in Checkout](/forum/27-checkout/877049-alternate-shipping-address-issue-in-checkout#202275 "-- url of the page with the problem -- :   www.totalpipes.co.uk/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Internet Explorer (all versions) -- Error-message(debug-mod must be tuned on) -- : script 5007 error unable get property 'value’  When adding an alternative delivery address when checking out it is defaulting to the original address. This issue only occurs in internet explorer, all other browsers are fine. When looking at the dev tools, it shows the error 'script 5007 error unable get property 'value’. This seems to be from the ‘init.js' file.  Once submitted, the address is not available from the address drop-down menu. Yet when you back out of the check out and re-enter, the new delivery address is selectable. As stated this is only an issue with internet explorer.  Please help me fix this issue.  Thanks")*

Hi Jerome,

We have tried it in several versions of Internet Explorer, including 11, but still having issues.

The problem is not that it doesn't save the address. The problem is when we click the 'Save' button, it does save the new address, but it disappears and we cannot select it, and Hikashop reverts to the billing address. Only if we click out of the checkout page and come back to it can we see or select the new shipping address.

I noticed the following error in Developer Tools but not sure if it is related:
Unable to get property 'value' of undefined or null reference

This is currently happening on a live website so I am eager to get this fixed as soon as possible and massively appreciate any help with this.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NzA0OS1hbHRlcm5hdGUtc2hpcHBpbmctYWRkcmVzcy1pc3N1ZS1pbi1jaGVja291dD90bXBsPW1hcmtkb3du) 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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#202364](#202364) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Alternate Shipping Address Issue in Checkout](/forum/27-checkout/877049-alternate-shipping-address-issue-in-checkout#202364 "-- url of the page with the problem -- :   www.totalpipes.co.uk/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Internet Explorer (all versions) -- Error-message(debug-mod must be tuned on) -- : script 5007 error unable get property 'value’  When adding an alternative delivery address when checking out it is defaulting to the original address. This issue only occurs in internet explorer, all other browsers are fine. When looking at the dev tools, it shows the error 'script 5007 error unable get property 'value’. This seems to be from the ‘init.js' file.  Once submitted, the address is not available from the address drop-down menu. Yet when you back out of the check out and re-enter, the new delivery address is selectable. As stated this is only an issue with internet explorer.  Please help me fix this issue.  Thanks")*

Hi,

Thanks for the clarification on the issue.
I was able to reproduce your issue and with some configuration I have also reproduce it in my local website.

In order to fix the issue, the best is to add some "checks" in the view "checkout &#124; address_select" and replace Code:

for(var k in el_sel.options) {

By Code:

for(var k in el_sel.options) { if(!el_sel.options.hasOwnProperty(k)) continue;

And same thing for Code:

for(var k in ot_sel.options) {

With Code:

for(var k in ot_sel.options) { if(!ot_sel.options.hasOwnProperty(k)) continue;

In the view you will have make the replacement several times (and be careful on the "ot_sel" and "el_sel").
Internet Explorer does not deal like other browsers for the "for()" while looking at the content in a dropdown ; the extra check will avoid that issue.

Regards,

---

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

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

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

Less More

- Posts: 100
- Thank you received: 1
-
-

11 years 6 months ago -  11 years 6 months ago [\#202459](#202459) by [reders](/forum/user/8228-reders "View reders's Profile")  Replied by *[reders](/forum/user/8228-reders "View reders's Profile")* on topic *[Alternate Shipping Address Issue in Checkout](/forum/27-checkout/877049-alternate-shipping-address-issue-in-checkout#202459 "-- url of the page with the problem -- :   www.totalpipes.co.uk/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Internet Explorer (all versions) -- Error-message(debug-mod must be tuned on) -- : script 5007 error unable get property 'value’  When adding an alternative delivery address when checking out it is defaulting to the original address. This issue only occurs in internet explorer, all other browsers are fine. When looking at the dev tools, it shows the error 'script 5007 error unable get property 'value’. This seems to be from the ‘init.js' file.  Once submitted, the address is not available from the address drop-down menu. Yet when you back out of the check out and re-enter, the new delivery address is selectable. As stated this is only an issue with internet explorer.  Please help me fix this issue.  Thanks")*

Hi Jerome,

Thanks for your help with this. Unfortunately it didn't fix the issue.

I have been through ‘checkout &#124; address_select' and added the required additional JS.

for(var k in el_sel.options) {
to
for(var k in el_sel.options) {
if(!el_sel.options.hasOwnProperty(k))
continue;
and
for(var k in ot_sel.options) {
to
for(var k in ot_sel.options) {
if(!ot_sel.options.hasOwnProperty(k))
continue;

I have checked and replaced all instances that the above occurs in the code. I have double checked to ensure that I have not replaced the el_sol with ot_sel and vice versa.

Unless we have a caching issue on our system, this form should now work in accordance with Jerome's instructions. Is there another view we need to edit?

Thanks again

Last edit: 11 years 6 months ago by [reders](/forum/user/8228-reders "View reders's Profile").

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

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 6 months ago -  11 years 6 months ago [\#202509](#202509) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Alternate Shipping Address Issue in Checkout](/forum/27-checkout/877049-alternate-shipping-address-issue-in-checkout#202509 "-- url of the page with the problem -- :   www.totalpipes.co.uk/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Internet Explorer (all versions) -- Error-message(debug-mod must be tuned on) -- : script 5007 error unable get property 'value’  When adding an alternative delivery address when checking out it is defaulting to the original address. This issue only occurs in internet explorer, all other browsers are fine. When looking at the dev tools, it shows the error 'script 5007 error unable get property 'value’. This seems to be from the ‘init.js' file.  Once submitted, the address is not available from the address drop-down menu. Yet when you back out of the check out and re-enter, the new delivery address is selectable. As stated this is only an issue with internet explorer.  Please help me fix this issue.  Thanks")*

Hi,

Jerome reproduced the bug and tested the solution before giving it to you. So if you still have the problem, it means that you missed something in the changes you made.

Here is a zip with the full file with the patches included in it. Replace it on your website in the folder components/com_hikashop/views/checkout/tmpl, remove the view customization that you have on that view file via the menu Display&gt;Views and it will work.

*This attachment is hidden for guests.
Please log in or register to see it.*

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

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

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

Less More

- Posts: 100
- Thank you received: 1
-
-

11 years 6 months ago [\#202539](#202539) by [reders](/forum/user/8228-reders "View reders's Profile")  Replied by *[reders](/forum/user/8228-reders "View reders's Profile")* on topic *[Alternate Shipping Address Issue in Checkout](/forum/27-checkout/877049-alternate-shipping-address-issue-in-checkout#202539 "-- url of the page with the problem -- :   www.totalpipes.co.uk/  -- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.40 -- Browser(s) name and version -- : Internet Explorer (all versions) -- Error-message(debug-mod must be tuned on) -- : script 5007 error unable get property 'value’  When adding an alternative delivery address when checking out it is defaulting to the original address. This issue only occurs in internet explorer, all other browsers are fine. When looking at the dev tools, it shows the error 'script 5007 error unable get property 'value’. This seems to be from the ‘init.js' file.  Once submitted, the address is not available from the address drop-down menu. Yet when you back out of the check out and re-enter, the new delivery address is selectable. As stated this is only an issue with internet explorer.  Please help me fix this issue.  Thanks")*

Hi guys,

Yes, sorry. Jerome's instructions worked perfectly.

We followed the instructions but we had some weird issue where the template override wasn't updating.

We've fixed this now so thank you very much for the help.

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

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