A part of the problem is out of the form

  • Posts: 4
  • Thank you received: 0
6 months 1 week ago #361550

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 5.1.1
-- PHP version -- : 8.2.12
-- Browser(s) name and version -- : Chrome 126.0.6478.61

Hi at all, sorry for my english. I need help with a code without the form of hikashop. I start to create an ovverides of the page show_default for change the aspect of the product schedule, and for few i have complete my target. But, one of the code is out of the form and create a second table, i want erase this from the rest of the schedules.
I create a screenshoot with the error i see my charateristic table two times, and the second out of the form i need to erase. What is the file contain them?

Attachments:

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
6 months 6 days ago #361556

Hi,

I would recommend activating the "Display view files" setting of the HikaShop configuration.
It will tell you which view file displays what on this page.

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

  • Posts: 4
  • Thank you received: 0
5 months 3 weeks ago #361712
Attachments:

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
5 months 3 weeks ago #361718

Hi,

Your screenshot indicates that you must have a view override of product / show_default.php where you load the show_block_characteristic.php sub view file twice.
So check the code of product / show_default.php and look for this code:

		$this->setLayout('show_block_characteristic');
		echo $this->loadTemplate();
by searching for show_block_characteristic in the code. Normally, you should only have one instance of this. I'm suspecting you have it twice in there.

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

  • Posts: 4
  • Thank you received: 0
5 months 3 weeks ago #361721

I have one of this. The if before of the code is modified in this tipe only for create a table here.

if($this->params->get('charateristic_display') == 'list')

In this case the list is created under the meta description
But the list type in the standard version is fitted in the part out of the show_default page, but where?

Last edit: 5 months 3 weeks ago by Drake92.

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
5 months 3 weeks ago #361722

Hi,

Could you provide a screenshot of all the page with the view files areas ? With your previous screenshot, it's not possible to be sure what is where as it's missing some of the view files used on the product page layout. So I can only guess, and my guess was wrong in my previous message...

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

  • Posts: 4
  • Thank you received: 0
5 months 3 weeks ago #361739



This?

Attachments:

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

  • Posts: 4763
  • Thank you received: 647
  • MODERATOR
5 months 3 weeks ago #361742

Hello,

It seems that you have in your view product/show_default 2 times the part show_block_characteristic, you have to look your overrided view, at the end.
You will see something like this, I guess :



Remove the unwanted block_characteristic.

Regards

Last edit: 5 months 3 weeks ago by Philip.

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

Time to create page: 0.091 seconds
Powered by Kunena Forum