1

in my transactional email page i've used this

{{block type='sales/dispatch' area='frontend' template='email/order/dispatch.phtml' order=$order shipment=$shipment}}

my block is under sales module which is like this

class Mypackage_Sales_Block_Dispatch extends Mage_Core_Block_Template {

        public function checkinout(){

            return 'testingg......';
        }
}

and my dispatch.phtml file looks like this

echo $this->checkinout();

but in the email i'm not getting this block printed, what am i doing wrong? thanks for the help

1

You can't use <sales> as a node in config.xml, this name is already used by Mage_Sales.

Rename your node and you are one step further.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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