Setting Page Heading on Menu Items Does Not Work

  • Posts: 36
  • Thank you received: 6
11 years 10 months ago #86250

If you want your page heading to be different than you page title, you are supposed to be able to set the heading under menu item page display options. Setting the value has no effect in Hikashop.

To fix this, I added a little code.

In views/product/tmpl/listing.php I added the bits about page_heading

if($this->params->get($title) && JRequest::getVar('hikashop_front_end_main',0) && (!$this->module || $this->pageInfo->elements->total)){
	$name = $this->params->get('page_title');
	if(($this->module)){
		$name = $this->params->get('title');
	}
  else if ($this->params->get('page_heading'))
  {
    $name = $this->params->get('page_heading');
  }

In views/category/tmpl/listing.php I added the bits about page_heading
if($this->params->get($title) && JRequest::getVar('hikashop_front_end_main',0)){
  $heading = $this->params->get('page_title');
  if ($this->params->get('page_heading'))
  {
    $heading = $this->params->get('page_heading');
  }

The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 10 months ago #86400

Hi,

That's indeed something which is not handled at the moment. We'll add that for next version. Thanks for sharing your code modifications.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum