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

#   Can't access extra address in frontend

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

9 years 11 months ago [\#255862](#255862) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Can't access extra address in frontend](/forum/22-market-bug-report/887592-cant-access-extra-address-in-frontend#255862 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.25 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Unknown column 'address&#95;type' in 'where clause' SQL=SELECT &#42; FROM #&#95;&#95;hikashop&#95;address WHERE address&#95;published = 1 AND address&#95;user&#95;id = 6 AND address&#95;type IN ('', 'billing')  Login as a vendor,  I get to edit a user order and can't select an alternative address not for shipping nor for billing.  In the dropdown more button, I can get to work &quot;Show Default&quot;, &quot;Show Details&quot; and &quot;Edit Address&quot;.  When choosing &quot;Select Address&quot;, I get a SQL server error inside the opening iframe.  Unknown column 'address&#95;type' in 'where clause' SQL=SELECT &#42; FROM #&#95;&#95;hikashop&#95;address WHERE address&#95;published = 1 AND address&#95;user&#95;id = 6 AND address&#95;type IN ('', 'billing')")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.6.4
-- PHP version -- : 5.6.25
-- Browser(s) name and version -- : Any
-- Error-message(debug-mod must be tuned on) -- : Unknown column 'address_type' in 'where clause' SQL=SELECT * FROM #__hikashop_address WHERE address_published = 1 AND address_user_id = 6 AND address_type IN ('', 'billing')

Login as a vendor,

I get to edit a user order and can't select an alternative address not for shipping nor for billing.

In the dropdown more button, I can get to work "Show Default", "Show Details" and "Edit Address".

When choosing "Select Address", I get a SQL server error inside the opening iframe.

*Unknown column 'address\_type' in 'where clause' SQL=SELECT \* FROM #\_\_hikashop\_address WHERE address\_published = 1 AND address\_user\_id = 6 AND address\_type IN ('', 'billing')*

[ ![Capturadepantalla2016-11-22ales17.45.44.png](/forum/attachment/34751) ](/forum/attachment/34751 "...es17.45.44.png")

- [ ![Capturadepantalla2016-11-22ales17.45.44.png](/forum/attachment/34751) ](/forum/attachment/34751 "...es17.45.44.png") [ ](/forum/attachment/34751?download=1 "...es17.45.44.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg4NzU5Mi1jYW4tdC1hY2Nlc3MtZXh0cmEtYWRkcmVzcy1pbi1mcm9udGVuZD90bXBsPW1hcmtkb3du) 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 11 months ago [\#255863](#255863) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Can't access extra address in frontend](/forum/22-market-bug-report/887592-cant-access-extra-address-in-frontend#255863 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.25 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Unknown column 'address&#95;type' in 'where clause' SQL=SELECT &#42; FROM #&#95;&#95;hikashop&#95;address WHERE address&#95;published = 1 AND address&#95;user&#95;id = 6 AND address&#95;type IN ('', 'billing')  Login as a vendor,  I get to edit a user order and can't select an alternative address not for shipping nor for billing.  In the dropdown more button, I can get to work &quot;Show Default&quot;, &quot;Show Details&quot; and &quot;Edit Address&quot;.  When choosing &quot;Select Address&quot;, I get a SQL server error inside the opening iframe.  Unknown column 'address&#95;type' in 'where clause' SQL=SELECT &#42; FROM #&#95;&#95;hikashop&#95;address WHERE address&#95;published = 1 AND address&#95;user&#95;id = 6 AND address&#95;type IN ('', 'billing')")*

Hi,

Please add the column "address_type" in the table "hikashop_address".
That column shouldn't be add in the last release but it looks like it will only be available in HikaShop 3. Code:

ALTER TABLE &#96;#__hikashop_address&#96;ADD &#96;address_type&#96; varchar(50) NOT NULL DEFAULT '';

Regards,

---

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

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile"), [mhdlabs](/forum/user/46345-mhdlabs "View mhdlabs's Profile")

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

9 years 11 months ago [\#255890](#255890) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Can't access extra address in frontend](/forum/22-market-bug-report/887592-cant-access-extra-address-in-frontend#255890 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.4 -- PHP version -- : 5.6.25 -- Browser(s) name and version -- : Any -- Error-message(debug-mod must be tuned on) -- : Unknown column 'address&#95;type' in 'where clause' SQL=SELECT &#42; FROM #&#95;&#95;hikashop&#95;address WHERE address&#95;published = 1 AND address&#95;user&#95;id = 6 AND address&#95;type IN ('', 'billing')  Login as a vendor,  I get to edit a user order and can't select an alternative address not for shipping nor for billing.  In the dropdown more button, I can get to work &quot;Show Default&quot;, &quot;Show Details&quot; and &quot;Edit Address&quot;.  When choosing &quot;Select Address&quot;, I get a SQL server error inside the opening iframe.  Unknown column 'address&#95;type' in 'where clause' SQL=SELECT &#42; FROM #&#95;&#95;hikashop&#95;address WHERE address&#95;published = 1 AND address&#95;user&#95;id = 6 AND address&#95;type IN ('', 'billing')")*

Thanks, it works properly now.

-- Víctor

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

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

[](#top)
