Die Tabellenüberschrift bei den Spezifikationen werden nicht angezeigt

  • Posts: 23
  • Thank you received: 0
  • Hikashop Business
18 hours ago #368567

-- HikaShop version -- : 6.1.0
-- Joomla version -- : 5.3.3
-- PHP version -- : 8.4.12

Dear Sir or Madam, In accordance with the Federal Employment Agency Act (BFSG), table headings must be displayed in tables! Accessible tables require HTML markup that identifies header cells and data cells and defines their relationship to each other. This information provides context for people who use assistive devices. Tables should only be used for tabular data. A table is automatically created during the specification, but the table heading is missing. How can I fix this? Furthermore, the H4 heading above the table is empty. Please help with this as well. Thank you very much.

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
14 hours 31 minutes ago #368568

Hi,

You can go in the menu Display>Views and edit the product / show_block_specifications view file.
There, you can add a thead to the table if you need to.
Regarding the heading, it is supposed to contain the text "Specifications" (or the equivalent in your website language). The fact that it is empty likely indicate that you've added a translation override of that text in order to remove the text.

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

  • Posts: 23
  • Thank you received: 0
  • Hikashop Business
14 hours ago #368569

Thank you for your answer, unfortunately the show_block_specifications file does not exist under Views.

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

  • Posts: 23
  • Thank you received: 0
  • Hikashop Business
13 hours 25 minutes ago #368570

I found the setting. However, an additional element is now displayed. I must have made an error in the PHP file. What could be causing this? Thank you.

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

  • Posts: 23
  • Thank you received: 0
  • Hikashop Business
13 hours 20 minutes ago #368571

Fehler behoben: So sieht der Code jetzt aus:

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	6.1.0
 * @author	hikashop.com
 * @copyright	(C) 2010-2025 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
$this->fieldsClass->prefix = '';
$displayTitle = false;
ob_start();
foreach ($this->fields as $fieldName => $oneExtraField) {
	$value = '';
	if(empty($this->element->$fieldName) && !empty($this->element->main->$fieldName))
		$this->element->$fieldName = $this->element->main->$fieldName;
	if(isset($this->element->$fieldName))
		$value = trim($this->element->$fieldName);
	if(!empty($value) || $value === '0' || $oneExtraField->field_type == 'customtext') {
		$displayTitle = true;
	$oneExtraField->currentElement = $this->element;
	?>
		<tr class="hikashop_product_custom_<?php echo $oneExtraField->field_namekey;?>_line">
			<td class="key">
				<span id="hikashop_product_custom_name_<?php echo $oneExtraField->field_id;?>" class="hikashop_product_custom_name">
					<?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
				</span>
			</td>
			<td>
				<span id="hikashop_product_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikashop_product_custom_value">
					<?php echo $this->fieldsClass->show($oneExtraField,$value); ?>
				</span>
			</td>
		</tr>
	<?php
	}
}
$specifFields = ob_get_clean();
if($displayTitle){
?>

<div id="hikashop_product_custom_info_main" class="hikashop_product_custom_info_main">
<?php
	if($this->productlayout != 'show_tabular') {
?>
	<h2><?php echo JText::_('SPECIFICATIONS');?></h2>
<?php
	}
?>
	<table>
      <thead>
    <tr>
      <th>Titel</th>
      <th>Beschreibung</th>
    </tr>
  </thead>
	<?php echo $specifFields; ?>
   <td class="key">				<span>					<?php echo "Artikelnummer";?>				</span>			</td>	
        <td>				<span id="hikashop_product_custom_value_<?php echo $oneExtraField->field_id;?>" class="hikashop_product_custom_value">					<?php echo $this->element->product_code; ?>				</span>			</td>		
	</table>
</div>
<?php }

Last edit: 11 hours 50 minutes ago by nicolas.

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

  • Posts: 23
  • Thank you received: 0
  • Hikashop Business
13 hours 17 minutes ago #368572

Now I'm still missing a table heading for the weight selection: neu.shop.kreationen-seidel.de/stollen/pr...tollen-spitzenklasse
Which file do I need to edit?

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 hours 46 minutes ago #368574

Hi,

The weight selection on this page comes from a characteristic. So, similar to the specifications, you can edit the view file product / show_block_characteristic via the menu Display>Views and add the thead in the table there.

To find which view files to edit in HikaShop, you can use the "Display view files" setting of the HikaShop configuration. I would recommend you try it out. It helps a lot when you need to customize HikaShop views.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum