Order/order item price could be NULL

Created on 30 July 2022, almost 2 years ago
Updated 28 June 2024, 2 days ago

Problem/Motivation

According to OrderInterface the return value of getTotalPrice can be NULL. Same goes for getUnitPrice on the order item. In that case FacebookCommerce throws an error since the price rounder expects a Price object.

I have practically encountered this error in a customized checkout process.

Proposed resolution

Sent 0 as the price if there is no order total/order item unit price set.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code (Facebook Pixel Commerce)

Created by

πŸ‡΅πŸ‡ͺPeru krystalcode

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

Merge Requests

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.69.0 2024