Here are my test results before and after your request change. Please let me know if it looks correct to you with the totals.
### Before with a singular quantity value.
json
{
"4818e3493e7621149b6906333721e341": {
"addons": [],
"key": "4818e3493e7621149b6906333721e341",
"product_id": 32,
"variation_id": 0,
"variation": [],
"quantity": 1,
"data": {},
"data_hash": "b5c1d5ca8bae6d4896cf1807cdf763f0",
"line_tax_data": {
"subtotal": {
"13": 8.4
},
"total": {
"13": 8.4
}
},
"line_subtotal": 42,
"line_subtotal_tax": 8.4,
"line_total": 42,
"line_tax": 8.4,
"product_name": "Hoodie",
"product_title": "Hoodie",
"product_price": "£42.00"
}
}
### After with a float value for quantity.
json
{
"4818e3493e7621149b6906333721e341": {
"addons": [],
"key": "4818e3493e7621149b6906333721e341",
"product_id": 32,
"variation_id": 0,
"variation": [],
"quantity": 2.032123,
"data_hash": "b5c1d5ca8bae6d4896cf1807cdf763f0",
"line_tax_data": {
"subtotal": {
"13": 17.0698332
},
"total": {
"13": 17.0698332
}
},
"line_subtotal": 85.34916600000001,
"line_subtotal_tax": 17.07,
"line_total": 85.34916600000001,
"line_tax": 17.07,
"data": {},
"product_name": "Hoodie",
"product_title": "Hoodie",
"product_price": "£42.00"
}
}