Order item price should be a float, not an int

Created on 7 November 2024, about 1 month ago

Problem/Motivation

The order item that's created uses a price value that's cast to an int preventing decimal values form being used in a price.

Steps to reproduce

Create a webform product with a price option that includes a decimal (e.g. $10.50). Complete the form and see that the order item is $10.

Proposed resolution

Cast the value to a float instead.

πŸ› Bug report
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andyg5000 North Carolina, USA

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