Archived topic
How to move add to cart and price below description?
3 replies · Started by B on May 10, 2022
Hi.
On a single product Woocommerce page, I'm trying to move the add to cart button and price below the text of the description, but I can't seem to do it right, and I've dug through the GP forums endlessly. Full disclosure: I'm using this code to remove all the tabs of the product:
add_filter( 'woocommerce_product_tabs', 'woocommerce_template_product_description_reviews', 40 );
function woocommerce_template_product_description_reviews() {
woocommerce_get_template( 'single-product/tabs/description.php' );
;}
// Remove the product description Title
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 98 );
add_filter( 'woocommerce_product_description_heading', '__return_null' );
Here's a screenshot:
Hi there,
By default, the add to cart should be below the description:
https://gpsites.co/seller/product/happy-ninja-hoodie/
Can you try removing your snippets to see if it's causing the issue?
Hi thanks. Removing the snippets just replaces the tabs at the bottom (Description / Additional Information) which I'm trying to remove. I'm trying to keep the text of Description without the tab.
The layout I'm trying to get:
[ IMAGE ] [ DESCRIPTION ]
then at the bottom:
[ PRICE ] [ ADD TO CART ]
If that helps?
Hi there,
You can remove the tabs at customizer > layout > Woocommerce > single product, uncheck the Display product tabs box.
But Description is in the tab, maybe try using short description instead?