Home Forums Booster Plus Customer Forum Checkout_Payment_URL in Admin Order List

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #47304
    Sasha Lewis

    Took me a few days to figure this out and I know I came across someone else asking about it. Thought I would share and save someone the time. So I created a custom column in the Admin Order List using booster with nothing in it. Using the field name, I then used the following function to add the url to the admin order screen.

    //Display details in booster created customer column #4, on order admin list (populate the column)
    function action_manage_shop_order_posts_custom_column( $column, $post_id ) {
    // Compare
    if ( $column == ‘wcj_orders_custom_column_4’ ) {
    // Get order
    $order = wc_get_order( $post_id );

    // Get url
    $url = $order->get_checkout_payment_url();

    // Output
    echo ‘‘ . esc_html__( ‘Payment Link’, ‘woocommerce’ ) . ‘‘;
    add_action( ‘manage_shop_order_posts_custom_column’ , ‘action_manage_shop_order_posts_custom_column’, 10, 2 );

    David G

    Hi Sasha Lewis,

    Thanks for your message. feel free to open a new ticket for further help.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.