Viewing 1 replies (of 1 total)
  • Plugin Author Tickera

    (@tickera)

    You can update Tickera now to 3.1.6.4 version where we added additional hooks. So you can do as following:

    add_action( ‘tc_track_order_confirmation’, ‘my_track’, 10, 3 );

    function my_track( $order, $payment_info, $cart_info ) {
    global $tc;

    $cart_info = isset( $_SESSION[ ‘cart_info’ ] ) ? $_SESSION[ ‘cart_info’ ] : $cart_info;

    $reference = $order;

    $order = tc_get_order_id_by_name( $order );
    $order = new TC_Order( $order->ID );

    $status = $order->details->post_status;//order_paid, order_received
    $amount = $tc->get_cart_currency_and_format( $order->details->tc_payment_info[ ‘total’ ] );

    do_shortcode(‘[affiliate_conversion_script amount=”‘.$amount.'” description=”Order #’.$reference.'” context=”Confirmation Page” reference=”‘.$reference.'” status=”‘.$status.'”]’);
    }

Viewing 1 replies (of 1 total)
  • The topic ‘How to edit confirmation page’ is closed to new replies.