Support » Plugins and Hacks » MarketPress Lite: Trigger a function on/before checkout

  • Jeremy Plack

    (@stlouiswebgmailcom)


    Hi,
    I am using the MarketPress Lite ecommerce plugin and trying to figure out how to fire a custom function during the checkout, hooks?, (preferably from a custom plugin as opposed to hacking the marketpress files, but I could do either).

    The reason I am doing this is because I need to extract the text input from one of the shipping form’s fields, to use as a term in an associated post type.

    Currently I am stuck at figuring out how to access the info the user types in during checkout for use else where in the site.

    Thank You

Viewing 1 replies (of 1 total)
  • Jeremy Plack

    (@stlouiswebgmailcom)

    maybe something like this?:

    <?php
    add_action('mp_shipping_process', 'get_team_name');
    
    function get_team_name() {
    some stuff??
    }
    function add_team_to_tournament {
    some stuff??
    }
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘MarketPress Lite: Trigger a function on/before checkout’ is closed to new replies.