Details
Description
When ordering a service, some items (e.g. config options) may have more than 1 quantity. The Order Summary table lists the line item description, quantity, and unit price, e.g.:
Description | Quantity | Unit Price |
---|---|---|
Prorated Addition of Test Item | 3 @ | $3.00 |
However, in this example, the unit price is $1.00, but $3.00 is the subtotal shown under the Unit Price column. This is because the Services::getServiceItems() method returns the subtotal for each item as the price. This is also used in the admin UI when adding a service for a client, however, it lists it as the "Price" rather than the "Unit Price". Therefore, we should update the Order plugin to rename the "Unit Price" column to "Price".
- Update the "Order Summary"/cart sections for all order templates to rename the "Unit Price" column to "Price" since it represents the subtotal price rather than the unit price.