Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MrFlo 159 posts 403 karma points
    Feb 27, 2018 @ 15:29
    MrFlo
    0

    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 submitting TC.AddOrUpdateOrderProperty Is there a solution for this, as I don't want to create another step and field should be optional.

    Thanks!

  • MrFlo 159 posts 403 karma points
    Feb 27, 2018 @ 17:18
    MrFlo
    100

    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)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies