Skip to content

Commit

Permalink
Comment field for order is now live and submits to API correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Holmst33n committed Apr 18, 2024
1 parent 49b36fc commit 0b1061c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/checkout/orderform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function Orderform() {
city: elements.city.value,
email: elements.email.value,
telephoneNumber: elements.telephoneNumber.value,
orderComment: elements.orderComment.value,
businessName: isBusiness ? elements.businessName.value : undefined,
VAT: isBusiness ? elements.VAT.value : undefined,
deliveryCountry: isDeliveryAddress
Expand Down Expand Up @@ -248,6 +249,12 @@ function Orderform() {
id="telephoneNumber"
title="Please enter a valid danish phone number"
></input>
<label htmlFor="orderComment"></label>
<textarea
placeholder="Here you can leave a comment for your order"
name="orderComment"
id="orderComment"
/>
<label htmlFor="a">
Agree to{" "}
<a href="/terms-and-conditions" target="_blank">
Expand Down

0 comments on commit 0b1061c

Please sign in to comment.