Adding a custom field to tab layout
9 years 4 months ago #270748
by renem
Adding a custom field to tab layout was created by renem
-- 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é
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.
9 years 4 months ago - 9 years 4 months ago #270752
by Philip
Replied by Philip on topic Adding a custom field to tab layout
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
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: 9 years 4 months ago by Philip.
Please Log in or Create an account to join the conversation.
9 years 4 months ago #270915
by renem
Replied by renem on topic Adding a custom field to tab layout
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é
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.
9 years 4 months ago #270919
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Adding a custom field to tab layout
Hello,
I'm afraid that you did not provide any information or link which allow the support team to have a look.
Regards,
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.
Please Log in or Create an account to join the conversation.
9 years 4 months ago - 9 years 4 months ago #270942
by renem
Replied by renem on topic Adding a custom field to tab layout
Sorry Philip i used the wrong button 
Link:
So in the source the data is present but not shown as a tab.
Kind regards.
Link:
This message contains confidential information
So in the source the data is present but not shown as a tab.
Code:
<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. </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: 9 years 4 months ago by renem.
Please Log in or Create an account to join the conversation.
9 years 4 months ago #270950
by nicolas
Replied by nicolas on topic Adding a custom field to tab layout
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
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.
9 years 4 months ago #270973
by renem
Replied by renem on topic Adding a custom field to tab layout
Thanks Nicolas, how do i add an title between these tags?
Please Log in or Create an account to join the conversation.
9 years 4 months ago #270975
by nicolas
Replied by nicolas on topic Adding a custom field to tab layout
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>
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.
9 years 4 months ago #270987
by renem
Replied by renem on topic Adding a custom field to tab layout
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.
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.220 seconds