How do I change the page heading?

escafandra
Phoca Member
Phoca Member
Posts: 14
Joined: 12 Jul 2018, 11:19

How do I change the page heading?

Post by escafandra » 22 Jul 2018, 17:55

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.


User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 40103
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan » 30 Jul 2018, 16:08

Hi, for now this can be done only in code directly:
components\com_phocacart\views\items\tmpl\default_header.php

from:

Code: Select all

echo PhocacartRenderFront::renderHeader(array($title, JText::_('COM_PHOCACART_ITEMS')));
to:

Code: Select all

echo PhocacartRenderFront::renderHeader(array($title));
(can be even overwritren by template, so the modifications will be not lost when updating the phoca cart component)

Jan
If you find Phoca extensions useful, please support the project

escafandra
Phoca Member
Phoca Member
Posts: 14
Joined: 12 Jul 2018, 11:19

Re: How do I change the page heading?

Post by escafandra » 31 Jul 2018, 19:09

Great! Than you so much!

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 40103
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan » 07 Aug 2018, 14:17

Ok
If you find Phoca extensions useful, please support the project

escafandra
Phoca Member
Phoca Member
Posts: 14
Joined: 12 Jul 2018, 11:19

Re: How do I change the page heading?

Post by escafandra » 30 Aug 2018, 16:53

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,

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 40103
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan » 02 Sep 2018, 00:43

Hi, did you set it in your template as override, so it will be not overwritten by update?

Jan
If you find Phoca extensions useful, please support the project

escafandra
Phoca Member
Phoca Member
Posts: 14
Joined: 12 Jul 2018, 11:19

Re: How do I change the page heading?

Post by escafandra » 13 Sep 2018, 13:27

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,

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 40103
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan » 15 Sep 2018, 14:21

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
If you find Phoca extensions useful, please support the project

escafandra
Phoca Member
Phoca Member
Posts: 14
Joined: 12 Jul 2018, 11:19

Re: How do I change the page heading?

Post by escafandra » 15 Sep 2018, 18:55

Great! Thank you so much for your help Jan. Much appreciated.

All the best!

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 40103
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan » 16 Sep 2018, 11:35

Ok
If you find Phoca extensions useful, please support the project

Post Reply