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

#   adding extra columns to product lists in back-end

##

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

Less More

- Posts: 14
- Thank you received: 1
-
-

7 years 10 months ago -  7 years 10 months ago [\#302062](#302062) by [OA](/forum/user/49270-oa "View OA's Profile")  *[adding extra columns to product lists in back-end](/forum/26-product-category-display/896555-adding-extra-columns-to-product-lists-in-back-end#302062 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.36  Hello,  I want add some extra rows: (&quot;Tax&quot; and &quot;Price inlcuding tax&quot;) in the back-end of my product-list (see also the screenshot)  An article about this has been wrote about 4 - 6 years ago: -   www.hikashop.com/forum/product-category-...-columns.html#181291  -   www.hikashop.com/forum/2-general-talk-ab...axes-in-backend.html  Also the suggested topics in that article does not seem to work, probably through the use of old hikashop version.  which code do I need to add for displaying these extra information? How do I get acces to the pricing of that product?  Thanks..  kindly regards,  p.s - file: backend view --&gt; product / listing.php")* was created by *[OA](/forum/user/49270-oa "View OA's Profile")*

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.36

Hello,

I want add some extra rows: ("Tax" and "Price inlcuding tax") in the back-end of my product-list (see also the screenshot)

An article about this has been wrote about 4 - 6 years ago:
- [ www.hikashop.com/forum/product-category-...-columns.html#181291](https://www.hikashop.com/forum/product-category-display/873270-changing-the-back-end-products-listing-columns.html#181291)
- [ www.hikashop.com/forum/2-general-talk-ab...axes-in-backend.html](https://www.hikashop.com/forum/2-general-talk-about-hikashop/69654-show-prices-including-taxes-in-backend.html)
Also the suggested topics in that article does not seem to work, probably through the use of old hikashop version.

which code do I need to add for displaying these extra information?
How do I get acces to the pricing of that product?

Thanks..

kindly regards,

p.s
- file: backend view --&gt; product / listing.php

- [ ![backend-products-productslist.PNG](/forum/attachment/45693) ](/forum/attachment/45693 "...oductslist.PNG") [ ](/forum/attachment/45693?download=1 "...oductslist.PNG")
- [ ![backend-products-productslist-code&#95;2018-12-31.PNG](/forum/attachment/45695) ](/forum/attachment/45695 "...2018-12-31.PNG") [ ](/forum/attachment/45695?download=1 "...2018-12-31.PNG")

Last edit: 7 years 10 months ago by [OA](/forum/user/49270-oa "View OA's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY1NTUtYWRkaW5nLWV4dHJhLWNvbHVtbnMtdG8tcHJvZHVjdC1saXN0cy1pbi1iYWNrLWVuZD90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

7 years 10 months ago [\#302063](#302063) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[adding extra columns to product lists in back-end](/forum/26-product-category-display/896555-adding-extra-columns-to-product-lists-in-back-end#302063 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.36  Hello,  I want add some extra rows: (&quot;Tax&quot; and &quot;Price inlcuding tax&quot;) in the back-end of my product-list (see also the screenshot)  An article about this has been wrote about 4 - 6 years ago: -   www.hikashop.com/forum/product-category-...-columns.html#181291  -   www.hikashop.com/forum/2-general-talk-ab...axes-in-backend.html  Also the suggested topics in that article does not seem to work, probably through the use of old hikashop version.  which code do I need to add for displaying these extra information? How do I get acces to the pricing of that product?  Thanks..  kindly regards,  p.s - file: backend view --&gt; product / listing.php")*

Hi,

You can use Code:

echo $this-&gt;currencyHelper-&gt;displayPrices(@$row-&gt;prices, 'price_value');

to ge tthe price without taxes and : Code:

echo $this-&gt;currencyHelper-&gt;displayPrices(@$row-&gt;prices, 'price_value_with_tax');

to get the price with taxes.
But you can't use the displayPrices function to display the taxes. The displayPrices function is only meant to display the prices, not the taxes.
So you can do something like that: Code:

echo $this-&gt;currencyHelper-&gt;format($row-&gt;prices[0]-&gt;price_value_with_tax - $row-&gt;prices[0]-&gt;price_value, $row-&gt;prices[0]-&gt;price_currency_id);

Note that the displayPrices function can display several prices (for example, if you set several unit prices, one for each currency, etc), but the code with the format function will only display one price.

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

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

Less More

- Posts: 14
- Thank you received: 1
-
-

7 years 10 months ago -  7 years 10 months ago [\#302072](#302072) by [OA](/forum/user/49270-oa "View OA's Profile")  Replied by *[OA](/forum/user/49270-oa "View OA's Profile")* on topic *[adding extra columns to product lists in back-end](/forum/26-product-category-display/896555-adding-extra-columns-to-product-lists-in-back-end#302072 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.36  Hello,  I want add some extra rows: (&quot;Tax&quot; and &quot;Price inlcuding tax&quot;) in the back-end of my product-list (see also the screenshot)  An article about this has been wrote about 4 - 6 years ago: -   www.hikashop.com/forum/product-category-...-columns.html#181291  -   www.hikashop.com/forum/2-general-talk-ab...axes-in-backend.html  Also the suggested topics in that article does not seem to work, probably through the use of old hikashop version.  which code do I need to add for displaying these extra information? How do I get acces to the pricing of that product?  Thanks..  kindly regards,  p.s - file: backend view --&gt; product / listing.php")*

Thanks for fast respond Nicolas,

I've tried your solution. On someway te result for tax keeps €0,00. (see also screenshot). Code:

// prints €0,00 echo $this-&gt;currencyHelper-&gt;format($row-&gt;prices[0]-&gt;price_value_with_tax - $row-&gt;prices[0]-&gt;price_value, $row-&gt;prices[0]-&gt;price_currency_id);

Also with "basic" writing it returns 0. Code:

// prints also 0 or €0,00 $price_val = $this-&gt;currencyHelper-&gt;displayPrices(@$row-&gt;prices,'price_value'); $price_with_tax = $this-&gt;currencyHelper-&gt;displayPrices(@$row-&gt;prices, 'price_value_with_tax'); $price_cur_id = $this-&gt;currencyHelper-&gt;displayPrices(@$row-&gt;prices,'price_currency_id'); echo $price_with_tax - $price_val; // result 0 echo $this-&gt;currencyHelper-&gt;format($price_with_tax-$price_val, $price_cur_id); // result €0,00

- [ ![backend-products-productslist&#95;2.PNG](/forum/attachment/45697) ](/forum/attachment/45697 "...uctslist&#95;2.PNG") [ ](/forum/attachment/45697?download=1 "...uctslist&#95;2.PNG")

Last edit: 7 years 10 months ago by [OA](/forum/user/49270-oa "View OA's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY1NTUtYWRkaW5nLWV4dHJhLWNvbHVtbnMtdG8tcHJvZHVjdC1saXN0cy1pbi1iYWNrLWVuZD90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

7 years 10 months ago [\#302073](#302073) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[adding extra columns to product lists in back-end](/forum/26-product-category-display/896555-adding-extra-columns-to-product-lists-in-back-end#302073 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.36  Hello,  I want add some extra rows: (&quot;Tax&quot; and &quot;Price inlcuding tax&quot;) in the back-end of my product-list (see also the screenshot)  An article about this has been wrote about 4 - 6 years ago: -   www.hikashop.com/forum/product-category-...-columns.html#181291  -   www.hikashop.com/forum/2-general-talk-ab...axes-in-backend.html  Also the suggested topics in that article does not seem to work, probably through the use of old hikashop version.  which code do I need to add for displaying these extra information? How do I get acces to the pricing of that product?  Thanks..  kindly regards,  p.s - file: backend view --&gt; product / listing.php")*

Hi,

Try doing it like that then: Code:

$firstPrice = reset($row-&gt;prices); echo $this-&gt;currencyHelper-&gt;format($firstPrice-&gt;price_value_with_tax - $firstPrice-&gt;price_value, $firstPrice-&gt;price_currency_id);

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

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

Less More

- Posts: 14
- Thank you received: 1
-
-

7 years 10 months ago [\#302086](#302086) by [OA](/forum/user/49270-oa "View OA's Profile")  Replied by *[OA](/forum/user/49270-oa "View OA's Profile")* on topic *[adding extra columns to product lists in back-end](/forum/26-product-category-display/896555-adding-extra-columns-to-product-lists-in-back-end#302086 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.36  Hello,  I want add some extra rows: (&quot;Tax&quot; and &quot;Price inlcuding tax&quot;) in the back-end of my product-list (see also the screenshot)  An article about this has been wrote about 4 - 6 years ago: -   www.hikashop.com/forum/product-category-...-columns.html#181291  -   www.hikashop.com/forum/2-general-talk-ab...axes-in-backend.html  Also the suggested topics in that article does not seem to work, probably through the use of old hikashop version.  which code do I need to add for displaying these extra information? How do I get acces to the pricing of that product?  Thanks..  kindly regards,  p.s - file: backend view --&gt; product / listing.php")*

Thanks Nicolas,

I am not sure what "reset" does, but it helped ![:)](/media/kunena/emoticons/3.png ":)") it worked for me!.

greetings.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTY1NTUtYWRkaW5nLWV4dHJhLWNvbHVtbnMtdG8tcHJvZHVjdC1saXN0cy1pbi1iYWNrLWVuZD90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

7 years 10 months ago [\#302087](#302087) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[adding extra columns to product lists in back-end](/forum/26-product-category-display/896555-adding-extra-columns-to-product-lists-in-back-end#302087 "-- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.6.5 -- PHP version -- : 5.6.36  Hello,  I want add some extra rows: (&quot;Tax&quot; and &quot;Price inlcuding tax&quot;) in the back-end of my product-list (see also the screenshot)  An article about this has been wrote about 4 - 6 years ago: -   www.hikashop.com/forum/product-category-...-columns.html#181291  -   www.hikashop.com/forum/2-general-talk-ab...axes-in-backend.html  Also the suggested topics in that article does not seem to work, probably through the use of old hikashop version.  which code do I need to add for displaying these extra information? How do I get acces to the pricing of that product?  Thanks..  kindly regards,  p.s - file: backend view --&gt; product / listing.php")*

Hi,

The reset function will give the first element of the array. the [0] will do that only if the array is numbered incrementally, which is not the case anymore apparently and that's why the previous old code didn't work.

The following user(s) said Thank You: [OA](/forum/user/49270-oa "View OA's Profile")

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