Copied to clipboard

Flag this post as spam?

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


  • nijas 4 posts 85 karma points
    29 days ago
    nijas
    1

    How to override Tea commerce form action "/base/TC/FormPost.aspx"?

    Is it possible to override Tea commerce form action "/base/TC/FormPost.aspx"? If yes, how is it work?

  • Matt Brailsford 2053 posts 10078 karma points MVP 5x c-trib
    29 days ago
    Matt Brailsford
    0

    I guess you could URL rewrite it to another URL but why would you need to do that?

  • nijas 4 posts 85 karma points
    29 days ago
    nijas
    0

    I want to integrate a newsletter (Mailchimp API ) along with the Cart information on form submit. I want the same data to be sent for the newsletter subscribe.

  • Matt Brailsford 2053 posts 10078 karma points MVP 5x c-trib
    29 days ago
    Matt Brailsford
    100

    In that case you are probably better off using the Tea Commerce events system documented here https://docs.teacommerce.net/3.3.0/api/events/

    You can store custom properties, such as "subscribeToNewsletter" against the order using Order Properties API https://docs.teacommerce.net/3.3.0/api/order-property/, and then listen for the order Finalized event and grab the relevant information from the order and send it to where you need to.

    You really shouldn't need to override the FormPost.aspx URL.

  • nijas 4 posts 85 karma points
    29 days ago
    nijas
    0

    Thanks matt, that's really helpful

Please Sign in or register to post replies

Write your reply to:

Draft