Error gets thrown, if commerce product variation doesn't have a price set.

Created on 12 June 2024, 16 days ago
Updated 26 June 2024, 2 days ago

Problem/Motivation

Currently, when a commerce product variation doesn't have a price set, the following error gets thrown:

TypeError: Drupal\commerce_price\Rounder::round(): Argument #1 ($price) must be of type Drupal\commerce_price\Price, null given, called in /var/www/html/web/modules/contrib/facebook_pixel/modules/facebook_pixel_commerce/facebook_pixel_commerce.module on line 44 in Drupal\commerce_price\Rounder->round() (line 29 of modules/contrib/commerce/modules/price/src/Rounder.php).

Steps to reproduce

Proposed resolution

Fix the problem.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code (Facebook Pixel Commerce)

Created by

πŸ‡©πŸ‡ͺGermany Grevil

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024