• Resolved durrmann

    (@durrmann)


    Dear developers,

    When using wp cli to update the path of the template which should be used for rendering the invoices, the change is not applied. The invoice is still generated with the “Simple” default template. If the simple template is removed from the file system and only a custom template is present, no template is selected and the invoice cant be rendered at all.
    To select a custom template, this can only be done via the UI, but it should also possible via cli. Can you support/fix changing tempaltes via CLI?

    Steps to reproduce:
    1. Upload custom invoice template
    2 wp option patch insert wpo_wcpdf_settings_general template_path “wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/MyTemplate”
    3. Render invoice in the UI
    4. Note, that no change of the invoice happened, as the template is not yet used for rendering the invoice.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Setting Invoice template via wp-cli has no effect’ is closed to new replies.