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

#   Do not display Base Currency on Product Listing

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 4 months ago [\#294698](#294698) by [wooservers](/forum/user/56364-wooservers "View wooservers's Profile")  *[Do not display Base Currency on Product Listing](/forum/26-product-category-display/895127-do-not-display-base-currency-on-product-listing#294698 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1  We would like to show products only in their own Currency and hide Base Currency on Product Listing.  There is a very old discussion about modifying code in Views &gt;&gt; Product Listing.  However, the code now is different and old patch can not be used.  Can you advise how to modify the code so that only product's own currency is shown both on Product Listing and Checkout?    www.hikashop.com/forum/checkout/866056-d...eir-currency-of.html")* was created by *[wooservers](/forum/user/56364-wooservers "View wooservers's Profile")*

-- HikaShop version -- : 3.4.1
-- Joomla version -- : 3.8.1
-- PHP version -- : 7.1

We would like to show products only in their own Currency and hide Base Currency on Product Listing.

There is a very old discussion about modifying code in Views &gt;&gt; Product Listing.

However, the code now is different and old patch can not be used.

Can you advise how to modify the code so that only product's own currency is shown both on Product Listing and Checkout?

[ www.hikashop.com/forum/checkout/866056-d...eir-currency-of.html](https://www.hikashop.com/forum/checkout/866056-display-prices-only-in-their-currency-of.html)

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

8 years 4 months ago [\#294743](#294743) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Do not display Base Currency on Product Listing](/forum/26-product-category-display/895127-do-not-display-base-currency-on-product-listing#294743 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1  We would like to show products only in their own Currency and hide Base Currency on Product Listing.  There is a very old discussion about modifying code in Views &gt;&gt; Product Listing.  However, the code now is different and old patch can not be used.  Can you advise how to modify the code so that only product's own currency is shown both on Product Listing and Checkout?    www.hikashop.com/forum/checkout/866056-d...eir-currency-of.html")*

Hi,

The piece of code mentioned on that other thread is still the exact same in product / listing_price.php: Code:

if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_without_discount_with_tax,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax') == 2) { echo JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax') == 2 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax')) { echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_without_discount,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax') == 2) { echo JText::_('PRICE_AFTER_TAX'); } if($this-&gt;params-&gt;get('show_original_price') &amp;&amp; !empty($price-&gt;price_orig_value_without_discount_with_tax)){ echo JText::_('PRICE_BEFORE_ORIG'); if($this-&gt;params-&gt;get('price_with_tax')) { echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value_without_discount_with_tax,$price-&gt;price_orig_currency_id); } if($this-&gt;params-&gt;get('price_with_tax') == 2) { echo JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax') == 2 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax') &amp;&amp; !empty($price-&gt;price_orig_value_without_discount)) { echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value_without_discount,$price-&gt;price_orig_currency_id); } if($this-&gt;params-&gt;get('price_with_tax') == 2) { echo JText::_('PRICE_AFTER_TAX'); } echo JText::_('PRICE_AFTER_ORIG'); }

so I don't see why the patch couldn't be used anymore. Did you get an error when you tried ? Which one ?

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 4 months ago [\#294776](#294776) by [wooservers](/forum/user/56364-wooservers "View wooservers's Profile")  Replied by *[wooservers](/forum/user/56364-wooservers "View wooservers's Profile")* on topic *[Do not display Base Currency on Product Listing](/forum/26-product-category-display/895127-do-not-display-base-currency-on-product-listing#294776 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1  We would like to show products only in their own Currency and hide Base Currency on Product Listing.  There is a very old discussion about modifying code in Views &gt;&gt; Product Listing.  However, the code now is different and old patch can not be used.  Can you advise how to modify the code so that only product's own currency is shown both on Product Listing and Checkout?    www.hikashop.com/forum/checkout/866056-d...eir-currency-of.html")*

and if we create a Module for "Product Listing" to be used with HikaMarket Vendor List, we also use "listing_price.php" or some other file?

[ sethealth.ru/список-продавцов/vendor/show/6-linda-cakes](https://sethealth.ru/%D1%81%D0%BF%D0%B8%D1%81%D0%BE%D0%BA-%D0%BF%D1%80%D0%BE%D0%B4%D0%B0%D0%B2%D1%86%D0%BE%D0%B2/vendor/show/6-linda-cakes)

here it shows Base currency "1 300 Баллов" and then in brackets the currency that we want to display: (1 300,00 РУБ)

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

8 years 4 months ago [\#294785](#294785) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Do not display Base Currency on Product Listing](/forum/26-product-category-display/895127-do-not-display-base-currency-on-product-listing#294785 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1  We would like to show products only in their own Currency and hide Base Currency on Product Listing.  There is a very old discussion about modifying code in Views &gt;&gt; Product Listing.  However, the code now is different and old patch can not be used.  Can you advise how to modify the code so that only product's own currency is shown both on Product Listing and Checkout?    www.hikashop.com/forum/checkout/866056-d...eir-currency-of.html")*

Hello,

The product listing module under the vendor page is still a product listing.
If you create a menu or a module for a product listing, it will use the same HikaShop content. The place where you place the module doesn't matter but the module/menu settings do.

Regards,

---

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

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 4 months ago [\#294959](#294959) by [wooservers](/forum/user/56364-wooservers "View wooservers's Profile")  Replied by *[wooservers](/forum/user/56364-wooservers "View wooservers's Profile")* on topic *[Do not display Base Currency on Product Listing](/forum/26-product-category-display/895127-do-not-display-base-currency-on-product-listing#294959 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1  We would like to show products only in their own Currency and hide Base Currency on Product Listing.  There is a very old discussion about modifying code in Views &gt;&gt; Product Listing.  However, the code now is different and old patch can not be used.  Can you advise how to modify the code so that only product's own currency is shown both on Product Listing and Checkout?    www.hikashop.com/forum/checkout/866056-d...eir-currency-of.html")*

but why replacing code doesn't help then?

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

8 years 4 months ago [\#294980](#294980) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Do not display Base Currency on Product Listing](/forum/26-product-category-display/895127-do-not-display-base-currency-on-product-listing#294980 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.1 -- PHP version -- : 7.1  We would like to show products only in their own Currency and hide Base Currency on Product Listing.  There is a very old discussion about modifying code in Views &gt;&gt; Product Listing.  However, the code now is different and old patch can not be used.  Can you advise how to modify the code so that only product's own currency is shown both on Product Listing and Checkout?    www.hikashop.com/forum/checkout/866056-d...eir-currency-of.html")*

Hi,

So do you mean that it works fine for other products listings and not for that products listing on the vendor page ?
I suppose that it doesn't work anymore because probably the modification you're doing is not the one you want to do.
For what you want, you need to change the code: Code:

if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$price-&gt;price_value_with_tax,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$price-&gt;price_value,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_AFTER_TAX'); } if($this-&gt;params-&gt;get('show_original_price') &amp;&amp; !empty($price-&gt;price_orig_value)){ echo JText::_('PRICE_BEFORE_ORIG'); if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value_with_tax,$price-&gt;price_orig_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value,$price-&gt;price_orig_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_AFTER_TAX'); } echo JText::_('PRICE_AFTER_ORIG'); }

to: Code:

if(empty($price-&gt;price_orig_value)){ if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$price-&gt;price_value_with_tax,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$price-&gt;price_value,$price-&gt;price_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_AFTER_TAX'); } } else { if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value_with_tax,$price-&gt;price_orig_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_BEFORE_TAX'); } if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value,$price-&gt;price_orig_currency_id); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_AFTER_TAX'); } }

Please note however that such customization is outside of the support we're supposed to provide. We can give hints but it's up to you to do such code modifications or hire someone to help you with them.

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

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