Skip Navigation

[Resolved] Toolset blocks deletes paragraphes in product description in Divi theme builder

This thread is resolved. Here is a description of the problem and solution.

Problem:

The problem here is that the user is using the single field block to display their woocommerce product description field but their formatting is being stripped out.

Solution:
The Woocommerce product field is a modified version of the default Post Excerpt field and Woocommerce has a special API to handle this internally. When displaying this field with our View Blocks it will retrieve the field's value using the wordpress default excerpt API. This means that the formatting will be stripped.

To work around this you can create a WYSIWYG custom field and then place your product description in this field.

This support ticket is created 2 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Marcel 2 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2382151

Hi,

I made a product template with Divi's theme builder, but the paragraphs (enters) in the product description get deleted when Toolset blocks is active as well. If I deactivate Toolset Blocks, everything works as expected.

#2382217

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Marcel,

Thank you for getting in touch.

From what i've seen the Product Description field is essentially a modified version of the excerpt field. By default Toolset will strip any formatting details from this field because it is essentially an excerpt field and we pull the excerpt field using the wordpress default methods.

My suggestion here is that you create a custom WYSIWYG field to replace this field so that your formatted texts will display as intended.

Thanks,
Shane

#2382759

Hi Shane,

That works, thanks. Not ideal since there's still the default product description textarea in the admin area that can't be removed in Toolset settings, but it works.