문제

장바구니를 이동하고 블록을 상위 링크와 비교하려고 하며 사용자가 li 장바구니/제품 비교가 나타납니다.효과가있다.
미니카트

<reference name="header">
    <reference name="top.links">
        <remove name="checkout_cart_link"/>
        <block type="minicart/view" name="minicart_toplink" template="minicart/toplink.phtml" >
            <block type="checkout/cart_sidebar" name="cart_sidebar" as="topcart" template="checkout/cart/sidebar.phtml"/>
        </block>
        <action method="addLinkBlock"><blockName>minicart_toplink</blockName></action>
        <block type="checkout/links" name="checkout_cart_link_minicart">
            <action method="addCheckoutLink"></action>
        </block>
    </reference>
</reference>

미니비교

<!-- Disable compare product block on left and right sidebar -->
    <reference name="right">
        <action method="unsetChild">
            <name>catalog.compare.sidebar</name>
        </action>
    </reference>
    <reference name="left">
        <action method="unsetChild">
            <name>catalog.compare.sidebar</name>
        </action>
    </reference>

    <!-- Add Compare product block to top links -->
    <reference name="header">
        <reference name="top.links">
            <block type="minicompare/view" name="minicompare_toplink" template="minicompare/toplink.phtml" >
                <block type="catalog/product_compare_sidebar" name="catalog.compare.sidebar" as="topcompare" template="catalog/product/compare/sidebar.phtml"/>
            </block>
            <action method="addLinkBlock"><blockName>minicompare_toplink</blockName></action>
        </reference>
    </reference>

문제는 내가 사용할 때 Lesti:FPC 또는 Varnish 이러한 블록은 문제를 야기합니다.광택제를 사용하면 복제되고(장바구니, 결제 및 제품 cmopare에 대한 이중 링크) Lesti(아래에 추가된 경우) lazy blocks) 처음으로 (모든) 페이지를 방문하면 표시되지 않습니다. 다시 로드하면 표시되지만 페이지를 변경하면 차단이 재설정됩니다(항목 없음, total=0이지만 항목은 장바구니) 새로고침해야 해요.
어떤 아이디어?

도움이 되었습니까?

해결책

레스티 FPC:이로 인해 내 문제가 해결되었습니다(동적 섹션에서 이 블록에 대한 참조를 모두 제거했습니다).

게으른 블록

catalog.compare.sidebar,
minicart_head
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top