Skip to content

Instantly share code, notes, and snippets.

@breaker92
breaker92 / sync.sh
Created September 16, 2022 10:36
Sync dir via FTP from Bash
lftp -e "mirror -R localdir/ remotedir/" -u username,password ftp.host.com
@breaker92
breaker92 / CartItemAddRoute.php
Created July 8, 2021 19:53
decorate shopware 6 CartItemAddRoute
<?php declare(strict_types=1);
namespace <your namesapce>;
use Shopware\Core\Checkout\Cart\Cart;
use Shopware\Core\Checkout\Cart\SalesChannel\AbstractCartItemAddRoute;
use Shopware\Core\Checkout\Cart\SalesChannel\CartResponse;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
use Symfony\Component\HttpFoundation\Request;
@breaker92
breaker92 / index.js
Created July 3, 2021 21:45
Add custom Fields to property options
Component.override('sw-property-option-detail', {
template,
data() {
return {
...
customFieldSets: []
};
},