Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter svg2018

    (@svg2018)

    Hi Ewout, thanks for the reply.

    Should i replace

    $PP_warehouse_locations = get_option(self::metakey_warehouse_locations, array());
    

    for?
    self::metakey_warehouse_locations

    Is that what you are trying to say? Doing so gives the following error
    Parse error: syntax error, unexpected '$PP_warehouse_locations' (T_VARIABLE) in /home/username/test.mydomain.nl/wp-content/themes/storefront/woocommerce/pdf/yourtemplate/template-functions.php on line 13

    Thread Starter svg2018

    (@svg2018)

    The debug output looks like this:

    Fatal error: Uncaught Error: Undefined class constant 'metakey_warehouse_locations' in /home/staxvi1q/test.mydomain.nl/wp-content/themes/storefront/woocommerce/pdf/yourtemplate/template-functions.php:12 Stack trace: #0 /home/staxvi1q/test.mydomain.nl/wp-includes/class-wp-hook.php(286): WPO\WC\PDF_Invoices\Main->{closure}('invoice', Object(WC_Order)) #1 /home/staxvi1q/test.mydomain.nl/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 /home/staxvi1q/test.mydomain.nl/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/staxvi1q/test.mydomain.nl/wp-content/themes/storefront/woocommerce/pdf/yourtemplate/invoice.php(82): do_action('wpo_wcpdf_befor...', 'invoice', Object(WC_Order)) #4 /home/staxvi1q/test.mydomain.nl/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(618): include('/home/staxvi1q/...') #5 /home/staxvi1q/test.mydomain.nl/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abst in /home/staxvi1q/test.mydomain.nl/wp-content/themes/storefront/woocommerce/pdf/yourtemplate/template-functions.php on line 12

    Thread Starter svg2018

    (@svg2018)

    Unfortunately i can’t get it working by just copy & pasting it in the template-functions.php file. It breaks the .pdf

    • This reply was modified 7 years, 9 months ago by svg2018.
    • This reply was modified 7 years, 9 months ago by svg2018.
Viewing 3 replies - 1 through 3 (of 3 total)