LLMS_Meta_Box_Order_Details::output()

Output metabox content


Return Return

(void)


Top ↑

Source Source

File: includes/admin/post-types/meta-boxes/class.llms.meta.box.order.details.php

59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
public function output() {
 
    $order = llms_get_post( $this->post );
    if ( ! $order || ! is_a( $order, 'LLMS_Order' ) ) {
        return;
    }
 
    $gateway = $order->get_gateway();
 
    // Setup a list of gateways that this order can be switched to.
    $gateway_feature           = $order->is_recurring() ? 'recurring_payments' : 'single_payments';
    $switchable_gateways       = array();
    $switchable_gateway_fields = array();
    foreach ( llms()->payment_gateways()->get_supporting_gateways( $gateway_feature ) as $id => $gateway_obj ) {
        $switchable_gateways[ $id ]       = $gateway_obj->get_admin_title();
        $switchable_gateway_fields[ $id ] = $gateway_obj->get_admin_order_fields();
    }
 
    include LLMS_PLUGIN_DIR . 'includes/admin/views/metaboxes/view-order-details.php';
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.3.0 Use llms() in favor of deprecated LLMS().
3.0.0 Unknown.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.