Support rendering of drupal-render-placeholder tags

Created on 15 October 2024, 6 months ago

Problem/Motivation

In the twig file of sidebar provided by commerce_cart_flyout we tried to add a custom block we have to display cross selling products. The block was correctly rendered but the "Add to cart" buttons of these products were missing; only <drupal-render-placeholder...> was printed instead of the actual button and form elements due to the lazy builders of Commerce.

Proposed resolution

Set the second parameter of $this->renderer->render<code> in <code>CartBlock::renderTemplate() to TRUE.

Remaining tasks

Check what else is affected if we introduce this change.

User interface changes

None expected.

API changes

None expected.

Data model changes

None expected.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇬🇷Greece vensires

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024