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

#   adding fields to order listing

##

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

Less More

- Posts: 90
- Thank you received: 1
-
-
-
-

13 years 6 months ago [\#101244](#101244) by [langkatech](/forum/user/7030-langkatech "View langkatech's Profile")  *[adding fields to order listing](/forum/2-general-talk-about-hikashop/81039-adding-fields-to-order-listing#101244 "I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the...")* was created by *[langkatech](/forum/user/7030-langkatech "View langkatech's Profile")*

I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the customers name shows up in the order listing. I am assuming that is only if the customer registers. If we don't have the customer register is there a way to get the first name and last name onto the order listing page?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 6 months ago [\#101388](#101388) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[adding fields to order listing](/forum/2-general-talk-about-hikashop/81039-adding-fields-to-order-listing#101388 "I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the...")*

Hi,

You can edit the view "order / lising" and add a column for the Shipping method, and use the var "$row-&gt;order_shipping_method" to display it.
To display the address informations like the name, you have to make a request to get the name in the table address where the address_id is equal to "$row-&gt;order_billing_address_id".

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

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

Less More

- Posts: 90
- Thank you received: 1
-
-
-
-

13 years 6 months ago [\#101873](#101873) by [langkatech](/forum/user/7030-langkatech "View langkatech's Profile")  Replied by *[langkatech](/forum/user/7030-langkatech "View langkatech's Profile")* on topic *[adding fields to order listing](/forum/2-general-talk-about-hikashop/81039-adding-fields-to-order-listing#101873 "I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the...")*

I only understand a little bit of the reply. other entries in there look like this

" &lt;td class="hikashop_order_date_value"&gt;
&lt;?php echo hikashop_getDate($row-&gt;order_created,'%Y-%m-%d %H:%M');?&gt;
&lt;/td&gt; "

For a non-programmer what exactly do i need to put into the order/listing ?

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

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 6 months ago [\#102075](#102075) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[adding fields to order listing](/forum/2-general-talk-about-hikashop/81039-adding-fields-to-order-listing#102075 "I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the...")*

You would add somethine like that for the shipping method:
&lt;td class="hikashop_order_date_value"&gt;
&lt;?php echo $row-&gt;order_shipping_method;?&gt;
&lt;/td&gt;

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

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

Less More

- Posts: 90
- Thank you received: 1
-
-
-
-

13 years 5 months ago [\#102186](#102186) by [langkatech](/forum/user/7030-langkatech "View langkatech's Profile")  Replied by *[langkatech](/forum/user/7030-langkatech "View langkatech's Profile")* on topic *[adding fields to order listing](/forum/2-general-talk-about-hikashop/81039-adding-fields-to-order-listing#102186 "I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the...")*

1) That worked, but I realized that's not the right field. It gives me the right shipping method of "manual" but I set several methods up under manual. I set up USPS 1st Class, USPS Priority, USPS International 1st Class these are the ones I want to show up on the listing.

2) I would also like to put the customers 1st and last name on the order listing. I think it would be there if we had our customers register and login. But since we don't require them to register all that shows up is their email address. I have attached a picture of what our order listing looks like. Thank you for your help.

- [ ![orderslisting.JPG](/forum/attachment/9966) ](/forum/attachment/9966 "orderslisting.JPG") [ ](/forum/attachment/9966?download=1 "orderslisting.JPG")

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

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 5 months ago [\#102364](#102364) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[adding fields to order listing](/forum/2-general-talk-about-hikashop/81039-adding-fields-to-order-listing#102364 "I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the...")*

1. In that case, replace order_shipping_method by order_shipping_id in the code

2. That's more complex as that data is not available directly in the view.
You will have to first load it : Code:

$class = hikashop_get('class.order'); $order = $class-&gt;loadFullOrder($row-&gt;order_id); echo $order-&gt;billing_address-&gt;address_firstname; echo $order-&gt;billing_address-&gt;address_lastname;

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

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

Less More

- Posts: 90
- Thank you received: 1
-
-
-
-

13 years 5 months ago [\#103750](#103750) by [langkatech](/forum/user/7030-langkatech "View langkatech's Profile")  Replied by *[langkatech](/forum/user/7030-langkatech "View langkatech's Profile")* on topic *[adding fields to order listing](/forum/2-general-talk-about-hikashop/81039-adding-fields-to-order-listing#103750 "I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the...")*

1) I changed order_shipping_method to order_shipping_id but now all that shows up in my listing is a number. I assume that number correlates to to what I have set up under the manual shipping methods. Is there a way to get the name of those though. I tried changing it to order_shipping_name but nothing appears on the listing page when I do this. I would like for it to appear like it does at the bottom of the invoice.

2) I know I would like to add it after this code:
&lt;th class="hikashop_order_customer_title title"&gt;
&lt;?php echo JHTML::_('grid.sort', JText::_('CUSTOMER'), 'c.name',
$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;
&lt;/th&gt;
But I am not sure how to format it. Can I just copy the code you provided not sure where to put the code to load it either... Thanks for the help.

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

13 years 5 months ago [\#103868](#103868) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[adding fields to order listing](/forum/2-general-talk-about-hikashop/81039-adding-fields-to-order-listing#103868 "I was able to comment out certain fields on the view order / listing to cleanup our orders listing page. I want to add the shipment method to it though. Also I noticed in the documentation that the...")*

Hi,

The "order_shipping_method" is the plugin name and the "order_shipping_id" is the ID in the hikashop shipping table.
If you want the final name, you have to load the configuration for this specific shipping_id and read the column "shipping_name".

For the header of the table, you can just use a classical column without sorting. Code:

&lt;th class="hikashop_order_customer_title title"&gt;&lt;?php echo JText::_('CUSTOMER'); ?&gt;&lt;/th&gt;

You have to create the cell in the body of the table too with this time the code given by Nicolas.

Regards,

---

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

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

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

[](#top)
