Wp-calypso: Simple Payments: Block does not render in published view with Gutenberg 6.5

Created on 18 Sep 2019  路  2Comments  路  Source: Automattic/wp-calypso

This was found by E2E tests https://github.com/Automattic/wp-calypso/pull/36142 and confirmed by @mmtr

The Simple Payments block is currently broken on Horizon. It can be inserted and saved, but it is not rendered on the front-end.

Let's investigate and either fix on our end, or report the related issue if we found a bug for the core project.

[Goal] Gutenberg [Pri] BLOCKER [Type] Bug

Most helpful comment

All 2 comments

Seems to be because the block saveProduct() method is calling saveEntityRecord and this is returning null and so no productId is set and the block does not then save the required short code [simple-payment id="{productId}"] to the post content - with the short code missing nothing is rendered on the frontend.

Was this page helpful?
0 / 5 - 0 ratings