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)
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...By Ollie Jul 28, 2022