>我有一个观察者"checkout_cart_add_product_complete"
我想在位于/template/ajaxminicart/checkout/cart.phtml
的观察者和控制器中渲染cart.phtml
的内容
我该怎么做?
检查以下内容,
<?php
$newBlock =Mage::app()->getLayout()
->createBlock('checkout/cart')
->setTemplate('ajaxminicart/checkout/cart.phtml')
-->toHtml();
echo $newBlock;
?>