October 30, 2012 at 10:31 am #17432
so I have everything working on my site currently. Recently I have got some orders and wanted to print invoices for the orders and found that there is such option on WooCommerce for some odd reason so I found a plugin to add this option for me:
It all installed fine but when I go to print a invoice and preview it, there is nothing listed in the table contents that should list the items that have been ordered… Preview screen shot below:
I contacted the plugin support direct and was told to debug so I did and got the following errors:Code:Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead. in /home4/designmy/public_html/wp-includes/functions.php on line 2628Code:Warning: Cannot modify header information – headers already sent by (output started at /home4/designmy/public_html/wp-includes/functions.php:2628) in /home4/designmy/public_html/wp-includes/pluggable.php on line 881
I was told:
“search in your theme for get_theme_data and you may find the problem. you can ignore the modify header message. good luck!”
so I went to line 2628 on functions.php and couldn’t find any line get_theme_data to change to wp_get_theme()… During some further researching I was told that it would be best to contat the theme authors for support as they would be able to help resolve that issue that will hopefully resolve my invoice issue.
Any help would be greatly appreciated. Sorry for the long winded post.
KaramOctober 31, 2012 at 12:24 pm #95445
I reported it to Kriesi. This code can be found in abundanceframeworkphpinc-autoconfig.php (around line 44). He needs to update the framework files a bit (see: http://codex.wordpress.org/Function_Reference/wp_get_theme )October 31, 2012 at 1:12 pm #95446
Just to make sure: are you using the latest version (1.5) of the theme? We have replaced the get_theme_data call with wp_get_theme some time ago…
The code mentioned by dude in abundanceframeworkphpinc-autoconfig.php (around line 44) should only be executed if wp_get_theme in line 35 doesnt exist…October 31, 2012 at 1:27 pm #95447
I am currently using version 1.3.1. Annoyingly for some reason (and don’t ask why, I’m an idiot) I didn’t use the custom CSS so any changes I have made to the theme have been via the style.css so I can’t really upgrade the theme without there being a mess to clean up.
So I should be able to execute it as I assume it doesn’t exist because of my version?
Thanks for both responses as well, much appreciated. I shall update the thread when I make the change and see if it works OK.October 31, 2012 at 2:00 pm #95448
OK yeah because framework files need updating is there anyway around not updating the theme completly to mess up my customisation changes but still being able to sort out this get_theme_data problem? What a mess :( changing it to wp_get_theme obviously made the website go mental and it just changed to a default theme style got rid of all content, I obviously changed back straight away.November 1, 2012 at 8:10 am #95449
You just need to replace the framework folder. The stylesheets, etc. aren’t affected.
PeterMarch 26, 2013 at 10:50 pm #95450
Hi, I’m not sure if this is the right place to ask this question, but here it goes:
I’m using Abundance theme+woocommerce+woocommerce delivery notes, and I really need to add some things to the invoice template as Customer ID, invoice number, and at the detailed order table, if it’s possible, I need to add two new column, nº of items and price per unit.
I would need to make font size smaller too…
Thank you in advance!!March 26, 2013 at 11:09 pm #95451March 27, 2013 at 6:43 am #95452
I’m sorry but you need to hire a freelancer for this task. The print invoice plugin has nothing to do with the theme and this is beyond the scope of our support forum.
PeterMarch 27, 2013 at 2:41 pm #95453
The topic ‘WooCommerce Invoice problem’ is closed to new replies.