• Hello,

    Is there a way to programmatically create the label?
    I want to use the plugin with my own custom PHP code.

    Maybe someone has some examples? That would be really helpful.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shadi Manna

    (@shadim)

    You could create a custom Order Status and then set that programmatically and use the setting to create a label on that custom Order Status to make it all work together.

    Thread Starter sensusdata

    (@sensusdata)

    Yes, but error handling would not be very well. I would not know if a label has been created or there was an error.

    I would prefer to use a function to call i.e. to generate a label filled with information from an order id or even create a raw label and all information i would provide in the array ($args) you are using to create a label from scratch.

    Plugin Author Shadi Manna

    (@shadim)

    You could take a look at the code when an order status changed and see how it’s done there, then do the same programatically.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create Label from order programmatically’ is closed to new replies.