NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Answer: Edited the index.php in the root folder and added the following code just before the //Url line (about line 77). This forces all links to your SSL store to be rendered secure (prefixed with https://). This may be handled better somewhere else but it works here.
Code: Select all
// Store
....
if ($store_query->num_rows) {
$config->set('config_store_id', $store_query->row['store_id']);
$store_https = str_replace('www.','',$store_query->row['ssl']); //RJ-20141012
} else {
$config->set('config_store_id', 0);
}
// Settings
...
if (!$store_query->num_rows) {
$config->set('config_url', HTTP_SERVER);
// $config->set('config_ssl', HTTPS_SERVER); //RJ-20141012
$config->set('config_ssl', str_replace('www.','',HTTPS_SERVER)); // Make secure url uniform (https://domain.com) // RJ-20141012
}
//=======================================================================================================================
// RJ-20141012 - Force https to be rendered in all store links to help avoid unsafe pages (insecure)
//=======================================================================================================================
if (isset($_SERVER['HTTPS'])) {
if (($_SERVER['HTTPS'] == 'on') ||($_SERVER['HTTPS'] == '1')) {
if (isset($store_https)) {
$config->set('config_ssl', $store_https);
$config->set('config_url', $store_https);
}
}
}
// RJ-20141012
//=======================================================================================================================
// Url
Code: Select all
// Url
$url = new Url($config->get('config_url'), $config->get('config_secure') ? $config->get('config_ssl') : $config->get('config_url'));
$registry->set('url', $url);
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Attachments
Index.php from the root (NOT the Admin folder)
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Other relevant info - http://www.randemsystems.com/support/op ... cart-v2-x/
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
I cannot do that as not all of my multistores use SSL right now. My main 12 do , the other 11 do not. So I cannot have everything show as https:Randem wrote:Yes, set all references to HTTP to be HTTPS in the config.php files.
Other relevant info - http://www.randemsystems.com/support/op ... cart-v2-x/
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
Are you saying the all your stores resolve to one IP address?
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
I have no idea why you think opencart only supports 4 stores - it does not. You can have as many multi-stores in opencart as you want. I originally had about 35 but have since paired down to 23. You can select each store setting some to use SSL and some to not use SSL, again no problem. See my signature links. All run from my 1 opencart installation which is at labeshops.com with an SSL certificate installed and set up for my main stores right now - I'll expand and pay the additional eventually to have them all SSL, but as some are newer stores without as much traffic/sales, they don't have them yet.Randem wrote:That makes no sense. you can't have 11 stores on one OpenCart system, it only supports 4 stores. And those stores that use SSL should be paired with others that do and the same with non SSL stores. In your case, you have a configuration design issue not specifically an OpenCart one.
Are you saying the all your stores resolve to one IP address?
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Multistores all resolve to the same IP anyway since the only ip used is the domain it is installed on with multistores really just being "virtual" stores. So that is a non-issue.
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
No problem with ssl or non-ssl stores on the same configuration, either. Eventually all my stores will be ssl enabled, but while some are still in the earlier stages, I find it not necessary to spend the extra money on the certificate.
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
I have never heard of putting a dynamic or relative path in the config.php file. Where did you get that advice?
BTW: There is a problem with mixing SSL and NON-SSL stores but it is just one you don't care about yet
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Running Opencart v3.0.3.2 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
It used to be that cPanel would only support 1 Dedicated IP address and 1 SSL certificate per account and the workaround was the use of a UCC certificate to support multiple SANs.
Now, if the hosting provider is staying up to date with current cPanel releases, a single cPanel account can have 1 Dedicated IP address and multiple certificates installed. This means you could now have 2 or more Non UCC certificates installed on one cPanel account.
Randem, I notice you're reselling GoDaddy hosting and they use a mix of Windows and Linux servers and only some of the Linux servers use cPanel and I don't know how up to date they keep the software.
To fix the HTTPS logo issue for Labeshops, the HTTP and HTTPS sections both needed to have the 's' added after http in both config files.
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
I am confused, what does this have to do with anything??????EvolveWebHosting wrote:Randem, I notice you're reselling GoDaddy hosting and they use a mix of Windows and Linux servers and only some of the Linux servers use cPanel and I don't know how up to date they keep the software.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhost.com
I still don't see how this pertains? I never offered anyone anything.EvolveWebHosting wrote:That you could be offering Plesk or a different version of cPanel or an entirely different control panel that supports different features. I didn't look into the specific details.
NEVER take serious; anyone who gives negative impact statements with no ABSOLUTE proof!
OpenCart Helpful Information * Upgrade 1.5 to 2.1 * Upgrade 2.1 to 2.2
"Why do people NEVER have enough time to do it right but ALWAYS enough time to do it over?"
DO NOT EVER GIVE SOMEONE YOU DON"T KNOW ADMIN ACCESS TO ANYTHING!
I am NOT affiliated with OpenCart
Users browsing this forum: No registered users and 150 guests