Gitter got replaced by Slack. Please use following invite link https://slack.shopware.com to rejoin the awesome Shopware community! https://www.shopware.com/en/news/an-introduction-to-the-shopware-community-slack/
Is there a way to use upload file function in plugin config area.
My payment plugin require a pem file to use in configuration.
I tried with <component name="sw-media-upload-v2">
<name>abc</name>
<label>Upload pem file</label>
<required>true</required>
<fileAccept>application/x-pem-file</fileAccept>
<allowMultiSelect>false</allowMultiSelect>
</component>
Where I can find documentation how to use upload file, store the file in a specific plugin directory?
Any examples/docs of how to work with uploaded files please.
Hi guys, any one to help me to get this query running with DAL in shopware 6?
SELECT
od.articleordernumber
, cc.countryname
, SUM(od.quantity)
FROM s_order_details AS od
JOIN s_order AS o
ON o.id = od.orderID
JOIN s_order_shippingaddress AS os
ON os.orderID = od.orderID
JOIN s_core_countries AS cc
ON cc.id = os.countryID
WHERE DATE(o.ordertime) BETWEEN DATE_FORMAT(NOW() - INTERVAL 1 MONTH, '%Y-%m-01') AND LAST_DAY(NOW() - INTERVAL 1 MONTH)
GROUP BY od.articleordernumber, cc.id;
@komali_s_gitlab @/all
Did you found a solution for your Problem from 2019?
Fatal error: Uncaught Doctrine\ORM\Mapping\MappingException: No identifier/primary key specified for Entity "Shopware\Models\Attribute\Shop" sub class of "Shopware\Components\Model\ModelEntity". Every Entity must have an identifier/primary key. in /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:46 Stack trace: #0 /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1009): Doctrine\ORM\Mapping\MappingException::identifierRequired('Shopware\Models...') #1 /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(265): Doctrine\ORM\Mapping\ClassMetadataInfo->validateIdentifier() #2 /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(245): Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL) #3 /html/develop/rivolta/rivolta/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/ in /html/develop/rivolta/rivolta/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php on line 46