Advertisement
hmbashar

Untitled

May 4th, 2020
1,749
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. // Add "additional information" after add to cart
  2. add_action( 'woocommerce_single_product_summary', 'additional_info_under_add_to_cart', 35 );
  3. function additional_info_under_add_to_cart() {
  4.     global $product;
  5.  
  6.     if ( $product && ( $product->has_attributes() || apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ) ) ) {
  7.         wc_display_product_attributes( $product );
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement