This file contains hidden or 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
AI Coding Agent Configuration Rules | |
Project Documentation and Context | |
• Always Read Documentation: Thoroughly read existing Readme.md files in each directory before starting work to fully grasp the current state and context. | |
• Maintain Up-to-Date Documentation: Update or create a Readme.md in each folder immediately after making any changes, clearly documenting all edits and additions. | |
• Use Progress Tracking: Follow provided task lists (progress.md) iteratively. If no such list is provided and multiple issues emerge, proactively create a progress.md to track tasks and progress explicitly. | |
Knowledge Base Usage (cursor_project_rules) | |
• Contextual Coding Only: Always rely on the cursor_project_rules folder as your single source of truth for project rules and guidelines. | |
• Clarify Before Coding: Never assume project context. If anything is unclear, explicitly request clarification referencing the cursor_project_rules. |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# ------------------------------------------------------------- | |
# 6D Quantum-Foam Echo Analysis – Version 7.0 (Mit Bipolar Echo Support) | |
# Erkennt und kombiniert sowohl normale als auch invertierte Echo-Signale | |
# ------------------------------------------------------------- | |
print("Starte 6D Quantum-Foam Echo Analysis v7.0...") | |
import warnings | |
warnings.filterwarnings("ignore") |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |