Title: Daniel's Replies | WordPress.org

---

# Daniel

  [  ](https://wordpress.org/support/users/ddumondgmailcom/)

 *   [Profile](https://wordpress.org/support/users/ddumondgmailcom/)
 *   [Topics Started](https://wordpress.org/support/users/ddumondgmailcom/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ddumondgmailcom/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ddumondgmailcom/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ddumondgmailcom/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ddumondgmailcom/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ddumondgmailcom/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 103 total)

1 [2](https://wordpress.org/support/users/ddumondgmailcom/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/ddumondgmailcom/replies/page/3/?output_format=md)…
[5](https://wordpress.org/support/users/ddumondgmailcom/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/ddumondgmailcom/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/ddumondgmailcom/replies/page/7/?output_format=md)
[→](https://wordpress.org/support/users/ddumondgmailcom/replies/page/2/?output_format=md)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Storefront] Missing files / 404s in last version 4.4.0](https://wordpress.org/support/topic/missing-files-404s-in-last-version-4-4-0/)
 *  [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-files-404s-in-last-version-4-4-0/#post-16901666)
 * I can also confirm that 4.4.1 resolves this issue! 👍
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Storefront] Missing files / 404s in last version 4.4.0](https://wordpress.org/support/topic/missing-files-404s-in-last-version-4-4-0/)
 *  [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-files-404s-in-last-version-4-4-0/#post-16901657)
 * The files were indeed missing from the assets/js folder. I resolved it by downloading
   the previous version and replacing the assets/js folder with the older one which
   contained the missing files.
   Problem solved!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Storefront] Missing files / 404s in last version 4.4.0](https://wordpress.org/support/topic/missing-files-404s-in-last-version-4-4-0/)
 *  [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/missing-files-404s-in-last-version-4-4-0/#post-16891062)
 * Same here! The hero is not expanding or showing type as a result: [https://testlab.dreamhosters.com](https://testlab.dreamhosters.com)
   
   This is a bare theme, no plugins, but woocommerce.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Add Product Weight and Dimensions to Invoice](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/#post-16417207)
 * Thanks to the awesome help of Moksha, here’s the code to add product dimensions
   to the invoice…
 *     ```wp-block-code
       Here's the code for your refernce:
       function add_product_dimensions( $product_name, $item ) {
           $product_id    = $item['product_id'];
           $product = $item->get_product();
           if ($product->has_dimensions()) {
               $dimensions = wc_format_dimensions( $product->get_dimensions(false) );
               echo $product_name;
               echo '<br><strong>Dimensions: </strong>' . $dimensions;
           } else {
               echo $product_name;
           }
       }
       add_filter( 'wcdn_order_item_name', 'add_product_dimensions', 10, 2 );
       ```
   
    -  This reply was modified 3 years, 6 months ago by [Daniel](https://wordpress.org/support/users/ddumondgmailcom/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Add Product Weight and Dimensions to Invoice](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/#post-16395241)
 * Thanks to the help of ChatGDP I was able to get the dimensions to print, but 
   I’d like them to appear with each product rather than up by the weight… Is this
   possible? 
   Here’s the code I used:
 *     ```wp-block-code
       function invoice_custom_field( $fields, $order ) {
           $new_fields = array();
   
       	// print_r($order); 
           if( get_post_meta( $order->get_id(), '_cart_weight', true ) ) {
               $new_fields['_cart_weight'] = array( 
                   'label' => 'Order Weight',
                   'value' => get_post_meta( $order->get_id(), '_cart_weight', true )
               );
           }
   
           $items = $order->get_items();
           foreach ($items as $item) 
               $product = $item->get_product();
               $dimensions = wc_format_dimensions( $product->get_dimensions(false) );
               $fields[] = array(
                   'label' => 'Dimensions',
                   'value' => $dimensions,
               );
           }
   
           return array_merge( $fields, $new_fields );
       }
       add_filter( 'wcdn_order_info_fields', 'invoice_custom_field', 10, 2 );
       ```
   
 * Here’s how it shows:
 * ![](https://i0.wp.com/snipboard.io/lCL7bc.jpg?ssl=1)
 * Please help! 🙏
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Add Product Weight and Dimensions to Invoice](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/#post-16373700)
 * Hey Moksha,
 * Thanks again for your help with the cart weight, but I’m still working on displaying
   the “dimensions”, or at least the “width” of each product.
   Using your sample 
   code below I’ve tried the fields “dimensions” and “_dimensions” and also “width”
   and “_width”, and none seem to show up on the invoice after submitting a new 
   order.Am I using the wrong fields, or is something else missing?
 *     ```wp-block-code
       function invoice_custom_field( $fields, $order ) {
           $new_fields = array();
   
       	// print_r($order); 
           if( get_post_meta( $order->get_id(), '_cart_weight', true ) ) {
               $new_fields['_cart_weight'] = array( 
                   'label' => 'Order Weight',
                   'value' => get_post_meta( $order->get_id(), '_cart_weight', true )
               );
           }
   
           if( get_post_meta( $order->get_id(), '_dimensions', true ) ) {
               $new_fields['_dimensions'] = array( 
                   'label' => 'Dimensions',
                   'value' => get_post_meta( $order->get_id(), '_dimensions', true )
               );
           }
   
           return array_merge( $fields, $new_fields );
       }
       add_filter( 'wcdn_order_info_fields', 'invoice_custom_field', 10, 2 );
       ```
   
 * Thanks again for your help!! 😊</img>
   Daniel
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Add Total Cart Weight to Invoice](https://wordpress.org/support/topic/add-total-cart-weight-to-invoice/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/add-total-cart-weight-to-invoice/#post-16371009)
 * Moksha! You sir are a ROCK STAR! 👏 Thank you so much!! 🙏
    -  This reply was modified 3 years, 7 months ago by [Daniel](https://wordpress.org/support/users/ddumondgmailcom/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Add Total Cart Weight to Invoice](https://wordpress.org/support/topic/add-total-cart-weight-to-invoice/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/add-total-cart-weight-to-invoice/#post-16364030)
 * Hi Moksha, 
   I included the code I used above in functions.phpThat code will put
   the total cart weight of new orders underneath the billing info.
 * ![](https://i0.wp.com/snipboard.io/N8ZS2X.jpg?ssl=1)
 * Is there a hook I can use so that it would display underneath the email in the
   invoice instead?
 * ![](https://i0.wp.com/snipboard.io/SujdEK.jpg?ssl=1)
    -  This reply was modified 3 years, 7 months ago by [Daniel](https://wordpress.org/support/users/ddumondgmailcom/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Add Product Weight and Dimensions to Invoice](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/#post-16363993)
 * Hi Moksha, 
   I have posted here to help the community, but I can send you an email
   if you prefer.As mentioned in my original post, replacing ‘your_meta_field_name’
   with ‘width’ did not work in this case.Thanks! Daniel
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TranslatePress - Translate Multilingual sites with AI Translation] Excerpts Not Translating in Divi Blog Module](https://wordpress.org/support/topic/excerpts-not-translating-in-divi-blog-module/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/excerpts-not-translating-in-divi-blog-module/#post-16354760)
 * Hello and thanks for your reply.
   I’m not saying that excerpts CAN’T be translated.
   The problem is that they HAVE to be translated, manually.It does not seem to 
   automatically generate an excerpt from the translated post, but rather creates
   a new string for it.Is this something you guys are aware of?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Add Product Weight and Dimensions to Invoice](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/add-product-weight-and-dimensions-to-invoice/#post-16352337)
 * If it helps I was able to display the weight as meta on the admin/order page 
   with:
 *     ```wp-block-code
       add_action( 'woocommerce_after_order_itemmeta', 'zlp_show_weight_admin_order_item_meta', 10, 3 );
   
       function zlp_show_weight_admin_order_item_meta( $item_id, $item, $product ) {
       // Only "line" items and backend order pages
       if( ! ( is_admin() && $item->is_type('line_item') ) ) return;
       // IF PRODUCT OR IT'S VARIATION HAS WEIGHT
       if($product->get_weight()){ ?>
   
       get_weight())." ".get_option('woocommerce_weight_unit'); ?>
   
       <?php }
       }
       ```
   
 * ![](https://i0.wp.com/snipboard.io/i7fdlp.jpg?ssl=1)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] notice](https://wordpress.org/support/topic/notice-39/)
 *  [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/notice-39/#post-16277532)
 * Same here! Forms are all messed up too with big gaps between each line. Hoping
   for a quick fix soon!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Page Caching Not Detected](https://wordpress.org/support/topic/page-caching-not-detected/)
 *  [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/page-caching-not-detected/#post-16192832)
 * This is what I was looking for! Look forward to the update!
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Orders going from “Pending Payment” to “Complete”](https://wordpress.org/support/topic/orders-going-from-pending-payment-to-complete/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/orders-going-from-pending-payment-to-complete/#post-15010166)
 * Figured it out. It’s because there was no actual product added to the order, 
   only fees — hence nothing to process.
 * I created a generic product for custom orders… Problem solved,
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Orders going from “Pending Payment” to “Complete”](https://wordpress.org/support/topic/orders-going-from-pending-payment-to-complete/)
 *  Thread Starter [Daniel](https://wordpress.org/support/users/ddumondgmailcom/)
 * (@ddumondgmailcom)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/orders-going-from-pending-payment-to-complete/#post-15010039)
 * PS: I’m using “WooCommerce Stripe Gateway”

Viewing 15 replies - 1 through 15 (of 103 total)

1 [2](https://wordpress.org/support/users/ddumondgmailcom/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/ddumondgmailcom/replies/page/3/?output_format=md)…
[5](https://wordpress.org/support/users/ddumondgmailcom/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/ddumondgmailcom/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/ddumondgmailcom/replies/page/7/?output_format=md)
[→](https://wordpress.org/support/users/ddumondgmailcom/replies/page/2/?output_format=md)