Hi all,
I noticed if I go to a product/category page and change currency while being on the page, the product/category url address suddenly changed to HTTPS and has insecure content warning.
To see what I mean, try changing the currency on my site's category page here. http://www.ziccy.com/shoes
I know the facebook like box is the cause of the warnings but I thought SSL should only work on the login, account and checkout page, how do I fix the product and category pages to be only on HTTP even after currency change? I'm using 1.5.2.1
I noticed if I go to a product/category page and change currency while being on the page, the product/category url address suddenly changed to HTTPS and has insecure content warning.
To see what I mean, try changing the currency on my site's category page here. http://www.ziccy.com/shoes
I know the facebook like box is the cause of the warnings but I thought SSL should only work on the login, account and checkout page, how do I fix the product and category pages to be only on HTTP even after currency change? I'm using 1.5.2.1
Last edited by yarac on Sun Jun 17, 2012 11:28 pm, edited 1 time in total.
Hi,
Yes, I hope someone helps on this.
If someone is able to solve this issue with Rewrite in htaccess file, it would be great!, I mean to force HTTP on all pages except checkout and account pages. then problem solved!!
I managed to force HTTPS on checkout and account pages but have not yet solved with forcing HTTP on other pages.
I did on htaccess the following;
Regards
A.T
Yes, I hope someone helps on this.
If someone is able to solve this issue with Rewrite in htaccess file, it would be great!, I mean to force HTTP on all pages except checkout and account pages. then problem solved!!
I managed to force HTTPS on checkout and account pages but have not yet solved with forcing HTTP on other pages.
I did on htaccess the following;
Code: Select all
# Force SSL non clean url
RewriteCond %{HTTPS} !=on
RewriteCond %{QUERY_STRING} ^(.*)(checkout/checkout|checkout/success|account)
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Regards
A.T
Just for shits and giggles, open up /catalog/controller/module/currency.php and find this code:
Reverse the connection variable values like this:
Make sure it works with those pages that actually need to be SSL like checkout, register etc...
Code: Select all
if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
$connection = 'NOSSL';
} else {
$connection = 'SSL';
}
Code: Select all
if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
$connection = 'SSL';
} else {
$connection = 'NOSSL';
}
The above solution that Avvici has posted should work, however there is some code that's even simpler that you can use for this. Open up the file above again. Just before this line
put
Be sure to check that the file gets saved once you make the change
Code: Select all
$this->data['redirect'] = $this->url->link($route, $url, $connection);
Code: Select all
$connection = empty($_SERVER['HTTPS']) ? 'NONSSL' : 'SSL';
Thank you JAY6390, actually it works now!!!
Added your line code into both ../controller/module/currency.php and ../controller/module/language.php
and problem is now solved! ..no HTTPS anymore when currency/language change.
Regards
A.T
Added your line code into both ../controller/module/currency.php and ../controller/module/language.php
and problem is now solved! ..no HTTPS anymore when currency/language change.
Regards
A.T
Who is online
Users browsing this forum: No registered users and 94 guests