Skip to content

Instantly share code, notes, and snippets.

@breaker92
breaker92 / sync.sh
Created Sep 16, 2022
Sync dir via FTP from Bash
View sync.sh
lftp -e "mirror -R localdir/ remotedir/" -u username,password ftp.host.com
@breaker92
breaker92 / CartItemAddRoute.php
Created Jul 8, 2021
decorate shopware 6 CartItemAddRoute
View CartItemAddRoute.php
<?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 Jul 3, 2021
Add custom Fields to property options
View index.js
Component.override('sw-property-option-detail', {
template,
data() {
return {
...
customFieldSets: []
};
},