Fatal error: Fatal error: Call to a member function setFont() on a non-object in /home/sites/airsoftscotland/public_html/app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php on line 496
I tried this about 6 times and could not get it to work at all. Disabled and refreshed Cache Logged out and back in to Admin, did three summersaults whilst eating a fried penguin, still no luck.
Any ideas? Is this just a copy/paste job or do I have to type in some other ‘Helvetica’s’ elsewhere?
Iv stopped trying to change all the co-ordinates in the file because it was driving me mad.
Iv now just changed the font size and the function calls refering to widthforstringusingfontsize.
The invoice is now almost perfect except that a couple of the lines of text are overlapping verticaly slightly. How can I alter the line height? are there similar function calls setting the line height by the font size?
also the last thing is that the word subtotal is just slipping out of the right hand side of the box, does anyone know how I can just nudge that column left abit?
Invoice changes get wiped out every time you upgrade. Is there an override directory that the /app/code/core/Mage/Sales/Model/Order/Pdf/ file scan be put in that will live through an update?
Move the file to the local code pool -
/app/code/local/Mage/Sales/Model/Order/Pdf/
Create the same directory structure in /app/code/local instead of app/code/core. Magento uses the code in the local directory if it’s there, and if not, it uses the code in the core directory.
Did anyone notice that on the PDF print out, Shipping & Handling actually comes out as Shipping & Handling? See the screen shot above. Does anyone know how to fix this? I can’t find the text anywhere. UGH