nexcess / magento-turpentine

A Varnish extension for Magento.
GNU General Public License v2.0
519 stars 253 forks source link

Issue minicart and javascript #1469

Open sysadminFree opened 6 years ago

sysadminFree commented 6 years ago

Hi,

I have the same problem that in the past had @epiblue https://github.com/nexcess/magento-turpentine/issues/737

When I active the esiOptions in minicart block, the minicart works fine because it does not cache but the javascript doesn't work and doesn't show the list of products... when I click, the product list is not displayed (the javascript doesn't work, the javascript disappears from the code) , it send me to checkout/cart url :(

Excuse my bad english

Anybody can help me please?

Regards,

sysadminFree commented 6 years ago

SOLVED: Sorry ... we had comment the esi minicart_head and only have the esi in minicart_content:

`

        <block type="checkout/cart_minicart" name="minicart_head" template="checkout/cart/minicart.phtml" before="-">

                           <!-- <action method="setEsiOptions">

                                    <params>

                                            <method>ajax</method>

                                            <access>private</access>

                                    </params>

                            </action>-->

            <block type="checkout/cart_sidebar" name="minicart_content" template="checkout/cart/minicart/items.phtml">
                            <action method="setEsiOptions">

                                    <params>

                                            <method>ajax</method>

                                            <access>private</access>

                                    </params>

                            </action>

`