1,549
questions
-1
votes
0
answers
23
views
How to handle local Shopware development with separate repositories [closed]
I have a docker-compose setup similar to dockware and my team prefers to work with separate repositories for every plugin/theme over versioning them inside the installation in custom/plugins for the ...
0
votes
1
answer
21
views
Shopware 6.6 - CMS Resolver
I have a custom CMS Resolver with demo data. First, i use shopware 6.5, everything works fine. I updated to shopware 6.6. If i drag & drop my CMS Element, the data of the content (with my defined ...
0
votes
0
answers
19
views
How to implement "Bind customers to sales channel" functionality in shopware 6
I'm working on a Shopware 6 project and I'm trying to implement a feature to optionally bind customers to sales channels. I have a custom component that extends sw-customer-base-info.
I want to ...
0
votes
0
answers
14
views
Use web hook for newly written reviews
I was wondering if anyone could point me into the right direction with my App (SW v 6.6.2.0):
I’d like to register to a webhook thats activated when a user writes a (new) review:
The event ...
0
votes
0
answers
29
views
Error on onChange, onInput and Javascript on twig component and page : Shopware 6
I've just started developing extensions on Shopware 6, and for the past two weeks, I've been facing a persistent problem: I can't retrieve the new values when my fields are modified. Whether I'm using ...
0
votes
0
answers
34
views
in shopware6.4 opensslErrorStack
In shopware6.4.20.0 I got this ERROR when I compile bin/build-storefront.sh:
`node:internal/crypto/hash:79
this[kHandle] = new _Hash(algorithm, xofLen, algorithmId, getHashCache());
...
0
votes
0
answers
15
views
At what point are shopware rules applied to the cart?
The Shopware v6.5 CartRuleLoader class contains the load method which contains this piece of code $rules = $this->loadRules($context->getContext()).
After the rules are gotten, the $ruleIds are ...
0
votes
0
answers
11
views
Shopware 6: Updating orders' sales channel when customer's sales channel changes
I'm working on a Shopware 6 plugin that allows changing a customer's sales channel in the admin panel. However, I've encountered an issue where after changing a customer's sales channel, they can no ...
0
votes
0
answers
26
views
Which Shopware 6 class interpretes shopware rules
I am creating a custom plugin with custom fields that requires Shopware rules to work. Which Shopware 6 class processes or interpret the Shopware rules especially the 'payload' column (in the database ...
-1
votes
0
answers
26
views
Shopware 6 app - load additional data for the Storefront (global)
What I want to do is load the category tree from the application configuration and display it in HeaderPagelet data. Using the plugin I would make a Subscriber like this:
class HeaderSubscriber ...
1
vote
0
answers
19
views
Shopware 6: Custom translations in en-GB.json not overriding default snippets
I'm having trouble overriding default Shopware 6 snippets with my custom translations in a plugin. Despite defining custom translations in my en-GB.json file, the default values are still being ...
0
votes
0
answers
19
views
Usage of the admin-api in shopware 6 plugins
Is there a "right" way to consume the Shopware Admin API inside a plugin?
I'm looking for the equivalent of the JS function loginService.getToken(), which provides the necessary ...
0
votes
0
answers
18
views
Command issue in shopware 6.4.20.2 version
As i have created a command in shopwre 6 which checks the checkbox in products and that checkbox field i have created from admin and assigned to products . and my command work properly in latest ...
1
vote
1
answer
51
views
Retrieve installed plugin in Shopware
I currently retrieve if a plugin is installed like this:
$adyenPlugin = $this->pluginRepository->search(
(new Criteria())->addFilter(new EqualsFilter('name', self::...
0
votes
0
answers
15
views
Shopware 6 Products are hidden in Frontend
Shopware 6 - 6.4.20.2
I am having issues seeing my products that are active and selected for the sales channel in frontend of my page.
I checked in Shopware 6 Backend for the Category what products ...
0
votes
0
answers
1k
views
Product with Long Name Not Found in Storefront Search Using Partial Query
I have a product in Shopware 6 with a long name, such as "XXXXXX XXXX XXXXXXX EXAMPLETEST TG 4 XXXX XXXXX XXXX". When I search for "TG 4" in the storefront, this product is not ...
0
votes
1
answer
44
views
Shopware pagination using wrong total-property to calculate totalPages in pagination.html.twig
In Shopware I want to implement pagination for reviews on the product detail-page.
To achieve this I extend pagination.html.twig
{% sw_include '@Storefront/storefront/component/pagination.html.twig' ...
0
votes
1
answer
55
views
How to access user's first_name and last_name from customer's created_by_id in a custom Shopware 6 plugin?
I'm developing a custom plugin for Shopware 6 and I'm extending the sw-customer-base-info component. I need to display the first name and last name of the user who created a customer.
In the database, ...
1
vote
1
answer
89
views
Shopware 6 Webhooks not being fired when expected
I'm building a frontend application that uses Shopware 6 as a headless shop system. As part of this implementation, I'm using Webhook events to detect changes in the catalog.
So far, everything works ...
0
votes
0
answers
32
views
Import custom fields using shopware6 API
We are importing data from an ERP system using this example code
public function createProductRecords($productDataArray, $productId)
{
$productRecord['id'] = $productId;
if (isset($...
0
votes
0
answers
16
views
searching the type of custom fields for shopware 6 app
I'm writing an app for shopware 6.6 and want to add some custom fields.
Managed to add them to the <related-entities><product_manufacturer/>
but can't find the type of an html field.
What ...
0
votes
0
answers
31
views
Devenv doesn't start after adding "serverAliases" to Caddy option in nix file
I use Shopware locally in a Devenv environment. The Shopware admin must be accessed via the license domain, otherwise the plugins with rental licenses will not work.
To do this, the license domain ...
0
votes
0
answers
24
views
Shopware administration save custom field while creating new order
I have created a custom field called OrderType, now my task is to submit the selected order type to the database while creating an order in shopware administration panel.
How can I do it?
I have tried ...
1
vote
1
answer
99
views
Supervisor processes restart constantly
I use Shopware 6 and want to disable the admin worker. Instead, Supervisor should be used for queue and task processing, because the hoster does not support systemd.
The docs of Shopware 6 mention the ...
1
vote
0
answers
26
views
How to programatically trigger a flow builder on shopware6
I have implemented a flow that should trigger based on when the delivery status changes.
in this flow i have a condition that that reflects "order with tag" is one of "a tag which i ...
0
votes
0
answers
50
views
Remove assignments of all product properties of specific product id using Shopware 6 Admin-API
In Shopware 6 (6.6.3.1) using Admin-API (JSON) I try to remove the assignments of all product properties of a specific product providing a product id (UUID) without removing the product properties ...
0
votes
1
answer
39
views
Add association from ProductDefinition
I have a basic customAttributes entity with two fields: attributeName and attributeValue. The goal is to retrieve the customAttributes linked to a product whenever I retrieve the products in Shopware.
...
0
votes
0
answers
38
views
Add custom flow trigger in Shopware 6.6
I have a question: i created a custom flow trigger using this documentation: https://developer.shopware.com/docs/guides/plugins/plugins/framework/flow/add-flow-builder-trigger.html . It works ...
1
vote
0
answers
68
views
Shopware 6.6 mixed content error when using reverse proxy
My Shopware runs on port 8080 using the HTTP protocol. Now I am using Caddy 2 as a reverse proxy. Both store and admin resources can be accessed normally, but I encounter a Mixed Content error when ...
0
votes
3
answers
180
views
$emitter.subscribe for events inside init() is not working
I have a JS plugin in Shopware 6, that subscribes to two events of another JS plugin:
One that fires after the user interacts with the page and one that fires at the end of init().
The latter does ...
0
votes
1
answer
46
views
How to change the default pagebuilder margin in Shopware 6?
By default a cms-element in the pagebuilder of Shopware 6 has a margin of 20px. I want this value to be zero, how can I change this?
Just to make it clear: I know I can simply change this value ...
0
votes
0
answers
38
views
How do I get the payment method in an order export profile?
I created an individual export profile for orders via the Import/Export-Modile in Shopware 6.
I would like to add "transactions.paymentMethod...." to a field to have the payment method with ...
0
votes
0
answers
33
views
Shopware 6.5 - Transactional mail testing - Workflow + Tools?
What is a preferably automated way to create transactional mails and test them with different sets of data?
Speaking of the admin panel UI (Settings -> Email templates), I have some trouble ...
1
vote
2
answers
104
views
Shopware 6 plugin: How to Resolve 'Undefined Array Key' Warning?
I'm working on a Shopware 6 plugin and encountering a warning related to accessing an array key that doesn't exist.
Here's the relevant code snippet:
$customFields = $order->getCustomFields();
$...
0
votes
1
answer
93
views
Update 6.4 to 6.5: Class "Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle" not found in Kernel while running bin/console
I am getting the following error while updating Shopware 6.4 to 6.5 or 6.6:
PHP Fatal error: Uncaught Error: Class "Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle" not found ...
0
votes
1
answer
90
views
Shopware 6.6 plugin installation with composer dependency leads to an error
The installation worked flawless with Shopware 6.5 and whichbrowser/parser is the only dependency.
Shopware version: 6.6.3.0
Environment: dockware/dev:6.6.3.0 container
Required packages in the ...
1
vote
1
answer
70
views
Object cache (cache layer for custom Store API route) lives few seconds on Shopware 6.5.8.10
I implemented an object cache (cache layer for custom Store API route) using this guide. After updating Shopware 6.4 to Shopware 6.5.8.10 my cache lives only about 15 sec (before it lives much longer ...
0
votes
0
answers
29
views
Is there a way to make paypal payments work on the registration page of shopware?
I am trying to make a single page for customer registration and order confirmation, meaning that as soon as a customer registers in the /checkout/register page, instead of redirecting him to the /...
1
vote
0
answers
14
views
Shopware 6.4 Cart Validator always returns NULL for LineItem getQuantityInformation Method
I have a Custom product which when added to cart, I intend to validate the cart and ensure the custom product meets certain criterias before checkout.
Please see Shopware Documentation: Add Cart ...
0
votes
0
answers
22
views
Which columns/entities do the hashes contained in the article.products column in Shopware 6 point to?
I am looking to migrate a Shopware v6.3.5.4 installation to Odoo and am familiar with neither Shopware or Odoo. I am trying to create a SQL script that will return product<>article ...
0
votes
0
answers
55
views
Shopware 6 on HTTP (without SSL)
Is it possible to set Shopware 6 to work properly without SSL?
I have this error in the log, I suppose it is because it is running on HTTP:
request.CRITICAL: Uncaught PHP Exception Lcobucci\JWT\Signer\...
0
votes
0
answers
47
views
Shopware: You have requested a non-existent service "form.factory"
I'm attempting to update from Shopware 6.4 to 6.5 and encountering the following error: You have requested a non-existent service "form.factory".
This error occurs when using $form = $this-&...
0
votes
0
answers
55
views
How to properly extend Shopware standard document templates, like e.g. invoice, in version 6.6?
On extending documents within a theme:
changes to /Resources/views/documents/style_base_portrait.css.twig show up, changes to the base.html.twig next to it don't.
Here is the snippet for testing
{% ...
1
vote
0
answers
34
views
Custom Product Extension Translation Not Saving - 400 Bad Request Error
I'm developing a custom product extension for Shopware 6 that includes a translatable field ("headline"). I've followed the recommended steps to set up my entity definitions and migrations, ...
0
votes
0
answers
24
views
Issue with Dynamic and Static Body Parameters in Shopware Flow Builder Webhook
Description / Steps to Reproduce:
I'm experiencing an issue with configuring a webhook action in the Shopware Flow Builder. I've set up a flow to call a third-party API service when the payment status ...
1
vote
1
answer
94
views
How to access previous orders of a customer in Twig template in Shopware 6?
I am working on a Shopware 6 plugin and need to modify a Twig template to include conversion tracking parameters based on whether a customer has previous paid orders.
Specifically, I need to set the ...
0
votes
0
answers
41
views
API Integration: How to get complete order information from Shopware
I am developing an API integration with Shopware.
Unfortunately, I don't have access to full control over the Shopware web site.
The whole project is being developed by GetPrintBox (PBX).
Some ...
2
votes
1
answer
79
views
Custom Product Extension Data Not Saving in Administration
I'm developing a plugin for Shopware 6 that extends the product specifications tab with additional fields. The data is loaded correctly when data is manually inserted into the database tables (...
2
votes
1
answer
57
views
Shopware 6 Plugin: Loading failed for the <script> with the src "https://rast.swag.de/"
I'm working on a Shopware 6 project, and in my base.html.twig file, I have the following code:
{% block layout_head_javascript_tracking_swag_global %}
<!-- ... -->
{% if swagData.active %...
0
votes
0
answers
45
views
Make entity field available in Shopware 6 store-API when it is not flagged as API aware
Is it possible to make a field of an entity available in Shopware 6 store-API, when the field is not flagged as api aware in entity definition, e.g. visibilities association of a product?