Briefly summarize the issues you have been experiencing.
I’m using Gridsome + Vuex ecommerce website with some form on it.
All products in the cart are stored in Vuex store.
I want to send a form with all order products info such as name, color, quantity.
I’ve tried to bind order details (products in the cart) to the textarea value.
In this case I got the email without field with order details (name=“cart”).
Here is my form
<form
name="contact-test"
method="post"
data-netlify="true"
netlify-honeypot="bot-field"
action="/shop/success-order"
class="checkout__form"
>
<input type="hidden" name="form-name" value="checkout" />
<input type="hidden" name="bot-field" />
<div class="container">
<h3 class="mt-2">Оформление заказа</h3>
<p class="checkoutForm__notice">
* поля формы обязательны к заполнению
</p>
<h5>Контактная информация</h5>
<div class="textField" value>
<input
id="name"
v-model="order.name"
name="name"
type="text"
placeholder="Фамилия и Имя*"
required="required"
class="textField__input"
/>
<label for="name" class="textField__label">Фамилия и Имя*</label>
</div>
<div class="textField" value>
<input
id="phone"
v-model="order.phone"
name="phone"
type="text"
placeholder="Телефон*"
required="required"
class="textField__input"
/>
<label for="phone" class="textField__label">Телефон*</label>
</div>
<div class="textArea__wrapper" value>
<textarea
id="comments"
v-model="order.comments"
name="comments"
cols="30"
rows="5"
placeholder="Комментарии"
class="textArea"
></textarea>
<label for="comments" class="textArea__label">Комментарии</label>
</div>
<textarea
v-model="order.cart"
name="cart"
cols="30"
rows="5"
placeholder="Детали заказа"
></textarea>
<h5 class="checkoutForm__headingTotal">Всего к оплате 65 грн.</h5>
<button type="submit" class="btn -primary btn__confirm">
Подтвердить заказ
</button>
</div>
</form>
The problematic form field is textarea with name=“cart”.
I have mounted hook on witch I assign order details to order.cart value.
Please provide a link to your live site hosted on Netlify.
https://amazing-goodall-34f4cd.netlify.com/checkout/
To reproduce the problem you can add some product to the cart.
For example, go
https://amazing-goodall-34f4cd.netlify.com/shop/webbing/48mm/china/
Than use primary button and you will be in the checkout page
https://amazing-goodall-34f4cd.netlify.com/checkout/
What have you tried as far as troubleshooting goes? Do you have an idea what is causing the problem?
I have tried different input types for order details, but nothing helps.
