Mais
livechat

Subir

How to run SSL in the Quick.Cart?

In order to activate a secure connection to the website based on Quick.Cart, make the changes to the templates files.

Use a text editor (e.g. Notepad) to change the templates/pages_default.tpl file:

In the section that starts with <!-- BEGIN PRODUCTS_BASKET --> change the href in a tag, adding https://$_SERVER['SERVER_NAME']/

  <!-- BEGIN PRODUCTS_BASKET -->
    <div class="basket"><a href="https://$_SERVER['SERVER_NAME']/$aData[sBasketPage]&iProductAdd=$aData[iProduct]&iQuantity=1" rel="nofollow">$lang[Basket_add]</a></div>
    <!-- END PRODUCTS_BASKET -->


Edit templates/products_default.tpl file.

In the section that starts with <!-- BEGIN BASKET --> change the action in form tag, adding https://$_SERVER['SERVER_NAME']/
  
   <!-- BEGIN BASKET -->
    <form action="https://$_SERVER['SERVER_NAME']/$sBasketPage" method="post" id="addBasket">
    <!-- END BASKET -->


In order to activate a secure connection to the registration login to the admin panel.

In the root set up .htaccess file (if it's not exists) and open it with a text editor (like Notepad). Paste the following lines to the file:
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} admin
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]