This file contains 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
class ListProductService implements ListProductServiceInterface | |
{ | |
/** | |
* @var ListProductServiceInterface | |
*/ | |
private $service; | |
/** @var Container */ | |
private $container; |
This file contains 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
curl -v -L --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" https://vanwittlaer.de |
This file contains 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
SET foreign_key_checks = 0; | |
TRUNCATE shopware.s_addon_premiums; | |
TRUNCATE shopware.s_articles; | |
TRUNCATE shopware.s_articles_also_bought_ro; | |
TRUNCATE shopware.s_articles_attributes; | |
TRUNCATE shopware.s_articles_avoid_customergroups; | |
TRUNCATE shopware.s_articles_categories; | |
TRUNCATE shopware.s_articles_categories_ro; | |
TRUNCATE shopware.s_articles_categories_seo; | |
TRUNCATE shopware.s_articles_details; |
This file contains 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
;(function ($, window, document, undefined) { | |
'use strict'; | |
window.onload = function () { | |
document.getElementById('delivery').checked = true; | |
$('#delivery').triggerHandler('change'); | |
}; | |
})(jQuery, window, document, undefined); |
This file contains 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
SSH to the runner and execute 'docker system prune --all --volumes --force' - this will wipe any unused docker stuff. |
This file contains 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
'sitemap' => [ | |
'excluded_urls' => [ | |
[ | |
// Possible resources: | |
// - product (\Shopware\Models\Article\Article::class) | |
// - campaign (\Shopware\Models\Emotion\Emotion::class) | |
// - manufacturer (\Shopware\Models\Article\Supplier::class) | |
// - blog (\Shopware\Models\Blog\Blog::class) | |
// - category (\Shopware\Models\Category\Category::class) | |
// - static (\Shopware\Models\Site\Site::class) |
This file contains 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
# run as sudo | |
apt update | |
apt install php-fpm | |
a2enmod proxy_fcgi | |
a2enconf php7.2-fpm | |
a2dismod php7.2 | |
a2dismod mpm_prefork | |
a2enmod mpm_event | |
a2enmod http2 | |
service apache2 restart |
This file contains 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
Define in config.xml: | |
<component name="sw-entity-multi-id-select"> | |
<name>b2bCustomerGroupIds</name> | |
<entity>customer_group</entity> | |
<label>Choose multiple customer groups as B2B groups</label> | |
<label lang="de-DE">Wählen Sie die für B2B vorgesehenen Kundengruppen.</label> | |
</component> | |
Use in twig: |
This file contains 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 bash | |
# | |
# usage: ./dbdump.sh <shopware project root dir> <target file for dump> | |
# | |
# note 1) this script requires PHP and gzip | |
# note 2) the --skip-triggers option breaks the blue-green-deployment however is usefull for re-importing on another server | |
# | |
# Trouble with generated columns? | |
# - See this: https://dba.stackexchange.com/questions/240882/how-to-take-mysqldump-with-generated-column | |
# - Though I recommend to find a compatible mysqldump client |
This file contains 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
# this is a files/folder exclude list to be used with tar when archiving a Shopware 6 project folder | |
# use like 'tar -cvzf --exclude-from=tar-exclude.txt my_archive.tar.gz shopware' | |
# you may have to replace shopware with the name of your project folder, and remove all comment lines | |
shopware/.env | |
shopware/config/jwt/*.pem | |
shopware/var/cache/dev_* | |
shopware/var/cache/prod_* | |
shopware/var/log/*.log | |
# optional: | |
# shopware/files |
OlderNewer