• Resolved adetjen

    (@adetjen)


    Hi,

    I need to add the table from Additional information tab to the sofrt description, before the add to cart button.

    I have tried many options but I could not solved it.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @adetjen ,

    That’s an interesting idea.

    The additional tab shows you information like size, weight, attributes, etc.

    You can use this example code in your theme’s functions.php file to show additional information just before the add to cart button –

    add_action( 'woocommerce_before_add_to_cart_button', 'additional_info_under_add_to_cart', 35 );
    function additional_info_under_add_to_cart() {
        global $product;
    
        if ( $product && ( $product->has_attributes() || apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ) ) ) {
            wc_display_product_attributes( $product );
        }
    }

    I took the suggestion from here and modified it a bit for your requirement.

    I hope the above information helps.

    Thank you ??

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding “additional_information” tab to Short Description’ is closed to new replies.