Post by Stuff4Toys » Fri Jan 28, 2011 8:18 am

I need to use the primary domains shared SSL on http://www.chargerpros.com
The Catalog URL would then be https://www.primarydomain.com/CHARGERPROS/

This is working for the admin when I changed the appropriate defines

Where do I enter this info for the store?

I am pretty sure it has to be entered here somewhere, but ... where?

Code: Select all

// Store
$query = $db->query("SELECT * FROM " . DB_PREFIX . "store WHERE url = '" . $db->escape('http://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), '/.\\') . '/') . "' OR url = '" . $db->escape('http://' . str_replace('www.', '', $_SERVER['HTTP_HOST']) . rtrim(dirname($_SERVER['PHP_SELF']), '/.\\') . '/') . "'");

foreach ($query->row as $key => $value) {
	$config->set('config_' . $key, $value);
}

define('HTTP_SERVER', $config->get('config_url'));
define('HTTP_IMAGE', HTTP_SERVER . 'image/');

if ($config->get('config_ssl')) {
	define('HTTPS_SERVER', 'https://' . substr($config->get('config_url'), 7));
	define('HTTPS_IMAGE', HTTPS_SERVER . 'image/');	
} else {
	define('HTTPS_SERVER', HTTP_SERVER);
	define('HTTPS_IMAGE', HTTP_IMAGE);	
}
Thanks
JOhn ><>

OpenCart Install: www.ChargerPros.com
Shameless Plug: www.Stuff4Toys.com


User avatar
New member

Posts

Joined
Thu Dec 09, 2010 12:18 pm
Location - SW Florida

Post by i2Paq » Fri Jan 28, 2011 3:19 pm

I believe that shared SSL is NOT supported atm.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands
Who is online

Users browsing this forum: No registered users and 142 guests