svg2018
Forum Replies Created
-
Hi Ewout, thanks for the reply.
Should i replace
$PP_warehouse_locations = get_option(self::metakey_warehouse_locations, array());for?
self::metakey_warehouse_locationsIs 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 13The 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