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

#   How to hide price for 1 product in the category

##

- **[gidgie](/forum/user/6893-gidgie "View gidgie's Profile")**
- [![gidgie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6893.jpg)](/forum/user/6893-gidgie "View gidgie's Profile") Topic Author
- [ Offline](/forum/user/6893-gidgie)

Less More

- Posts: 70
- Thank you received: 4
-
-

13 years 11 months ago [\#82881](#82881) by [gidgie](/forum/user/6893-gidgie "View gidgie's Profile")  *[How to hide price for 1 product in the category](/forum/2-general-talk-about-hikashop/76924-how-to-hide-price-for-1-product-in-the-category#82881 "Hi,  My client has been managing their site themselves for a while and they came up with a question.  They have a product with about 7 variants. They would like to display no price when the product is listed with other products that have price listed. How could that be achieved??  Thanks in advance!")* was created by *[gidgie](/forum/user/6893-gidgie "View gidgie's Profile")*

Hi,

My client has been managing their site themselves for a while and they came up with a question.

They have a product with about 7 variants. They would like to display no price when the product is listed with other products that have price listed. How could that be achieved??

Thanks in advance!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2OTI0LWhvdy10by1oaWRlLXByaWNlLWZvci0xLXByb2R1Y3QtaW4tdGhlLWNhdGVnb3J5P3RtcGw9bWFya2Rvd24=) 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 11 months ago [\#82906](#82906) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to hide price for 1 product in the category](/forum/2-general-talk-about-hikashop/76924-how-to-hide-price-for-1-product-in-the-category#82906 "Hi,  My client has been managing their site themselves for a while and they came up with a question.  They have a product with about 7 variants. They would like to display no price when the product is listed with other products that have price listed. How could that be achieved??  Thanks in advance!")*

Hi,

You have to edit the view "product / listing_img_title" (or another one depending on which display you are using) and add a if condition on the product ID, and if the product_id == youId, so hide the price part.

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

- **[gidgie](/forum/user/6893-gidgie "View gidgie's Profile")**
- [![gidgie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6893.jpg)](/forum/user/6893-gidgie "View gidgie's Profile") Topic Author
- [ Offline](/forum/user/6893-gidgie)

Less More

- Posts: 70
- Thank you received: 4
-
-

13 years 10 months ago [\#85724](#85724) by [gidgie](/forum/user/6893-gidgie "View gidgie's Profile")  Replied by *[gidgie](/forum/user/6893-gidgie "View gidgie's Profile")* on topic *[How to hide price for 1 product in the category](/forum/2-general-talk-about-hikashop/76924-how-to-hide-price-for-1-product-in-the-category#85724 "Hi,  My client has been managing their site themselves for a while and they came up with a question.  They have a product with about 7 variants. They would like to display no price when the product is listed with other products that have price listed. How could that be achieved??  Thanks in advance!")*

HI Xavier,

This sounds like a coding job. And i am not very good at that. Do you have any examples of how that would look? I am sure i can figure out different product ID myself ![:)](/media/kunena/emoticons/3.png ":)") But not sure how entire line should look.

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

13 years 10 months ago [\#85759](#85759) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to hide price for 1 product in the category](/forum/2-general-talk-about-hikashop/76924-how-to-hide-price-for-1-product-in-the-category#85759 "Hi,  My client has been managing their site themselves for a while and they came up with a question.  They have a product with about 7 variants. They would like to display no price when the product is listed with other products that have price listed. How could that be achieved??  Thanks in advance!")*

Hi,

It's quite simple actually.

Change the line:
if($this-&gt;params-&gt;get('show_price')){

to:
if($this-&gt;params-&gt;get('show_price') &amp;&amp; $this-&gt;row-&gt;product_id != XX){

where XX is the id of the product for which you want to hide the price on the listing.

The following user(s) said Thank You: [gidgie](/forum/user/6893-gidgie "View gidgie's Profile")

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

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