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

#   Display a message depending on the price

##

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

Less More

- Posts: 14
- Thank you received: 2
-
-
-
- [](http://www.rwstout.nl)
-

14 years 6 months ago [\#48905](#48905) by [rwstout](/forum/user/6935-rwstout "View rwstout's Profile")  *[Display a message depending on the price](/forum/4-how-to/48905-display-a-message-depending-on-the-price#48905 "Hallo,  I would like to display a message below the price with all articles with a price (including tax) of 150 (see attachment). My php-knowlegde is very limited.  Any idea?  Thanks, René")* was created by *[rwstout](/forum/user/6935-rwstout "View rwstout's Profile")*

Hallo,

I would like to display a message below the price with all articles with a price (including tax) of 150 (see attachment).
My php-knowlegde is very limited.

Any idea?

Thanks,
René
[ ![hika&#95;price.png](/forum/attachment/3717) ](/forum/attachment/3717 "hika&#95;price.png")

---

Groet,

René

- [ ![hika&#95;price.png](/forum/attachment/3717) ](/forum/attachment/3717 "hika&#95;price.png") [ ](/forum/attachment/3717?download=1 "hika&#95;price.png")

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

14 years 6 months ago [\#48941](#48941) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display a message depending on the price](/forum/4-how-to/48905-display-a-message-depending-on-the-price#48941 "Hallo,  I would like to display a message below the price with all articles with a price (including tax) of 150 (see attachment). My php-knowlegde is very limited.  Any idea?  Thanks, René")*

You can add it in the file "show_default" of the view "product" via the menu Display-&gt;Views, after the block of code related to the display of the price.

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

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

Less More

- Posts: 14
- Thank you received: 2
-
-
-
- [](http://www.rwstout.nl)
-

14 years 6 months ago -  14 years 6 months ago [\#48945](#48945) by [rwstout](/forum/user/6935-rwstout "View rwstout's Profile")  Replied by *[rwstout](/forum/user/6935-rwstout "View rwstout's Profile")* on topic *[Re: Display a message depending on the price](/forum/4-how-to/48905-display-a-message-depending-on-the-price#48945 "Hallo,  I would like to display a message below the price with all articles with a price (including tax) of 150 (see attachment). My php-knowlegde is very limited.  Any idea?  Thanks, René")*

> nicolas wrote: You can add it in the file "show\_default" of the view "product" via the menu Display-&gt;Views, after the block of code related to the display of the price.

Thanks, I had come that far, too. But now my challenge: what is the code for checking if the price with tax = 150?

---

Groet,

René

Last edit: 14 years 6 months ago by [rwstout](/forum/user/6935-rwstout "View rwstout's Profile"). Reason: typo

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

14 years 6 months ago [\#48997](#48997) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Display a message depending on the price](/forum/4-how-to/48905-display-a-message-depending-on-the-price#48997 "Hallo,  I would like to display a message below the price with all articles with a price (including tax) of 150 (see attachment). My php-knowlegde is very limited.  Any idea?  Thanks, René")*

&lt;?php
if($this-&gt;element-&gt;prices[0]-&gt;price_value==150){
echo "my text";
}
?&gt;

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

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

Less More

- Posts: 14
- Thank you received: 2
-
-
-
- [](http://www.rwstout.nl)
-

14 years 6 months ago [\#49002](#49002) by [rwstout](/forum/user/6935-rwstout "View rwstout's Profile")  Replied by *[rwstout](/forum/user/6935-rwstout "View rwstout's Profile")* on topic *[Re: Display a message depending on the price](/forum/4-how-to/48905-display-a-message-depending-on-the-price#49002 "Hallo,  I would like to display a message below the price with all articles with a price (including tax) of 150 (see attachment). My php-knowlegde is very limited.  Any idea?  Thanks, René")*

Thanks! It's perfect now ![:-)](/media/kunena/emoticons/3.png ":-)")

---

Groet,

René

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

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