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

asked Oct 1, 2014 at 5:05

1 Answer 1

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.

answered Oct 1, 2014 at 7:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.