In my store I have a line item which contains custom attributes height and width. I would like to use the height and width to calculate the price for that line item. By default the price is calculated by simply multiplying the line item quantity by the product price, i would like it to be height multiplied by width multiplied by quantity multiplied by the product price.
Can someone help me do this?
They enter it through text inputs. I then add the height and width to the customAttributes object when adding the line item (I am using the storefront api)