fooman / emailattachments

Magento 1 Extension - add order confirmation, invoice, packing slip or creditmemo pdfs to your outgoing transactional emails. Also adds support for attaching terms and conditions and printing the order as a pdf.
http://store.fooman.co.nz/extensions/magento-extension-email-attachments.html
22 stars 22 forks source link

add support for backend templates (in frontend) to prevent error messages #16

Closed seansan closed 8 years ago

seansan commented 9 years ago

On frontend PDF creating add ...

$package = Mage::getDesign()->getPackage(); $template = Mage::getDesign()->getTheme('template');

Mage::getDesign()->setArea('adminhtml') ->setPackageName('default') ->setTheme('default');

[...] // your code goes here [...]

Mage::getDesign()->setArea('frontend') ->setPackageName($package) ->setTheme($template);

seansan commented 8 years ago

I am not sure where to add this code. But if some basic support can be added to the extension then this is great. We started with symlinks ... but sometimes these are lost (or forgotten). So a fallback would really really help