0
장바구니 정보를 표시하는 머리글에 블록을 추가하려고합니다.
아직이 블록에서 어떤 표시도 나타나지 않습니다. 나는 젠토에 비교적 새로운 해요머리글에 체크 아웃 블록 추가
<?php echo $this->getChildHtml('checkoutBasket'); ?>
: 여기
<script>alert("TEST");</script>
<div class="block checkout-basket">
TEST
</div>
내 header.phtml입니다 : 여기
<reference name="header">
<block type="checkout/cart_sidebar" name="checkout.basket" as="checkoutBasket" />
</reference>
내 basket.phtml입니다 : 여기
내 checkout.xml입니다 그리고 Block 시스템이기 때문에이 블록을 표시하기 위해 모든 점들을 올바르게 결합했는지 확신 할 수 없습니다. 당신이 다음
<block type="checkout/cart_sidebar" name="checkout.basket" as="checkoutBasket" template="pathoftemplate/basket.phtml">
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
그리고 코드가 basket.phtml에 추가해야합니다 단지 기본 처럼 모든 카트 항목을 표시 할 경우
템플릿 속성이 활성화되었습니다. 당신의 도움을 주셔서 감사합니다 –