Skip to content

Instantly share code, notes, and snippets.

@Dh42
Dh42 / gist:141f65fdfb7d67255703
Created June 1, 2014 22:55
Fixes Prestashop Clicktale Module to Work with Pre 1.5.5 versions where cacheid is not used.
<?php
if (!defined('_CAN_LOAD_FILES_'))
exit;
class Clicktale extends Module
{
public function __construct()
{
$this->name = 'clicktale';
if (version_compare(_PS_VERSION_, '1.4.0.0') >= 0)
$this->tab = 'front_office_features';
@Dh42
Dh42 / gist:8172816
Last active January 1, 2016 16:49
Override for Prestashop 1.5 Tools.php to make media servers not need SSL check http://blog.dh42.com/prestashop-media-server-hack/ for more information and use case.
<?php
class Tools extends ToolsCore
{
public static function getMediaServer($filename)
{
if (self::$_cache_nb_media_servers === null)
{
if (_MEDIA_SERVER_1_ == '')
self::$_cache_nb_media_servers = 0;
@Dh42
Dh42 / gist:7965743
Last active April 25, 2016 13:03
Fixes an issue with Prestashop when people use carriers that figure cost by address, or weight. This prevents "Free shipping" from showing, unless the person is really getting free shipping. This replaces your blockcart.tpl file.
{*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to