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

#   Ad Company Name to Order &amp; Customer Lists

##

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

Less More

- Posts: 31
- Thank you received: 1
-
-
- [](http://www.michford.com)
-

11 years 4 months ago [\#207332](#207332) by [ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")  *[Ad Company Name to Order &amp; Customer Lists](/forum/23-market-how-to/877963-ad-company-name-to-order-customer-lists#207332 "-- url of the page with the problem -- :   cottoncandy.rocks  -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome latest  I would like to have a column in the order list &amp; client list for the clients company name and it be searchable, How do I accomplish this for both hikashop and hikamarket?")* was created by *[ichimonban](/forum/user/30985-ichimonban "View ichimonban's Profile")*

-- url of the page with the problem -- : [ cottoncandy.rocks](https://cottoncandy.rocks)
-- HikaShop version -- : 2.5.0
-- HikaMarket version -- : 1.6.4
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome latest

I would like to have a column in the order list &amp; client list for the clients company name and it be searchable, How do I accomplish this for both hikashop and hikamarket?

---

MicahFord.com
VOLT2.com \| KLEANALL.com \| GRAVITYMedia.co

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODc3OTYzLWFkLWNvbXBhbnktbmFtZS10by1vcmRlci1jdXN0b21lci1saXN0cz90bXBsPW1hcmtkb3du) 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 4 months ago [\#207351](#207351) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ad Company Name to Order &amp; Customer Lists](/forum/23-market-how-to/877963-ad-company-name-to-order-customer-lists#207351 "-- url of the page with the problem -- :   cottoncandy.rocks  -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome latest  I would like to have a column in the order list &amp; client list for the clients company name and it be searchable, How do I accomplish this for both hikashop and hikamarket?")*

Hi,

To add new columns in the listing, it could be done using a view override.
Every views in HikaShop and HikaMarket can be overridden, so you can customize them to add a column and display the information you want.

To make the field searchable, it requires a small custom plugin.
Thanks to the trigger "onBeforeOrderListing", you can modify the content of the variable "$searchMap" and add the fields that you want to make available in the search.
Depending from where come the field "company", you might need to also add a "join" in order to include another database table for the query which get the listing content.

[ www.hikashop.com/support/support/documen...r-documentation.html](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html)Code:

onBeforeOrderListing($paramBase, &amp;$extrafilters, &amp;$pageInfo, &amp;$filters, &amp;$tables, &amp;$searchMap)

Regards,

---

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

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

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

Less More

- Posts: 17
- Thank you received: 0
-
-

10 years 6 months ago [\#240293](#240293) by [thirdhatch](/forum/user/1140-thirdhatch "View thirdhatch's Profile")  Replied by *[thirdhatch](/forum/user/1140-thirdhatch "View thirdhatch's Profile")* on topic *[Ad Company Name to Order &amp; Customer Lists](/forum/23-market-how-to/877963-ad-company-name-to-order-customer-lists#240293 "-- url of the page with the problem -- :   cottoncandy.rocks  -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome latest  I would like to have a column in the order list &amp; client list for the clients company name and it be searchable, How do I accomplish this for both hikashop and hikamarket?")*

I have a similar goal in the Orders view: I would like to add the Customer's company name above the customer name (see 1st screenshot) , and have the column sortable by the Company name (or by customer name if the there is no company name). Looking at order &gt; listing.php, it seems I would need top add the company name somewhere around line 140:
Code:

&lt;td class="hikashop_order_customer_value"&gt; ECHO COMPANY NAME HERE? &lt;?php echo $row-&gt;hikashop_name; if(!empty($row-&gt;username)){ echo ' ( '.$row-&gt;username.' )'; } echo '&lt;br/&gt;'; if(!empty($row-&gt;user_id)){ $url = hikashop_completeLink('user&amp;task=edit&amp;cid[]='.$row-&gt;user_id); $config =&amp; hikashop_config(); if(hikashop_isAllowed($config-&gt;get('acl_user_manage','all'))) echo $row-&gt;user_email.'&lt;a href="'.$url.$target.'"&gt;&lt;img src="'.HIKASHOP_IMAGES.'edit.png" alt="edit"/&gt;&lt;/a&gt;'; }elseif(!empty($row-&gt;user_email)){ echo $row-&gt;user_email; } ?&gt; &lt;/td&gt;

I tried adding a line for the custom field parameter **address\_company** (see 2nd screenshot) but nothing appeared.

If that's too difficult, how can I override the layout for order/listing.php to simply include a separate column for the company name. That is, can you say what the correct parameter/syntax is for for this value?

- [ ![hika1.jpg](/forum/attachment/31460) ](/forum/attachment/31460 "hika1.jpg") [ ](/forum/attachment/31460?download=1 "hika1.jpg")
- [ ![hika2.jpg](/forum/attachment/31461) ](/forum/attachment/31461 "hika2.jpg") [ ](/forum/attachment/31461?download=1 "hika2.jpg")

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

10 years 6 months ago [\#240321](#240321) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ad Company Name to Order &amp; Customer Lists](/forum/23-market-how-to/877963-ad-company-name-to-order-customer-lists#240321 "-- url of the page with the problem -- :   cottoncandy.rocks  -- HikaShop version -- : 2.5.0 -- HikaMarket version -- : 1.6.4 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome latest  I would like to have a column in the order list &amp; client list for the clients company name and it be searchable, How do I accomplish this for both hikashop and hikamarket?")*

Hi,

This is the HikaMarket section of the forum where I provide support for HikaMarket.
Your question is related to HikaShop ; please create a new thread in the HikaShop section ; where the HikaShop support team will be able to help you.

Regards,

---

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

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

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