How do I change the page heading?
-
- Phoca Enthusiast
- Posts: 52
- Joined: 12 Jul 2018, 11:19
How do I change the page heading?
In my site https://www.atunrojodelestrecho.com/tiendatest.html the default page heading is "items". I changed it to "Productos" in Menus > Phoca Cart > Page Display > Page Heading, but the word "Item" is still there. How do I get rid of that word "Item" or chage it to one of my choosing? Thank you very much.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How do I change the page heading?
Hi, for now this can be done only in code directly:
components\com_phocacart\views\items\tmpl\default_header.php
from:
to:
(can be even overwritren by template, so the modifications will be not lost when updating the phoca cart component)
Jan
components\com_phocacart\views\items\tmpl\default_header.php
from:
Code: Select all
echo PhocacartRenderFront::renderHeader(array($title, JText::_('COM_PHOCACART_ITEMS')));
Code: Select all
echo PhocacartRenderFront::renderHeader(array($title));
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 52
- Joined: 12 Jul 2018, 11:19
Re: How do I change the page heading?
Great! Than you so much!
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How do I change the page heading?
Ok
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 52
- Joined: 12 Jul 2018, 11:19
Re: How do I change the page heading?
Hello again Jan,
The word "Item" came back. Weird. I checked and the code is echo PhocacartRenderFront::renderHeader(array($title));
as you suggested back when I changed it and it worked. Any ideas please? Thank you,
The word "Item" came back. Weird. I checked and the code is echo PhocacartRenderFront::renderHeader(array($title));
as you suggested back when I changed it and it worked. Any ideas please? Thank you,
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How do I change the page heading?
Hi, did you set it in your template as override, so it will be not overwritten by update?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 52
- Joined: 12 Jul 2018, 11:19
Re: How do I change the page heading?
Hi Jan, sorry but I am not sure how to set it in my template as override. Could you please explain how to do it? Thank you,
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How do I change the page heading?
Hi, just see the Joomla! guides, how to overwrite component outputs. You can set the component output file (e.g.: components\com_phocacart\views\category\tmpl\default_header.php will be copied to Joomla! template html folder and it will override the source file)
https://docs.joomla.org/How_to_override ... omla!_core
Jan
https://docs.joomla.org/How_to_override ... omla!_core
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 52
- Joined: 12 Jul 2018, 11:19
Re: How do I change the page heading?
Great! Thank you so much for your help Jan. Much appreciated.
All the best!
All the best!
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: How do I change the page heading?
Ok
If you find Phoca extensions useful, please support the project