开发者

Custom block in magento

I have added this block in checkout.xml:

<block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/>

Then, I h开发者_Go百科ave shown this in cart.phtml:

echo $this->getChildHtml('shipping');

Then, I have made a page as shipping.phtml file in cart folder. This is working on my local PC, but when I follow this path on the server no block is showing. There is one difference between the two environments: on local I am doing all this step in the base folder, but on the server there is a customized theme folder in the default folder.

Can anyone tell me where I am wrong?

Thanks in advance.


Check design's configuration on server, is this theme really loaded.


Make sure that you added the XML correctly (without any typos). A typo in the XML would probably cause Magento to load the default checkout.xml instead of your custom one, losing your block changes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜