• Resolved avizomc

    (@avizomc)


    Is it possible to import content from specification tab into short descripton of the product ?

Viewing 1 replies (of 1 total)
  • Plugin Author Dornaweb

    (@dornaweb)

    Yes, you can use the [specs-table] shortcode anywhere in the loop.
    You could also use the dw_get_table_result( $post_id ) php function if you need more customization.

    In your case, to add the table to short description section you can do something like this:

    
    add_filter( 'woocommerce_short_description', 'custom_woocommerce_short_description' );
    
    function custom_woocommerce_short_description( $description ) {
    	global $post;
    
    	$description = $description . do_shortcode( '[specs-table]' );
    
    	return $description;
    }
    
    • This reply was modified 9 years, 3 months ago by Dornaweb.
    • This reply was modified 9 years, 3 months ago by Dornaweb.
Viewing 1 replies (of 1 total)

The topic ‘Specification in short description’ is closed to new replies.