Adding New Product Tabs - by CharlestonS

This topic has 10 replies, 2 voices, and was last updated 9 years, 3 months ago ago by Eva Kemp

  • Avatar: CharlestonS
    CharlestonS
    Participant
    August 18, 2015 at 05:30

    I need to add two new tabs which pull information from the custom_tab2 and custom_tab3 fields, how can i go about this?

    I was able to add a single tab via the WooCommerce tutorial but when iadd a second using the same method the theme stops working and i can’t figure how to get the tab to pull from one of the custom fields in the product.

    Thanks in advance!

    9 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    August 18, 2015 at 08:14

    Hello,

    Please provide us with FTP and wp-admin panel credentials in Private Content and specify what tab you want to create.

    Regards,
    Eva Kemp.

    Avatar: CharlestonS
    CharlestonS
    Participant
    August 18, 2015 at 18:40

    Thank you, here you go.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    August 19, 2015 at 10:27

    Hello,

    You need add content for the tab “Full Ingredient List” in Theme Options > Single Product Page > Return (as I see you’ve added tab title “Full Ingredient List” in there).
    As I see you’ve added custom tab code in woo.php file, but it must be added in functions.php file in wp-content/themes/woopress directory as shown in Woocommerce documentation:
    http://storage5.static.itmages.com/i/15/0819/h_1439976335_9789899_2de10978ca.png .
    Please correct it.
    And write tab content in the section echo '<p>Key Ingredients go Here</p>'; instead of “Key Ingredients go Here”.

    Regards,
    Eva Kemp.

    Avatar: CharlestonS
    CharlestonS
    Participant
    August 24, 2015 at 03:28

    Ok, so what line of code do i put instead of ‘Key Ingredients go Here’ to reference the custom tabs 1 and 2?

    Avatar: Eva
    Eva Kemp
    Support staff
    August 24, 2015 at 09:00

    Hello,

    You need write the content of custom_tab1 or custom_tab_2 in there (the text you want to display in the tab).

    Regards,
    Eva Kemp.

    Avatar: CharlestonS
    CharlestonS
    Participant
    August 24, 2015 at 09:12

    No, i need the tab to pull the content from the custom tab fields i have for each product. This information is be unique for each product.

    I already have the tabs setup in each product i just need to know what line of code i need to add to pull the content from those tabs.

    I need to pull the content from custom_tab2 and custom_tab3 respective to the product it’s on.

    Thanks in advance.

    Avatar: Eva
    Eva Kemp
    Support staff
    August 25, 2015 at 12:55

    Hello,

    I’ve added this code in functions.php file to show the content of custom tab “Key Ingredients”:
    echo do_shortcode(etheme_get_custom_field('custom_tab1'));
    Please check it now.

    Regards,
    Eva Kemp.

    Avatar: CharlestonS
    CharlestonS
    Participant
    August 26, 2015 at 06:04

    Great! That worked, thank you!

    Avatar: Eva
    Eva Kemp
    Support staff
    August 26, 2015 at 09:47

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 10 results - 1 through 10 (of 10 total)

The issue related to '‘Adding New Product Tabs’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.