I'm trying to add a new field on the payment page "How Did You Hear About Us?". The payment button is generated with razor TC.GeneratePaymentForm The content is not save as it's generating a new cart with the value but the payment goes on the original cart (like in this post https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/79702-order-properties-missing-after-payment-confirmation )
We call in ajax before submitting TC.AddOrUpdateOrderProperty
Is there a solution for this, as I don't want to create another step and field should be optional.
Custom Order field on payment page
Hi,
I'm trying to add a new field on the payment page "How Did You Hear About Us?". The payment button is generated with razor
TC.GeneratePaymentForm
The content is not save as it's generating a new cart with the value but the payment goes on the original cart (like in this post https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/79702-order-properties-missing-after-payment-confirmation ) We call in ajax before submittingTC.AddOrUpdateOrderProperty
Is there a solution for this, as I don't want to create another step and field should be optional.Thanks!
I finally found this post that helped me https://our.umbraco.org/projects/website-utilities/tea-commerce/tea-commerce-support/46821-TCAddOrUpdateOrderProperty()-not-updating-but-creating-new-order
So you have to use the .NET API to update an existing order (which is the case when generating the payment form)
is working on a reply...