Display WooCommerce product length


[wcj_product_length] shortcode displays WooCommerce product length.


(optional) Text to place before the content. If content is empty this argument is ignored.

Default: None
(optional) Text to place after the content. If content is empty this argument is ignored.

Default: None


[wcj_product_length before="Length: "]
Accessible through:
  • [wcj_product_length]
Tested on WooCommerce 4.2.0 and WordPress 5.4.2
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply



  1. Pau June 19, 2017 at 10:37 am #

    hi there!

    I need display width and lenght for each product variant.
    I´ve tried with shortcode: [wcj_product_length] and [wcj_product_width] but it looks like doesn´t work with variable products, because display data only from the main product.

    Some way to do it? Thanks!

    Reply to thread

    • Booster Support Team June 20, 2017 at 6:08 pm #


      I’ve just made some changes to the plugin. Please download the development version here – https://booster.io/dev/. You will need to uninstall the old plugin version first (don’t worry your saved settings won’t disappear).

      I’m not sure on how I should output data for variable products. For now I only modified [wcj_product_weight] shortcode, when we will figure out the required output format – I will make changes to all remaining shortcodes. At the moment variable products data is outputted as HTML table – please take a look if that’s ok. You’ll need to add variations="yes" attribute to the shortcode, like this:

      [wcj_product_weight variations="yes"]

      Please let me know what you think.

      Best regards,

      Booster Support Team
    • Pau June 21, 2017 at 8:49 am #

      Thanks! you´re amazing

      Tested with weight and works.

      Just a usability recommendation, in product page:

      If there are many variations, maybe better show only the data for the selected variation or we will have a list too long.

      In my opinion is important this option available for display weight/lenght/width variation in the cart.


    • Pau June 21, 2017 at 8:55 am #

      I mean, about info in the cart:

      the same way, better if only is displayed data for the variation added to the cart

      If not, you´ll have huge lists and it could be confuse.


    • Booster Support Team June 21, 2017 at 8:13 pm #


      Thanks. I’ve just update the dev version, please re-download (https://booster.io/dev/). Now I’ve added same variations attribute to all [wcj_product_length], [wcj_product_width], [wcj_product_height] and [wcj_product_dimensions] shortcodes.

      Regarding info in cart – I’m not sure I understood you correctly. Do you mean you want to display product dimensions in cart page? If that’s the case – are you using Booster’s “Cart Items Table Custom Info” section in “WooCommerce > Settings > Booster > Cart & Checkout > Cart Custom Info” for this?

      Best regards,

      Booster Support Team