Skip to content

Instantly share code, notes, and snippets.

<?php declare(strict_types=1);
namespace Swkweb\PayPalRemoveTracking\Storefront\Data;
use Shopware\Storefront\Pagelet\Footer\FooterPageletLoadedEvent;
use Swag\PayPal\Storefront\Data\FundingSubscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class PayPalRemoveTrackingSubscriber implements EventSubscriberInterface
{
@aragon999
aragon999 / index.js
Last active June 9, 2021 14:08 — forked from supercat1510/index.js
Erweitern von sw-order-list
import { Component } from 'src/core/shopware';
import template from './sw-order-list.html.twig';
import deDE from '../../../../snippet/de-DE.json';
import enGB from '../../../../snippet/en-GB.json';
Shopware.Locale.extend('de-DE', deDE);
Shopware.Locale.extend('en-GB', enGB);
@aragon999
aragon999 / control
Last active May 19, 2020 17:20
Skeleton for minimal debian control file
Package: %pkgname%
Version: %version%
Section: custom
Priority: optional
Architecture: all
Essential: no
Installed-Size: %size%
Maintainer: %maintainer%
Description: %description%
@aragon999
aragon999 / Dockerfile
Created April 9, 2020 15:11 — forked from daknuett/Dockerfile
Dockerfile for gpt
FROM debian:latest
RUN apt-get update
RUN apt-get install -y gcc cmake libmpfr-dev libgmp-dev git build-essential autoconf
WORKDIR /install
RUN git clone https://github.com/usqcd-software/c-lime.git
RUN (cd c-lime && ./autogen.sh && ./configure && make && make install)
RUN git clone https://github.com/lehner/grid --branch feature/gpt
RUN apt-get install -y wget libssl-dev zlib1g-dev
RUN apt-get install -y rpm
@aragon999
aragon999 / modifer.swkweMediaExists.php
Created November 15, 2019 15:14
[Shopware] Check if a media exists in the template
<?php
function smarty_modifier_swkweMediaExists($mediaPath)
{
$mediaService = Shopware()->Container()->get('shopware_media.media_service');
if ($mediaService->has($mediaPath)) {
return $mediaPath;
} else {
return '';