Problem with Layout Builder module

Created on 26 March 2018, over 7 years ago
Updated 19 August 2025, 2 months ago

When we edit display in product, module dc_ajax_add_cart not work correctly.

Error:

Error: Call to a member function getDefaultVariation() on null in Drupal\dc_ajax_add_cart\ProductLazyBuilders->ajaxAddToCartForm() (line 59 of /web/modules/contrib/dc_ajax_add_cart/src/ProductLazyBuilders.php) 

Because in ajaxAddToCartForm parameter product id is not passed.

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024