Home Forums WoodMart support forum hooks in child themee

hooks in child themee

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #91314

    acauazum
    Participant

    Hi,I’m using the child theme,and trying to add this WooCommerce Hook: ‘woocommerce_after_single_product_summary’

    to this code below,This code below its from the plugin ACF custom fields
    I will show the custom fields on: ‘single product page Summary’.

    So,How to add that hook to this code below?

    <?php the_field( ‘explique_seu_passeio’ ); ?>
    <?php the_field( ‘cuidados_com_alimentacao_’ ); ?>
    <?php // destaque: ( array )
    $destaque__array = get_field( ‘destaque:’ );
    if ( $destaque__array ):
    foreach ( $destaque__array as $destaque__item ):
    echo $destaque__item[‘value’];
    endforeach;
    endif; ?>

    <?php the_field( ‘_condicoes_gerais_do_passeio_’ ); ?>
    <?php the_field( ‘opcoes_de_embarque_’ ); ?>
    <?php the_field( ‘recomendacoes’ ); ?>
    <?php the_field( ‘locais_visitados_’ ); ?>
    <?php // tipo_de_transporte ( array )
    $tipo_de_transporte_array = get_field( ‘tipo_de_transporte’ );
    if ( $tipo_de_transporte_array ):
    foreach ( $tipo_de_transporte_array as $tipo_de_transporte_item ):
    echo $tipo_de_transporte_item[‘value’];
    endforeach;
    endif; ?>

    <?php // esta_incluido ( value )
    $esta_incluido_array = get_field( ‘esta_incluido’ );
    if ( $esta_incluido_array ):
    foreach ( $esta_incluido_array as $esta_incluido_item ):
    echo $esta_incluido_item;
    endforeach;
    endif; ?>

    <?php // marque_todas_as_opcoes_que_nao_estao_inclusas_ ( value )
    $marque_todas_as_opcoes_que_nao_estao_inclusas__array = get_field( ‘marque_todas_as_opcoes_que_nao_estao_inclusas_’ );
    if ( $marque_todas_as_opcoes_que_nao_estao_inclusas__array ):
    foreach ( $marque_todas_as_opcoes_que_nao_estao_inclusas__array as $marque_todas_as_opcoes_que_nao_estao_inclusas__item ):
    echo $marque_todas_as_opcoes_que_nao_estao_inclusas__item;
    endforeach;
    endif; ?>

    <?php // linguas_faladas ( value )
    $linguas_faladas_array = get_field( ‘linguas_faladas’ );
    if ( $linguas_faladas_array ):
    foreach ( $linguas_faladas_array as $linguas_faladas_item ):
    echo $linguas_faladas_item;
    endforeach;
    endif; ?>

    #91326

    Artem Temos
    Keymaster

    Hi,

    You can find an information about WooCommerce hooks usage in the plugin’s documentation https://docs.woocommerce.com/document/introduction-to-hooks-actions-and-filters/

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)