Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Phoca Cart - complex e-commerce extension
-
sohrab330
- Phoca Enthusiast

- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
-
Contact:
Post
by sohrab330 » 16 Dec 2020, 07:32
Hi,
Is there a way to change the header title of product list view?

which file would be containing the code so i can change it?
and I am not talking about css tricks. I might need to change the title.
Tags:
-
sohrab330
- Phoca Enthusiast

- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
-
Contact:
Post
by sohrab330 » 16 Dec 2020, 07:41
I actually found this code in view->category
Code: Select all
// HEADER - NOT AJAX
if (!$this->t['ajax']) {
echo '<div id="ph-pc-category-box" class="pc-category-view'.$this->p->get( 'pageclass_sfx' ).'">';
$c = isset($this->t['categories']) ? count($this->t['categories']) : 0;
echo $this->loadTemplate('header');
echo $this->loadTemplate('subcategories');
echo $this->loadTemplate('pagination_top');
echo '<div id="phItemsBox">';
}
it is calling header of the template but I haven't put the so called "Items" as the header of my template.

-
David-Spring
- Phoca Member

- Posts: 23
- Joined: 15 Dec 2020, 11:21
Post
by David-Spring » 16 Dec 2020, 10:09
Thank you for finding and posting a solution to this problem. Again this will help other people solve the same problem.
Most good templates these days will have a way to change the heading tag used for titles. You should be able to change the font family, the font size and the color just by clicking on buttons.
One thing I like about Phoca Cart is how clean and logical the coding is. If there is ever a problem with your template, there is always a logical class like .pc-category-view that you can use in your custom.css file to override your template. I am not saying you should do this, but you could add many other things with CSS such as decorations or padding to make your titles stand out more. Such things as decorations or padding changes are generally not possible with most templates. But they are easy in custom.css once you know the class you want to change.
-
sohrab330
- Phoca Enthusiast

- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
-
Contact:
Post
by sohrab330 » 16 Dec 2020, 16:02
David-Spring,
That was not the solution I posted.
I found a code which refers to the header. but I could not find where the header is read from.
I would still need someone's help. and as I mentioned, I don't want CSS tricks. since I would like to change the header to sth else and there got to be a better way.
-
sohrab330
- Phoca Enthusiast

- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
-
Contact:
Post
by sohrab330 » 16 Dec 2020, 22:59
Hi,
the same id and class:

-
Benno
- Phoca Hero

- Posts: 7688
- Joined: 04 Dec 2008, 11:58
- Location: Germany
-
Contact:
Post
by Benno » 17 Dec 2020, 11:44
Hi,
in my case hiding of header works with this setting. See images:
Joomla! v3.9.23
Phoca Cart v3.5.5 Beta
PHP v7.4.13
Phoca Fashion Template v1.0.3
Kind regards,
Benno
-
sohrab330
- Phoca Enthusiast

- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
-
Contact:
Post
by sohrab330 » 18 Dec 2020, 19:05
Benno,
did you use css or the method from the manual?
-
sohrab330
- Phoca Enthusiast

- Posts: 61
- Joined: 04 Nov 2012, 23:40
- Location: Iran
-
Contact:
Post
by sohrab330 » 18 Dec 2020, 20:34
btw,
may I know where is this search box?
I don't have it in my version:
