Skip to content
Advertisement

Displaying full product description on product lightbox

Is there a WooCommerce add_action to display the full product description, this is the text found in the main text edit window (not the Product short description)

After a quick google search I was only able to find advice on adding the short description. The woocommerce_template_single_excerpt.

I’m trying to add it after the woocommerce_show_product_saleflash.

The light-box php is shown below.

JavaScript

Advertisement

Answer

The full product description is set in a tab, so the corresponding template is located in:
single-products/tabs/description.php.

You can unset easily this tab: Editing product data tabs (Removing tabs)

Then you can add this code anywhere, using any hook (the code from description.php template):

JavaScript

You can also use:

JavaScript

Or (if the WC_Product object is available):

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement