0

I am attempting to modify the frontend output for Print Invoice/Print Order to comply with ATO requirements.

The template in question is app/design/frontend/base/default/template/page/print.phtml

I need to display two fields from the store configuration in the page header, the paths are:

'general/store_information/phone'and'fontis_australia/business/abn'

Both paths are defined and work correctly in transactional emails using markup tags, but in this script I always get null when using getStoreConfig().

<?php echo $this->__('Tel') ?><?php echo $this->escapeHtml($this->getStoreConfig('general/store_information/phone')) ?><br>
<?php echo $this->__('ABN') ?><?php echo $this->escapeHtml($this->getStoreConfig('fontis_australia/business/abn')) ?>

I have tried a few variations of these 2 lines, but I am new to both magento and php so i would appreciate any help I can get.

thanks Tom

1 Answer 1

2

I think you can try Mage::getStoreConfig instead of $this->getStoreConfig

2
  • Good thought. That works perfectly Commented Dec 6, 2014 at 12:17
  • 1
    Great. Please upvote or accept as answer if you find it useful Commented Dec 6, 2014 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.