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

#   Display price in Page Title

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 3 months ago [\#163934](#163934) by [london.scrapper](/forum/user/26543-london-scrapper "View london.scrapper's Profile")  *[Display price in Page Title](/forum/26-product-category-display/869682-display-price-in-page-title#163934 "Hi  I am trying to show the product price in the page title.  I have used following.  $doc =&amp; JFactory::getDocument(); $doc-&gt;setTitle($this-&gt;element-&gt;product&#95;name.' '.$this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id));  But for some reason, price is shown £0.00  How can I show the price here,  Thanks in advance.  - Imran")* was created by *[london.scrapper](/forum/user/26543-london-scrapper "View london.scrapper's Profile")*

Hi

I am trying to show the product price in the page title.

I have used following.

$doc =&amp; JFactory::getDocument();
$doc-&gt;setTitle($this-&gt;element-&gt;product_name.' '.$this-&gt;currencyHelper-&gt;format($price-&gt;price_value_without_discount_with_tax,$price-&gt;price_currency_id));

But for some reason, price is shown £0.00

How can I show the price here,

Thanks in advance.

- Imran

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 3 months ago [\#163969](#163969) by [london.scrapper](/forum/user/26543-london-scrapper "View london.scrapper's Profile")  Replied by *[london.scrapper](/forum/user/26543-london-scrapper "View london.scrapper's Profile")* on topic *[Display price in Page Title](/forum/26-product-category-display/869682-display-price-in-page-title#163969 "Hi  I am trying to show the product price in the page title.  I have used following.  $doc =&amp; JFactory::getDocument(); $doc-&gt;setTitle($this-&gt;element-&gt;product&#95;name.' '.$this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id));  But for some reason, price is shown £0.00  How can I show the price here,  Thanks in advance.  - Imran")*

You can ignore this post, I ve managed to fix it.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njk2ODItZGlzcGxheS1wcmljZS1pbi1wYWdlLXRpdGxlP3RtcGw9bWFya2Rvd24=) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 months ago [\#163970](#163970) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Display price in Page Title](/forum/26-product-category-display/869682-display-price-in-page-title#163970 "Hi  I am trying to show the product price in the page title.  I have used following.  $doc =&amp; JFactory::getDocument(); $doc-&gt;setTitle($this-&gt;element-&gt;product&#95;name.' '.$this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id));  But for some reason, price is shown £0.00  How can I show the price here,  Thanks in advance.  - Imran")*

Hi,

Good to know that your problem is solved.

Regards,

---

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

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

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

[](#top)
