Title not showing on Index Page and Shopping Cart Page

Open to all! Ask other shopowners for help.
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Title not showing on Index Page and Shopping Cart Page

Post by radhavallabh »

ecartz wrote: Thu May 26, 2022 7:44 am
radhavallabh wrote: Thu May 26, 2022 6:41 am On the set_title function I get as below for print_r(get_defined_vars())-
Array ( [title] => Radha Krishna Spiritual Store )

On the get_title function it returns empty when I use get_defined_vars()
I get as below when I try to echo and get_defined_vars() for $title in the same get_title function.
Array ( [title] => )
In get_title, try

Code: Select all

echo "get_title[{$this->_title}]";
or

Code: Select all

error_log($this->_title);
or

Code: Select all

print_r($this);
Hi dear @ecartz ;

As per your instructions I tried as below-

public function get_title() {
echo "get_title[{$this->_title}]";
return $this->_title;
}
It returns- get_title[]


I tried as below-
public function get_title() {
error_log($this->_title);
return $this->_title;
}
It returns empty.


I tried as below-

public function get_title() {
print_r($this);
return $this->_title;
}

Template Object ( [_title:protected] => [_blocks:protected] => Array ([footer_scripts] =>.........(displays all footer scripts)


I tried as below-

public function get_title() {
return $this->_title;
print_r($this);
echo "get_title[{$this->_title}]";
error_log($this->_title);
}

But there is no output on the front end via print or echo ....and it has no output in the php error log too dear.

Please help and guide me further more dear that what I shall do...
Thank you very much in advance;
Very Warm Regds./
radhavallabh


Join The Code Co-op to get access to your library in the Code Co-op Forum
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Title not showing on Index Page and Shopping Cart Page

Post by radhavallabh »

Hi dear @ecartz
I found the issue;
It was the Slim Checkout Module by dear @raiwa due to which this get_title issue sprang up.
It has fixed after uninstalling the module.

I also request dear @raiwa to please check this issue dear on installing Slim Checkout the store stops showing the default get_title on all pages.

Thank you again for all the valuable help by dear @burt and dear @ecartz for helping me fix the SEO titles issue and the debugging of this problem;

Very Warm Regds./
radhavallabh
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Title not showing on Index Page and Shopping Cart Page

Post by raiwa »

radhavallabh wrote: Sat May 28, 2022 9:09 am I also request dear @raiwa to please check this issue dear on installing Slim Checkout the store stops showing the default get_title on all pages.
Please post these kind of requests in the Addon's support area.
Fixed in Slim_Checkout_1.8, please update.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Title not showing on Index Page and Shopping Cart Page

Post by radhavallabh »

raiwa wrote: Sat May 28, 2022 3:11 pm
radhavallabh wrote: Sat May 28, 2022 9:09 am I also request dear @raiwa to please check this issue dear on installing Slim Checkout the store stops showing the default get_title on all pages.
Please post these kind of requests in the Addon's support area.
Fixed in Slim_Checkout_1.8, please update.
Sure dear; Will do so in addon area in future.... :)
Thank you so much, the fix worked like a charm...

Very Warm Regds./
radhavallabh


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply