This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Shopware 4 | |
* Copyright © shopware AG | |
* | |
* According to our dual licensing model, this program can be used either | |
* under the terms of the GNU Affero General Public License, version 3, | |
* or under a proprietary license. | |
* | |
* The texts of the GNU Affero General Public License with an additional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$logger = new \Doctrine\DBAL\Logging\DebugStack(); | |
$logger->enabled; | |
Shopware()->Models()->getConfiguration()->setSQLLogger($logger); | |
// Shopware Doctrine Queries | |
//get access on the customer repository | |
$query = $this->getRepository()->getListQuery($filter, $customerGroup, $sort, $limit, $offset); | |
//returns the total count of the query | |
$totalResult = $this->getManager()->getQueryCount($query); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Replace Hook auf engine/core/class/sBasket::getMaxTax | |
public function getMaxTax(){ | |
$sql = " | |
SELECT | |
SUM(price * quantity) as amount_per_tax, tax | |
FROM s_order_basket b | |
WHERE b.sessionID=? AND b.modus=0 | |
GROUP BY tax_rate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin-Controller to display the special article-groups in the frontend | |
* | |
* @link http://www.shopware.de | |
* @copyright Copyright (c) 2011, shopware AG | |
* @author Patrick Stahl | |
* @package Plugins | |
* @subpackage Frontend_Controller | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Shopware_Plugins_Frontend_OrderMod_Bootstrap extends Shopware_Components_Plugin_Bootstrap | |
{ | |
/** | |
* (non-PHPdoc) | |
* @see Shopware_Components_Plugin_Bootstrap::install() | |
*/ | |
public function install() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Shopware 4.0 | |
* Copyright © 2012 shopware AG | |
* | |
* According to our dual licensing model, this program can be used either | |
* under the terms of the GNU Affero General Public License, version 3, | |
* or under a proprietary license. | |
* | |
* The texts of the GNU Affero General Public License with an additional |