Index page redirects to product list

From AVACTIS : Ecommerce Shopping Cart Software Wiki
Jump to: navigation, search

NOTE: this article is for Avactis version 1.9.1

To solve the problem, pass the following steps:

1. Open the "avactis-system\core\application.php" file.

2. Replace the following part of code:

if ($needed_protocol == "https" && $this->protocol == "http")
{
$redirect_to_http_protocol = false;
$request = &new Request();
$request->setView($this->getViewBySection($section));
$request->setKey(session_name(), session_id());
$request->saveCurrentGETPOSTData();
$this->redirect($request, "https");
}

with this one:

if ($needed_protocol == "https" && $this->protocol == "http")
{
$redirect_to_http_protocol = false;
$request = &new Request();
$request->setView($this->getViewBySection($section));
$request->setKey(session_name(), session_id());
$request->saveCurrentGETPOSTData();
if (!isset($request->keyvalList['category_id'])) {
$request->category_id = "1";
}
$this->redirect($request, "https");
}

3. Replace the following part of code:

if ($redirect_to_http_protocol && $this->protocol == "https")
{
$request = &new Request();
$request->setView($this->getViewBySection($sections[0]));
$request->setKey(session_name(), session_id());
$request->saveCurrentGETPOSTData();
$this->redirect($request, "http");
}

with this one:

if ($redirect_to_http_protocol && $this->protocol == "https")
{
$request = &new Request();
$request->setView($this->getViewBySection($sections[0]));
$request->setKey(session_name(), session_id());
$request->saveCurrentGETPOSTData();
if (!isset($request->keyvalList['category_id'])) {
$request->category_id = "1";
}
$this->redirect($request, "http");
}

If you find it difficulty to make these changes, Contact Avactis Support team.