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

#   Filter plugin display product price

##

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

Less More

- Posts: 299
- Thank you received: 2
-
-

11 years 2 months ago [\#212723](#212723) by [LAMF](/forum/user/8669-lamf "View LAMF's Profile")  *[Filter plugin display product price](/forum/31-development/878987-filter-plugin-display-product-price#212723 "-- url of the page with the problem -- :   www.bil-filtertjanst.se  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.42 -- Browser(s) name and version -- : N/A  Hi, I have a customized filter module and now in the end of the process I have a table to display all products after the filtering is done.  I have 4 columns displaying: Product name, description, Product price (incl. VAT), Thumbnail of product photo and ADD to Cart button (BUY/KÖP). Everything except for the product price works fine. How can I get that value listed as well? Here is some code from the helper.php file that makes it all work. This is the part where the table row displaying Product name and description, Product price incl. VAT, Thumbnail of product photo and Buy-button.  I get everything except dispolaying the price to work. Anyone who can tell me how to call fror that value and make it correct? Any help is highly appreciated. Thanks Micke")* was created by *[LAMF](/forum/user/8669-lamf "View LAMF's Profile")*

-- url of the page with the problem -- : [ www.bil-filtertjanst.se](http://www.bil-filtertjanst.se)
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.42
-- Browser(s) name and version -- : N/A

Hi,
I have a customized filter module and now in the end of the process I have a table to display all products after the filtering is done.

I have 4 columns displaying: Product name, description, Product price (incl. VAT), Thumbnail of product photo and ADD to Cart button (BUY/KÖP).
Everything except for the product price works fine.
How can I get that value listed as well?
Here is some code from the helper.php file that makes it all work.
This is the part where the table row displaying Product name and description, Product price incl. VAT, Thumbnail of product photo and Buy-button. Code:

&lt;tr class="filter&lt;?php echo $k?&gt;"&gt; &lt;!--&lt;td &gt;Â &lt;/td&gt;--&gt; &lt;!--&lt;td &gt;Â &lt;/td&gt;--&gt; &lt;td style="padding: 6px; font-size: 14px;" width="170"&gt;&lt;?php echo $product-&gt;product_name?&gt;&lt;/td&gt; &lt;td style="padding: 6px; font-size: 14px;" width="80"&gt;&lt;?php echo $product-&gt;product_price?&gt;&lt;/td&gt; &lt;td &gt; &lt;a title="Bilden Ã¤r endast representativ fÃ¶r filtertypen" rel="shadowbox" href="images/com_hikashop/upload/&lt;?php echo $image;?&gt;"&gt; &lt;img width="50" border="0/" src="images/com_hikashop/upload/&lt;?php echo $image;?&gt;"&gt; &lt;/a&gt; &lt;/td&gt; &lt;td width="170" align="right" class="filter&lt;?php echo $k?&gt;" style="text-align: right;"&gt; &lt;input type="button" onclick="AddToCart&lt;?php echo $moduleid?&gt;&lt;?php echo $uniqid?&gt;(this,'&lt;?php echo $product-&gt;product_id;?&gt;');return false;" value="&lt;?php echo JText::_('ADD_TO_CART')?&gt;" name="add" class="btn button hikashop_cart_input_button" rel="#filterresult&lt;?php echo $moduleid?&gt;&lt;?php echo $uniqid?&gt;" method="Cart"/&gt; &lt;/td&gt; &lt;/tr&gt;

I get everything except dispolaying the price to work.
Anyone who can tell me how to call fror that value and make it correct?
Any help is highly appreciated.
Thanks
Micke

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

11 years 2 months ago [\#212732](#212732) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Filter plugin display product price](/forum/31-development/878987-filter-plugin-display-product-price#212732 "-- url of the page with the problem -- :   www.bil-filtertjanst.se  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.42 -- Browser(s) name and version -- : N/A  Hi, I have a customized filter module and now in the end of the process I have a table to display all products after the filtering is done.  I have 4 columns displaying: Product name, description, Product price (incl. VAT), Thumbnail of product photo and ADD to Cart button (BUY/KÖP). Everything except for the product price works fine. How can I get that value listed as well? Here is some code from the helper.php file that makes it all work. This is the part where the table row displaying Product name and description, Product price incl. VAT, Thumbnail of product photo and Buy-button.  I get everything except dispolaying the price to work. Anyone who can tell me how to call fror that value and make it correct? Any help is highly appreciated. Thanks Micke")*

Hi,

You first need to load the prices. You can't just use product_price when that variable doesn't exist.
you can do something like that: Code:

&lt;?php $class = hikashop_get('class.currency'); $ids = array($product-&gt;product_id); $class-&gt;getPrices($product, $ids, hikshop_getCurrency(), hikshop_getCurrency(), hikashop_getZone(), $product-&gt;product_tax_id); echo $class-&gt;format($product-&gt;prices[0]-&gt;price_value_with_tax, hikashop_getCurrency()); ?&gt;

The following user(s) said Thank You: [LAMF](/forum/user/8669-lamf "View LAMF's Profile")

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

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

Less More

- Posts: 299
- Thank you received: 2
-
-

11 years 2 months ago [\#212790](#212790) by [LAMF](/forum/user/8669-lamf "View LAMF's Profile")  Replied by *[LAMF](/forum/user/8669-lamf "View LAMF's Profile")* on topic *[Filter plugin display product price](/forum/31-development/878987-filter-plugin-display-product-price#212790 "-- url of the page with the problem -- :   www.bil-filtertjanst.se  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.42 -- Browser(s) name and version -- : N/A  Hi, I have a customized filter module and now in the end of the process I have a table to display all products after the filtering is done.  I have 4 columns displaying: Product name, description, Product price (incl. VAT), Thumbnail of product photo and ADD to Cart button (BUY/KÖP). Everything except for the product price works fine. How can I get that value listed as well? Here is some code from the helper.php file that makes it all work. This is the part where the table row displaying Product name and description, Product price incl. VAT, Thumbnail of product photo and Buy-button.  I get everything except dispolaying the price to work. Anyone who can tell me how to call fror that value and make it correct? Any help is highly appreciated. Thanks Micke")*

Hi,
Excellent,now it works exactly as i want it.
Thanks a lot.

Best regards
Micke

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

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