Questions tagged [shopware6]
Shopware 6 is a PHP based eCommerce solution. It is open-source and is available free as well as with commercial licenses.
1,051
questions
0
votes
0
answers
26
views
Shopware 6 Plugin: Why do I need to click the save button twice to create a new entry?
I'm working on a Shopware 6 Plugin, and I'm facing an issue with the save functionality. Specifically, when I click the save button, it requires me to click it twice in order to create a new entry in ...
0
votes
0
answers
14
views
Shoopware 6 export sales channel id
What setting in the export profile do I need to make if I want to make an export from only one specific sales channel?
The column sales_chanel always remains empty and all products from all sales ...
0
votes
0
answers
22
views
Shopware 6.5.4.1 Javascript remove class problem [duplicate]
Console outputs "Clicked Outside", but show CSS class is not removed as intended (hide dropdown on click outside):
var dropdownElement = document.getElementsByClassName("filter-multi-...
2
votes
1
answer
29
views
Shopware 6 override pagination.html.twig not working
I'm trying to override the pagination.html.twig template in my Shopware 6 storefront but it's not working.
My pagination.html.twig is:
{% sw_extends '@Storefront/storefront/component/pagination.html....
1
vote
1
answer
25
views
How can I disable and mark Shopware 6 config field as obsolete?
How can I disable and mark Shopware 6 config field as obsolete? Hello, I am new to shopware. I have a plugin that has a config field I want to disable it mark it as obsolete.
config.xml
<input-...
0
votes
0
answers
23
views
Add custom search keywords in Shopware 6
Currently I am using the EAN field for custom search words, when adding more words it becomes unworkable.
This is what I use to update the product using API:
if (isset($productDataArray['ean'])) {
...
1
vote
1
answer
26
views
Issue with Python swagger-client for Shopware 6 - Empty Data in Responses
I have generated a Python client using the swagger-codegen-cli (v3) Docker image in my GitLab CI pipeline for a Shopware 6 shop. The problem I am encountering is that every endpoint I call returns ...
1
vote
1
answer
40
views
How can I implement CSS code-splitting by page-type in Shopware 6?
I'm currently working on optimizing the CSS loading process for a Shopware 6 storefront. The default behavior seems to bundle all styles into a single all.css file, which is less than optimal in terms ...
2
votes
1
answer
35
views
Get Shopware 6 Product URL
How do I get the product URL from Shopware 6.
When I 'read' data for a particular product via the product ID, the 'seoURL' field is usually empty. How do I retrieve the correct product URL?
1
vote
1
answer
34
views
Shopware 6 plugin: Config value is incorrect after update due to removed config key
I have a plugin that handles a configuration value for auto-publishing reviews (reviewModeration). In version 1.6.3, I added a new config key autoPublishStars. Furthermore, I want to totally remove ...
1
vote
0
answers
21
views
Add button to Config.xml
I wanted to know if it is possible to add a button to the config.xml. I have read a lot about this but I can't find a clear answer.
Some talk about creating a custom component but it is not explained ...
1
vote
0
answers
22
views
Icon cache in Shopware 6 let's icons disappear after all.js is loaded
When Settings-> System->Storefront->Activate icon cache is activated, the download center plugin does not show icons after the page is loaded (before all.js is parsed, the icons are briefly ...
0
votes
0
answers
46
views
Admin panel not loading after upgrade to 6.5
I'm upgrading Shopware from 6.4.20.2 to 6.5.5.2.
Admin panel loads, but after logging in I see a call to api/_info/entity-schema.json which gives a 404 response.
I have some plugins... How can I find ...
0
votes
2
answers
50
views
How to collect Symfony cache metrics in production?
I am using Symfony 5.4 together with Shopware 6.4
I would like to collect metrics about the cache usage like hits/misses in production.
This should be done in a way that doesnt impact production ...
-1
votes
0
answers
27
views
use dockware/essentials:latest with mysql 8 [closed]
I'm trying to upgrade Shopware 6.4 to 6.5, I'm using dockware/essentials:latest that has mysql 5, but the upgrade requires mysql8, how can I upgrade it or is there a complete tutorial on how to do the ...
1
vote
1
answer
47
views
Shopware 6 plugin: Button added to review list in Shopware 6.1 no longer appears in 6.5
I have a plugin for Shopware 6.1 that adds a button to the review list page in the administration. It uses a javascript file to override the sw-review-list component:
index.js
import template from './...
-2
votes
1
answer
65
views
Howto throw Exceptions in Admin subscribed events?
I have a shopware6 payment provider plugin.
In this i have two subscribed events in my plugin for admin hooks for processing credit and capturing to the api of the payment provider.
OrderEvents::...
0
votes
1
answer
42
views
Shopware Commercial - installing Advanced Search plugin
in my local dev environment (devenv) I try to install the advanced search plugin for Shopware.
Shopware version is the latest (6.5.5.1), composer does not allow me to require version 3.4.2, as it's ...
0
votes
0
answers
17
views
Shopware 6 - Own Free Product is not editable
We are using our own Free Products plugin in which we programmatically set the price of the free products to zero. like so:
$lineItem = $this->factory->create([
'type' => LineItem::...
1
vote
1
answer
57
views
Shopware 6 plugin: How to Remove and Migrate boolean config to multi-select config
I have a Shopware 6 plugin that currently uses a boolean config reviewSkipModeration value that automatically publishes any reviews submitted through the plugin:
config.xml
<input-field type="...
0
votes
1
answer
34
views
Edit Admin templates
Is it possible to edit the admin panel templates using plugins or in another way without touching the vendor directory?
I need to change the order of fields in order editing. Using plugin, editing the ...
0
votes
0
answers
18
views
Can't parse boolean value [0], expected [true] or [false] in elasticsearch 7.17 and shopware 6.4
I have working environment of shopware 6.4 and elasticsearch 7.17. Es only sometimes return with exeption, most of the search term are found. There is no kibana working with es.
In the logs there is ...
1
vote
0
answers
24
views
How to avoid stackable lineItems in Shopware 6
So I have a product which gets personalized on the product detail page. Since it has been personalized it doesn't make sense to stack it in the cart anymore, because the individual personalized ...
1
vote
1
answer
35
views
Make Shopware 6 Tabs Component <sw-tabs> work
How do I get Shopware 6 component to work properly? I am still learning
<sw-tabs>
<sw-tabs-item>
Content Name
</sw-tabs-item>
<sw-tabs-item>
...
1
vote
1
answer
21
views
Shopware6 filter for empty JSON array
I want to filter (in a command) all orders without any tracking code attached but I don't know how to apply a filter with this as the EqualsFilter does not accept an array as input.
$criteria = new ...
0
votes
0
answers
17
views
Shopware 6 Plugin clear Vue Cache or History
I'm finished a Plugin which is a little bit complex. I uploaded the Plugin, with FTP, in the right Folder and could installed it. This works all fine. But on testing I found a few little bugs. I ...
0
votes
1
answer
32
views
Can I have consecutive inheritance with Themes?
I use multiple saleschannel for shops with different languages but till now it was not necessary to have different views or styling.
Unfortunately this is not the case anymore and I tried to create ...
0
votes
0
answers
23
views
Custom build vs dockware/dev:latest
I am trying to build a custom dockerfile for shopware6:latest :
FROM ghcr.io/friendsofshopware/shopware-cli AS shopware-cli
FROM node:18 AS node
FROM php:8.2-fpm
ARG UNAME=www-data
ARG UGROUP=www-...
1
vote
0
answers
23
views
Shopware 6 Performance while experiencing Peaks
We manage a Shopware 6.4.15 shop on behalf of our client.
In the recent past, a new, product was launched with a limited quantity, which generated a strong rush (approx. 50-60 requests / second) to ...
1
vote
1
answer
52
views
Shopware plugin dependencies - additional PHP library
I've created a plugin that requires an additional php library that is not in Shopware requirements. Because of that, I cannot install the plugin on Shopware test environment to push it through ...
0
votes
1
answer
50
views
remove config default while uninstall plugin
i have a plugin where i set config defaults at the installation - die "defaultValue" Option in the config.xml won't work out of the box:
private function addDefaultConfiguration(): void
...
2
votes
1
answer
81
views
Shopware 6 plugin: How to Remove/Migrate boolean config to multi-select config
I have a Shopware 6 plugin that currently uses a boolean config reviewSkipModeration value that automatically publishes any reviews submitted through the plugin:
<input-field type="bool"&...
-2
votes
0
answers
24
views
Need a Rule for lineItems in cart with the same delivery day
I have a special requirement for the price rules in one project and am struggling how to solve this.
there are products that shall cost more, when a date/string, given via additional fields for ...
2
votes
0
answers
25
views
How to include "redirectParameters" to confirmation URL on registration email?
If a customer access an URL which requires customer to be logged (let's say mydomain.com/myrestrictedpage), Shopware tries to preseve the URL and then, after the login, customer is redirected to the ...
0
votes
0
answers
50
views
Shopware 6.5: customizing administration module or component
I would like to restrict parts of the administration dashboard to selected user groups.
Therefore I created a main.js under "src/Ressources/app/administration/src" with this content:
import '...
-2
votes
1
answer
30
views
How to verify the JWT token in the new Storefront - App communication in Shopware 6.5.5?
maybe someone will be able to help me, I am trying out the new direct Storefront/Store-API communication to Appsystem Backend, released in SW6.5.5: https://developer.shopware.com/docs/guides/plugins/...
2
votes
0
answers
34
views
Nested LineItems not showing in admin
I’ve created Nested LineItems and they are wrapped in a container. See this topic for my code: Product could not be found - Nested Line Items
Now when I place an order I can see the container lineItem ...
0
votes
0
answers
21
views
how can i add a product to a cart via ajax request in shopware 6
I have implemented a product configurator and I want to enable users to add a configured product to their shopping cart when they click on the "Request" button.
Here is what I've tried so ...
0
votes
1
answer
33
views
How to override `storefront/component/line-item/element/label.html.twig` on cart page?
Would like to override storefront/component/line-item/element/label.html.twig file available on the cart page.
I tried to add the below code in the override twig template then it is throwing an error ...
0
votes
1
answer
54
views
Shopware 6 plugin- How to limit StorefrontRenderSubscriber scope to listing and search pages
I am developing a Shopware 6 plugin that handles pagination. In my plugin, I have a StorefrontRenderSubscriber which passes some data to the TWIG templates:
use Symfony\Component\EventDispatcher\...
-1
votes
1
answer
48
views
Shopware 6 visibilities and categories are empty in api
I created a plugin for Shopware 6 and I tried to create multiple products. Before I created some products, I added some demo products in the administration panel. But if I read the variables of those ...
0
votes
1
answer
34
views
Shopware 6 Get all sales channels
I want to get all sales channel from shopware 6 and perform some actions on it. For the actions i need the salesChannelsId. But how do i get this?
I've created a subscriber, which is waiting for the ...
0
votes
1
answer
28
views
Shopware 6. Config save post process
I'm trying to post process when my module's configuration is saved.
i tried
public static function getSubscribedEvents(): array
{
return ['system_config.written' => 'onSaveConfig'];
...
0
votes
1
answer
39
views
How should 3rd party composer packages be managed for Shopware Store Plugins that need to work with Shopware 6.4.x versions?
I'm wondering about the best way to manage 3rd party composer packages within a Shopware 6 extension that I intend to release on the Shopware Store. I initially tried an approach involving creating a ...
0
votes
0
answers
22
views
Extend and persist cart line item with a struct object
What would be the correct way to extend a LineItem with an Object (Struct). Since a few versions only scalar values are allowed in the payload, I'm currently bypassing the validation by using the &...
0
votes
0
answers
15
views
Shopware 6 app storefront build shipping problem
my Shopware 6 App has custom JavaScript and is built via bin/build-storefront.sh which generates a js file inside the dist folder, which I have to ship. I just zip the folder my_app inside custom/apps ...
0
votes
0
answers
34
views
Shopware 6 (Symfony) - Disable CMS Resolver cache - Possible?
I have written a CMS element in Shopware 6 and implemented a resolver for it. The resolver works with a session. Unfortunately the resolver is cached after an initial call. Can I disable this for a ...
1
vote
3
answers
78
views
Shopware 6 Plugin: How to add auto-publish star rating threshold for Reviews without breaking backwards compatibility?
I'm currently extending the Review Plugin for Shopware 6. The plugin already has a reviewSkipModeration config option that automatically publishes any reviews submitted through the plugin.
I'd like to ...
0
votes
0
answers
25
views
Shopware 6.5.4.0 snippet name shows when empty [duplicate]
I would like to use a snippet to determine the content of an element and if the snippet is empty, the element should not be displayed.
But if the snippet is empty its own name is always displayed as a ...
0
votes
1
answer
54
views
Product could not be found - Nested Line Items
I've got this function in a custom controller:
public function addLineItems(Cart $cart, RequestDataBag $requestDataBag, Request $request, SalesChannelContext $context): Response
{
$lineItemIds = $...