• Resolved skoz95

    (@skoz95)


    Hi there,

    I would like to print a current order shipping method.
    So in that function : star_cloudprnt_create_receipt_order_meta_data($meta_data, $order, &$printer, $max_chars), I have an object “order” but do this $order->get_shipping_method() don’t work. Can you help me, to retrieve a shipping method from your $order object ?

    Thanks,

Viewing 1 replies (of 1 total)
  • Plugin Contributor lawrenceowen

    (@lawrenceowen)

    Hi @skoz95

    The $order object is a WC_Order retrieved using the WooCommerce function wc_get_order(). Please check the standard WooCommerce API documentation and forums, I don’t thing that there’s anything about the Star plugin that would make it harder/easier to access the shipping information. Unfortunately it’s not something I’ve done myself.

Viewing 1 replies (of 1 total)

The topic ‘get shipping method’ is closed to new replies.