• Resolved mllapan

    (@mllapan)


    Hi.

    I have advanced custom fields, I generated shortcode for it, everything works, but is there possibility that I can by default have this field hooked onto second tab place without manually picking field for every single product?

    I have field “NAMER” for example.
    It is predefined field, and it is showing ACF meta_key value.
    But, the problem is I still have to add it manually in single product.

    First field would be description, second field would automatically be hooked by this ACF shortcode, then if I add new fields they will go from 3rd place and up.

    Possible?

Viewing 1 replies (of 1 total)
  • Plugin Author Web Builder 143

    (@webbuilder143)

    Hi @mllapan

    Yes, it’s possible! You can achieve this by using the global tabs option. Follow these steps:

    1. Navigate to Products -> Tabs -> Add New to create a new global tab.
    2. While creating the global tab, assign it to multiple products by selecting the relevant product categories or tags.
    3. In the tab content, include your ACF shortcode (e.g., [your_acf_shortcode]) to display the ACF meta_key value.
    4. To place this tab in the second position, adjust the tab position option in the tab edit screen. Refer to this help doc for detailed instructions on tab positioning.

    This way, the ACF field will automatically be hooked onto the second tab for all selected products, without the need to manually edit each product.

    For further customization, you can use the following filter hook wb_cptb_alter_tab_content to alter the tab content programmatically before printing.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.