Thanks lorro,
I figured it out – the following code in functions.php works for me –
but thanks for your help!
Till
@ https://www.mobiflora.de
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 );
add_action( ‘woocommerce_single_product_summary’, ‘mobiflora_single_add_to_cart’, 30 );
function mobiflora_single_add_to_cart(){
global $product;
if ( ! $product->add_to_cart_url() ) {
return;
}
$product_url = $product->add_to_cart_url();
$button_text = $product->single_add_to_cart_text();
do_action( ‘woocommerce_before_add_to_cart_button’ ); ?>
<p class=”cart”>
‘)” href=”<?php echo esc_url( $product_url ); ?>” target=”_blank” rel=”nofollow” class=”single_add_to_cart_button button alt”><?php echo esc_html( $button_text ); ?>
</p>
<?php do_action( ‘woocommerce_after_add_to_cart_button’ );
}