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:16666461e80b79104e12
Created April 22, 2015 19:35
dh42 BO Header for Affiliates
public function hookDisplayBackOfficeHeader($params)
{
if( isset($this->context->controller->dh_support) )
return;
$this->context->controller->dh_support = 1;
if (version_compare(@_PS_VERSION_,'1.6','<'))
@Dh42
Dh42 / gist:b9beed34a261e18aec9e
Created April 22, 2015 19:37
dh42 Affiliate Hook
$this->registerHook('displayBackOfficeHeader')
@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
{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 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/afl-3.0.php
* If you did not receive a copy of the license and are unable to
{
"name": "Traxxas Slash 4x4 SC Truck with iD Technology TRA70054-1",
"reference": "70054-1",
"on_sale": 0,
"available_now": "In Stock",
"category": "Car & Truck",
"categories": [
"Shop by Brand",
"Shop by Brand /// Traxxas",
"Gift Guide",
{
"name": "HPI Nitro RS4 MT2",
"product_count": 158,
"url": "https://www.rcplanet.com/Nitro_RS4_MT_2_RTR_s/999.htm",
"path": "Shop All / RC Parts Department / Traxxas R/C Parts / Redcat R/C Parts / HPI R/C Parts / HPI Nitro RS4 MT2",
"objectID": "999"
}
var triggered_filter = false;
jQuery(document).ready(function ($) {
//unbind default search module
$('#search_query_top').unbind();
var my_category_title = $('#columns').find('h1.page-heading');
@Dh42
Dh42 / product.css
Created July 6, 2017 05:31
product.tpl for tabs in thirty bees
.idTabs {
list-style-type:none;
margin-top:20px;
}
ul.idTabs li {
float:left;
margin-right:-1px;
}