add a tab in the tabular view

  • Posts: 1125
  • Thank you received: 12
  • Hikashop Business
2 hours 12 minutes ago #369548

-- HikaShop version -- : 6.1.1
-- Joomla version -- : 5.4.0
-- PHP version -- : 8.3

HI!

I added a new tab by following the instructions but i must be doing something wrong. I want to add a dynamic content in the custom field, this is my code:

<li id="hikashop_show_tabular_custom_li" class="hikashop_tabs_li ui-corner-top"><?php echo JText::_('YOUR_TAB_NAME');?></li>
 <div class="hikashop_tabs_content" id="hikashop_show_tabular_custom">
<?php echo $this->element->hrisiprofulakseis;?>
</div>

But i can't quite figure out the part "Then add a div with content after the "ul" thanks to:"
Where excactly should i put the div? Cause it doesn't show correctly in the product so far

This is the whole ul code i have:
<ul class="hikashop_tabs_ul">
		   
<!-- DESCRIPTION TAB TITLE -->
<?php if(!empty($description) || !empty ($this->element->product_url)) {
		if(empty($selected)) $selected = 'hikashop_show_tabular_description'; ?>
			<li id="hikashop_show_tabular_description_li" class="hikashop_tabs_li ui-corner-top"><?php echo JText::_('PRODUCT_DESCRIPTION');?></li>
<?php } ?>
<!-- EO DESCRIPTION TAB TITLE -->
<!-- SPECIFICATION TAB TITLE -->
<?php if(!empty($specif_tab_content)) {
		if(empty($selected)) $selected = 'hikashop_show_tabular_specification'; ?>
			<li id="hikashop_show_tabular_specification_li" class="hikashop_tabs_li ui-corner-top"><?php echo JText::_('SPECIFICATIONS');?></li>
          
<?php } ?>
<!-- EO SPECIFICATION TAB TITLE -->





<li id="hikashop_show_tabular_custom_li" class="hikashop_tabs_li ui-corner-top"><?php echo JText::_('YOUR_TAB_NAME');?></li>
 <div class="hikashop_tabs_content" id="hikashop_show_tabular_custom">
<?php echo $this->element->hrisiprofulakseis;?>
</div>





<!-- VOTE TAB TITLE -->
<?php if(in_array($status_vote, array('comment', 'two', 'both'))) {
		if(empty($selected)) $selected = 'hikashop_show_tabular_comment';
		if($comments_count != 0) { ?>
			<li id="hikashop_show_tabular_comment_li" class="hikashop_tabs_li ui-corner-top"><?php echo JText::_('PRODUCT_COMMENT');?><?php if($comments_count>0) echo ' ('.$comments_count.')'; ?></li>
<?php } ?>
			<li id="hikashop_show_tabular_new_comment_li" class="hikashop_tabs_li ui-corner-top"><?php echo JText::_('PRODUCT_NEW_COMMENT');?></li>
<?php } ?>
<!-- EO VOTE TAB TITLE -->
		</ul>
.

Thank you!

Last edit: 2 hours 11 minutes ago by verzevoul.

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

Time to create page: 0.052 seconds
Powered by Kunena Forum