remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
add_action( 'woocommerce_output_product_data_tabs', 'woocommerce_single_product_summary', 60 );
<table class="loop_table loop" cellspacing="0" style="width:96%;">
<thead style="background:#ededed;">
<tr>
<th class="product_table"><?php _e( 'Analysis', 'woocommerce' ); ?></th>
</tr>
</thead>
<tbody>
<?php
}
add_action('woocommerce_after_shop_loop', 'table_loop_closetag',9);
function table_loop_closetag( ) {
?>
</tbody></table>
<?php
} ?>
<?php if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $product;
echo apply_filters( 'woocommerce_loop_add_to_cart_link',
sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>',
esc_url( $product->add_to_cart_url() ),
esc_attr( isset( $quantity ) ? $quantity : 1 ),
esc_attr( $product->get_id() ),
esc_attr( $product->get_sku() ),
esc_attr( isset( $class ) ? $class : 'button' ),
esc_html( $product->add_to_cart_text() )
),
$product );?>
<tr>
<td class="product_table"><?php the_title(); ?></td>
<td class="product_table"><?php echo apply_filters( 'the_content', $product->sku ) ?></td>
<td class="product_table"><?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ) ?></td>
<td class="product_table"><?php echo apply_filters( 'the_content', $post->post_content ) ?></td>
<td class="product_table"><?php do_action( 'woocommerce_after_shop_loop_item_title' ); ?></td>
<td class="product-table"><button type="submit" class="single_add_to_cart_button button alt"><?php echo $product->single_add_to_cart_text();?></button></td>
</tr>
<a href="/ссылка/?add-to-cart=и здесь генерировать id"
Но как это сделать пока не разобрался.
<div id="name" rebest='yes'>
а не кнопку