Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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...
Write your reply to:
Image will be uploaded when post is submitted