Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Discussion options

You must be logged in to vote

Since the ProductSummary component uses the short description if it is not empty and the "full description" otherwise

const source = shortDescription ? shortDescription : fullDescription;

I can achieve a simple solution using PHP filters. For variations for example, you can use woocommerce_product_variation_get_short_description. In the callback, conditional tags are used to check whether you are in the cart or checkout block. So for instance, I can output the short description of the parent product followed by the description of the variation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by larsenlarsson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant