How do I change the page heading?

Phoca Cart - complex e-commerce extension
escafandra
Phoca Enthusiast
Phoca Enthusiast
Posts: 52
Joined: 12 Jul 2018, 11:19

How do I change the page heading?

Post by escafandra »

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: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan »

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 Enthusiast
Phoca Enthusiast
Posts: 52
Joined: 12 Jul 2018, 11:19

Re: How do I change the page heading?

Post by escafandra »

Great! Than you so much!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
escafandra
Phoca Enthusiast
Phoca Enthusiast
Posts: 52
Joined: 12 Jul 2018, 11:19

Re: How do I change the page heading?

Post by escafandra »

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: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan »

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 Enthusiast
Phoca Enthusiast
Posts: 52
Joined: 12 Jul 2018, 11:19

Re: How do I change the page heading?

Post by escafandra »

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: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan »

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 Enthusiast
Phoca Enthusiast
Posts: 52
Joined: 12 Jul 2018, 11:19

Re: How do I change the page heading?

Post by escafandra »

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

All the best!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How do I change the page heading?

Post by Jan »

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