Put price to the add to shopping cart button
-
Hello,
how can we move the price of the product right above the “add to shopping cart” button ?
Is there a theme option, a woo commerce option or does this has to be changed in code ?
Here is a visualization what i mean: https://www.evernote.com/l/AA-zD5OZaY1Ds5o0aj4_rnZ4ijWDb1fD_zw
Best wishes
Niels
Hello,
Unfortunately there is no such option in WooCommerce. But you can easily move it by adding the following code snippet to your child theme functions.php file
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 25);
Regards
Sorry, but this is only one way we can help you. Probably it doesn’t work because you have some plugins that rewrites your products page structure already.