Warning on HTTPS pages

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

If you see a warning like the following in your browser:

===== Connection Partially Encrypted =====

Parts of the page you are viewing were not encrypted before being transmitted over the Internet.

Information sent over the Internet without encryption can be seen by other people while it is in transit.

use one of the instructions provided below.

Instruction for Avactis 2.0. (find instruction for Avactis 1.9 below in this article).

1. Open the "avactis-system/modules/cart/cart_api.php" file.

2. Replace the following part of code:

$this ->CartOrders[0] = array(
           'Products' => array(),
           'Content' => array(),
           'Totals' => $this -> getInitialTotals(),
           'Entry' => 0, // use this field to keep the unique identifier for each suborder
           'Lang'  => modApiFunc('MultiLang', 'getLanguage')

with this one:

 'Content'  => array(),
           'Totals'   => $this -> getInitialTotals(),
           'Entry'    => 0, // use this field to keep the unique identifier for each suborder
           'Lang'     => modApiFunc('MultiLang', 'getLanguage'),
           'Protocol' => $application -> getCurrentProtocol()

3. Replace the following line:

$this -> checkOrderLanguage();


with this part of code:


$this -> checkOrderLanguage();
$this -> checkOrderProtocol();

3. Add the following part of code:

function checkOrderProtocol()
   {
       global $application;
       foreach($this -> CartOrders as $k => $v)
           if ($v['Protocol'] != $application -> getCurrentProtocol())
           {
             $this -> buildOrders();
             return;
           }
   }

before this line:

function __checkProductOptionsByRules($cart_item_key, $cart_item)

Instruction for Avactis 1.9.

replace the following part of code:

#logo#

with this one:

<a href="http://DOMAIN_NAME/AVACTIS_DIRECTORY/index.php"><img height="73" border="0" width="206" src="avactis-images/u/logo.gif"
alt="YOUR_TEXT"></a>

in the "page.template.tpl.html" file located in the "avactis-themes/YOUR_THEME/pages/templates" directory, where YOUR_THEME is a theme used for the storefront. Replace DOMAIN_NAME, AVACTIS_DIRECTORY and YOUR_TEXT with yours.

NOTE: if your logo file name is not "logo.gif", replace"logo.gif" with your file name or rename your file to "logo.gif"