Can't override the packs.php view

  • Posts: 111
  • Thank you received: 1
1 year 6 months ago #250984

-- HikaShop version -- : 2.6.4
-- HikaSerial version -- : 1.10.4
-- Joomla version -- : 3.6.0
-- PHP version -- : 5.5

Hi there,

I'm trying to override the view:
components/com_hikaserial/views/serialsmarket/tmpl/packs.php

So I'm placing my packs.php in templates/my_template/html/com_hikaserial/serialsmarket, but always the original layout shows.

I have done quite a lot of hikashop/market/serial view overrides and all get picked up fine. In fact I use the Hikashop Display-> Views menu to generate the overrides.

But this particular one seems it does not work. Can you replicate?

Thanks

#######EDIT#########

Same issue with components/com_hikaserial/views/serialsmarket/tmpl/stats.php

Last Edit: 1 year 6 months ago by sabroso.

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

  • Posts: 22247
  • Thank you received: 3464
  • MODERATOR
1 year 6 months ago #250988

Hi,

Thanks for the report.

Because the HikaSerial view is display under the HikaMarket context ; the template override path processed by Joomla is not the "right one".
In the view "components/com_hikaserial/views/serialmarket/view.html.php" please add the content

	public function __construct($config = array()) {
		parent::__construct($config);
		$app = JFactory::getApplication();
		$this->_addPath('template', JPATH_THEMES . '/' . $app->getTemplate() . '/html/com_hikaserial/' . $this->getName());
	}

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 111
  • Thank you received: 1
1 year 6 months ago #251089

Thank you, works great.

Imagine this correction will go into the next version of Hikaserial, right?

Cheers

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

  • Posts: 22247
  • Thank you received: 3464
  • MODERATOR
1 year 6 months ago #251090

Sure it will !


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: sabroso

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

Moderators: Obsidev
Time to create page: 0.078 seconds
Powered by Kunena Forum