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

#   How do i get price value with tax

##

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

Less More

- Posts: 57
- Thank you received: 1
-
-

12 years 44 minutes ago -  11 years 11 months ago [\#181549](#181549) by [888](/forum/user/32855-888 "View 888's Profile")  *[How do i get price value with tax](/forum/30-integrations/873310-how-do-i-get-price-value-with-tax#181549 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  hi  How do i get price value with tax in my custom module I only get price value (without tax)")* was created by *[888](/forum/user/32855-888 "View 888's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5.14-1

hi

How do i get price value with tax in my custom module
I only get price value (without tax) Code:

&lt;span class="price"&gt; &lt;?php if($this-&gt;component=="com_hikamarket") { $msrpCurrencied = $currencyClass-&gt;convertUniquePrice($item-&gt;price_value,$mainCurr,$currCurrency); if($msrpCurrencied == $item-&gt;price_value) $price= $currencyClass-&gt;format($item-&gt;price_value,$mainCurr); else $price= $currencyClass-&gt;format($msrpCurrencied,$currCurrency).' ('.$currencyClass-&gt;format($item-&gt;price_value,$mainCurr).')'; echo $price."&lt;br/&gt;&lt;a href='".JRoute::_("index.php?option=com_hikamarket&amp;ctrl=vendor&amp;task=show&amp;cid=" . $item-&gt;extra_id."&amp;name=".$item-&gt;vendor_name)."'&gt;".$item-&gt;vendor_name."&lt;/a&gt;&lt;br/&gt;"; } ?&gt; &lt;/span&gt;

Last edit: 11 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice !

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

11 years 11 months ago [\#181564](#181564) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How do i get price value with tax](/forum/30-integrations/873310-how-do-i-get-price-value-with-tax#181564 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  hi  How do i get price value with tax in my custom module I only get price value (without tax)")*

Hi,

You have to use $item-&gt;price_value_with_tax instead of $item-&gt;price_value

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

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

Less More

- Posts: 57
- Thank you received: 1
-
-

11 years 11 months ago -  11 years 11 months ago [\#181630](#181630) by [888](/forum/user/32855-888 "View 888's Profile")  Replied by *[888](/forum/user/32855-888 "View 888's Profile")* on topic *[How do i get price value with tax](/forum/30-integrations/873310-how-do-i-get-price-value-with-tax#181630 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  hi  How do i get price value with tax in my custom module I only get price value (without tax)")*

hi xavier
I did already try it in my code but then just get 0 Code:

&lt;span class="price"&gt; &lt;?php if($this-&gt;component=="com_hikamarket") { $msrpCurrencied = $currencyClass-&gt;convertUniquePrice( $item-&gt;price_value_with_tax,$mainCurr,$currCurrency); if($msrpCurrencied == $item-&gt;price_value_with_tax) $price= $currencyClass-&gt;format($item-&gt;price_value,$mainCurr); else $price= $currencyClass-&gt;format($msrpCurrencied,$currCurrency).' ('.$currencyClass-&gt;format( $item-&gt;price_value_with_taxe,$mainCurr).')'; echo $price."&lt;br/&gt;&lt;a href='".JRoute::_("index.php?option=com_hikamarket&amp;ctrl=vendor&amp;task=show&amp;cid=" . $item-&gt;extra_id."&amp;name=".$item-&gt;vendor_name)."'&gt;".$item-&gt;vendor_name."&lt;/a&gt;&lt;br/&gt;"; } ?&gt; &lt;/span&gt;

thanks in advance

Last edit: 11 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzMzMTAtaG93LWRvLWktZ2V0LXByaWNlLXZhbHVlLXdpdGgtdGF4P3RtcGw9bWFya2Rvd24=) 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 11 months ago [\#181659](#181659) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How do i get price value with tax](/forum/30-integrations/873310-how-do-i-get-price-value-with-tax#181659 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.5.14-1  hi  How do i get price value with tax in my custom module I only get price value (without tax)")*

Hi,

What is your module ?
Where the variables come from ?
What is exactly "$item" ?
What's the exact result you got ?

Regards,

---

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

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

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