Adding a custom field to tab layout

  • Posts: 198
  • Thank you received: 7
7 years 5 months ago #270748

-- HikaShop version -- : 3.1.0

Hi l like to have an custom field displayed on the tab layout. On tab 1 i have Description already.
So i'd like to have a custom field on tab 2 as an example


How to handle?


Kind regards René

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

  • Posts: 4753
  • Thank you received: 644
  • MODERATOR
7 years 5 months ago #270752

Hello,

First of all, you have to create a product custom field, you can learn more about how to manage it, here .
Second step, in your required tab listing, and go to "HikaShop (Products or Categories) options", and then look for "Product features display" part, you have "Custom item fields" option to switch ON, learn more about this, here .

Hope this will help you.

Regards

Last edit: 7 years 5 months ago by Philip.

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

  • Posts: 198
  • Thank you received: 7
7 years 5 months ago #270915

Hi Philip,

When i look in the source the data is precent but not shown in a tab.

Please take a look over here
Part of the message is hidden for the guests. Please log in or register to see it.


Kind regards René

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
7 years 5 months ago #270919

Hello,

I'm afraid that you did not provide any information or link which allow the support team to have a look.

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: 198
  • Thank you received: 7
7 years 5 months ago #270942

Sorry Philip i used the wrong button :-)

Link:

This message contains confidential information


So in the source the data is present but not shown as a tab.
<div id="hikashop_tabs_div">
		<ul class="hikashop_tabs_ul">
			<li id="hikashop_show_tabular_description_li" class="hikashop_tabs_li ui-corner-top">Beschrijving</li>
			<li id="hikashop_show_tabular_specification_li" class="hikashop_tabs_li ui-corner-top"></li>
		</ul>
		<div class="hikashop_tabs_content" id="hikashop_show_tabular_description">
			<div id="hikashop_product_description_main" class="hikashop_product_description_main" itemprop="description"><p><strong>Wijzonol LBH 4SO Hoogglanslak, in elke kleur gemengd.</strong></p>
<p>Hoogglanzende aflak met een zeer goede buitenduurzaamheid op basis van urethan-alkydhars.</p>
<ul>
<li>zeer goede buitenduurzaamheid</li>
<li>mooie strakke vloeiing</li>
<li>uitstekend standvermogen en (kanten)dekking</li>
<li>fraaie hoogglans met langdurig glansbehoud</li>
<li>hele jaar door te verwerken "4-seizoenen"</li>
<li>goede aanvangsdroging</li>
</ul>
<p><span style="text-decoration: underline;">Toepassing</span> Als hoogglans aflak in LBH -systemen op voorbehandeld hout, metaal en kunststof, buiten.&nbsp;</p></div>
			<span id="hikashop_product_url_main" class="hikashop_product_url_main"></span>
		</div>
				<div class="hikashop_tabs_content" id="hikashop_show_tabular_specification">Merk: <a href="/aanbiedingen/categorie/wijzonol">Wijzonol</a><span style='display:none;' itemprop='brand'>Wijzonol</span><div id="hikashop_product_custom_info_main" class="hikashop_product_custom_info_main">
	<h4></h4>
	<table class="hikashop_product_custom_info_main_table">
				<tr class="hikashop_product_custom_csv_Adviesprijs € _line">
			<td class="key">
				<span id="hikashop_product_custom_name_23" class="hikashop_product_custom_name">
					<label for="csv_Adviesprijs € ">Adviesprijs € </label>				</span>
			</td>
			<td>
				<span id="hikashop_product_custom_value_23" class="hikashop_product_custom_value">
					40.30				</span>
			</td>
		</tr>
			<tr class="hikashop_product_custom_info_line">
			<td class="key">
				<span id="hikashop_product_custom_name_33" class="hikashop_product_custom_name">
					<label for="info">Info</label>				</span>
			</td>
			<td>
				<span id="hikashop_product_custom_value_33" class="hikashop_product_custom_value">
					<p>Dit is extra info</p>				</span>
			</td>
		</tr>
		</table>
</div></div>
		<input type="hidden" name="selected_tab" id="selected_tab" value="hikashop_show_tabular_description"/>
	</div>



Kind regards.

Last edit: 7 years 5 months ago by renem.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 5 months ago #270950

Hi,

The tab isn't appearing because you didn't enter any title for it between the <li> and </li> tags:
monosnap.com/file/g3HqrRE2CNesH5K9FqgZxab8ToVrCU

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

  • Posts: 198
  • Thank you received: 7
7 years 5 months ago #270973

Thanks Nicolas, how do i add an title between these tags?

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 5 months ago #270975

Hi,

You write it.
For example, you replace:
<li id="hikashop_show_tabular_specification_li" class="hikashop_tabs_li ui-corner-top"></li>
by:
<li id="hikashop_show_tabular_specification_li" class="hikashop_tabs_li ui-corner-top">My title</li>

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

  • Posts: 198
  • Thank you received: 7
7 years 5 months ago #270987

Hi Nicolas, finally i found what's happening. I'm using the dutch language and the text string "SPECIFICATIONS" isn't precent in this language.

So i added it by my own, and voila the tab is showing up now.

Kind regards.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum