1

The checkout/onepage is working with https. But, why checkout/cart is not?

Please see the detail in the following link. http://pastebin.com/ASNZMixJ

1

If you want https secure page you follow below method(work on local don't edit core file)

app/code/core/Mage/Checkout/etc/config.xml

FInd this

<frontend>
<secure_url>

after that you add in below mention way

<frontend>
<secure_url>
<checkout_cart>/checkout/cart</checkout_cart>
<checkout_onepage>/checkout/onepage</checkout_onepage>
<checkout_multishipping>/checkout/multishipping</checkout_multishipping>
</secure_url>

Then clear cache and session then check

  • my onepage have https, do I still need to add it in the secure_url? – Sonia Nov 20 '15 at 20:20
  • need not try only cart – Magento 2 Nov 20 '15 at 20:23
  • I added those three lines in <secure_url>, yet the checkout/cart is still not work with https. – Sonia Nov 20 '15 at 21:10
  • solved my problem with cart message block thanks. – Danny Z Dec 3 '15 at 23:44
1

simply overwrite magento defaults:

app/etc/modules/MyModule_CartSecure.xml

<?xml version="1.0"?>
<config>
    <modules>
        <MyModule_CartSecure>
            <active>true</active>
            <codePool>local</codePool>
        </MyModule_CartSecure>
    </modules>
</config>

app/code/local/MyModule/CartSecure/etc/config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <MyModule_CartSecure/>
    </modules>
    <frontend>
        <secure_url>
            <checkout_cart>/checkout/cart</checkout_cart>
            <checkout>/checkout/cart</checkout>
        </secure_url>
    </frontend>
</config>

or you can go to System -> Configuration -> Web
and use https for unsecure base url, then all your pages will be https://

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.