From shopware-checkout
Warenkorb per App-Script manipulieren in Shopware 6: Cart-Facade (services.cart) im cart-Hook, Items/Preise/Rabatte hinzufügen ohne PHP-Processor. Trigger: "Cart Facade", "cart script", "App Script warenkorb", "services.cart", "cart hook", "discount per script", "warenkorb script manipulieren". Shopware 6.7.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shopware-checkout:sw-cart-facade-scriptThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Apps (und Plugins via Script) manipulieren den Warenkorb über die **Cart-Facade** im `cart`-Script-Hook — ohne eigenen
Apps (und Plugins via Script) manipulieren den Warenkorb über die Cart-Facade im cart-Script-Hook — ohne eigenen
PHP-Processor.
{# Resources/scripts/cart/my-cart.twig #}
{% set products = services.cart.products.get('...') %}
{% do services.cart.discount('ff-promo', 'percentage', 10, 'FF Rabatt') %}
{% do services.cart.products.add(productId) %}
Facade-Services u.a. products, items, discount, surcharge, price, errors. Läuft im sandboxed Script-Kontext
(shopware-framework → sw-app-script). Für komplexe/performancekritische Logik in einem PHP-Processor (sw-cart-processor).
Ideal für App-basierte Promotions/Gebühren ohne eigenen App-Server.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-checkout