You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To place an order, the customer and product information must already be known or collected.
216
-
A shopping basket can be implemented as follows:
217
-
218
-
[source, javascript, indent=0]
219
-
----
220
-
// JavaScript example
221
-
----
216
+
A shopping basket on the client side typically processes and displays this information.
222
217
223
218
224
219
=== Calculate prices for orders
@@ -278,8 +273,6 @@ The result looks like this:
278
273
279
274
The product of `quantity` and `unitPrice` is the total cost, which in this case is 116.25.
280
275
281
-
// maybe add another JavaScript example here, that accesses the JSON response and actually calculates the amount. This could also be made generic, so that it is not reliant on the orderID used here.
282
-
283
276
Note that there is no `discount` field on the `ORDERS` relationship and it is unclear how taxation works in this scenario.
0 commit comments