I have setup my site (Magento 1.9 CE) to use SSL. This was done in the configuration (System > Configuration > Web > Secure) and with Apache redirects.
When browsing the site, the browser (Chrome) marks Contact Us and Product View pages to have insecure content.
Both of these are related to the submit form. Upon closer inspection of the template files:
/template/contacts/form.phtml
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
/template/catalog/product/view.phtml
<form action="<?php echo $this->getSubmitUrl($_product) ?>" method="post" id="product_addtocart_form"<?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
While I realize I could simply change the form actions with getUrl()
, I was wondering if there is a right way to fix this considering this was core code.
Best Answer
Create custom module and add
Config.xml
See Secure HTTPS Magento Shopping Cart