Copied to clipboard

Flag this post as spam?

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


  • Nijaz Hameed 38 posts 173 karma points
    Feb 25, 2019 @ 09:08
    Nijaz Hameed
    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 4125 posts 22223 karma points MVP 9x c-trib
    Feb 25, 2019 @ 09:36
    Matt Brailsford
    0

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

  • Nijaz Hameed 38 posts 173 karma points
    Feb 25, 2019 @ 09:41
    Nijaz Hameed
    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 4125 posts 22223 karma points MVP 9x c-trib
    Feb 25, 2019 @ 09:51
    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.

  • Nijaz Hameed 38 posts 173 karma points
    Feb 25, 2019 @ 09:55
    Nijaz Hameed
    0

    Thanks matt, that's really helpful

Please Sign in or register to post replies

Write your reply to:

Draft