platform-dev | NextEuropa platform we need to install the build system
kandi X-RAY | platform-dev Summary
kandi X-RAY | platform-dev Summary
Before we can build the NextEuropa platform we need to install the build system itself. This can be done using composer:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle status updated event .
- Add plugin settings form .
- Add cart property info .
- Main function .
- Process a translation task .
- Get the response data array .
- Request a set of translations .
- Logs the status updated event .
- Data for the view .
- This method is called when a request is sent .
platform-dev Key Features
platform-dev Examples and Code Snippets
$ ./bin/phing setup-phpunit
$ ./bin/phpunit -c tests/phpunit.xml
$ vim build.properties.local
# The location of the Composer binary.
composer.bin = /usr/bin/composer
# The install profile to use.
platform.profile.name = multisite_drupal_standard
# Database settings.
drupal.db.name = my_database
drupal.db.user =
$ ./bin/phing setup-behat
$ phantomjs --debug=true --webdriver=8643
behat.wd_host.url = http://localhost:4444/wd/hub
behat.browser.name = chrome
$ ./bin/behat -c tests/behat.yml
$ ./bin/behat -c tests/behat.yml -p [profile]
$ ./bin/behat -c test
Community Discussions
Trending Discussions on platform-dev
QUESTION
I am trying to use Github self hosted runners to build the native image for my quarkus applications.
This is working great for me on the Github hosted runners, but I want to do this on self hosted runners so we don't blow our github actions minutes budget.
When I updated my workflow to use the self hosted runners I started getting this strange exception.
...ANSWER
Answered 2022-Mar-24 at 23:21It appears this is a bug in Quarkus 2.7.5.Final only. The fix was to downgrade to 2.7.4 and open https://github.com/quarkusio/quarkus/issues/24547
QUESTION
i am trying to set the cover of a product programmatically, by doing this for example;
...ANSWER
Answered 2021-Jan-31 at 06:14You should pass cover media ID in the following way:
QUESTION
I am a beginner to Shopware. I need to fetch data from an external API and display it in Shopware storefront. So far I have created a REST API inside the folder Core/Api/
where I have written all the http-client
codes to fetch data.
My route is something like this:
...ANSWER
Answered 2021-Jan-26 at 11:51I think that you don't need the API route. First of all, API is for admin(back office app) purposes and is not for a storefront.
You need to move
all the
http-client
codes to fetch data
to some own service. Then you can inject that new service via container to your subscriber and call something like $this->externalApiService->getData()
in your onFooterPageLoaded()
method.
To add some data (extend footer data) you need to add extension to pagelet e.g.
QUESTION
I am beginner to Shopware and following documentation most of the time. According to the documentation for REST API https://docs.shopware.com/en/shopware-platform-dev-en/how-to/working-with-the-api-and-an-http-client
I can retrieve product data by calling the request
function
ANSWER
Answered 2021-Jan-20 at 08:45You need to add association
parameter to your request. In the case of GET product request it should look like this /api/v3/product?associations[media][]
When you did it in product response you will get objects like this:
QUESTION
I want to query country states via the store-API (https://docs.shopware.com/en/shopware-platform-dev-en/store-api-guide/sales-channel?category=shopware-platform-dev-en/store-api-guide) In the documentation I don't see anything regarding countries, but I have the following reference: GET /store-api/v3/context gives
...ANSWER
Answered 2020-Dec-09 at 09:00You can use GET /store-api/v3/country?associations[states][]
endpoint.
QUESTION
similar to this question in sw-entity-many-to-many-select in a own admin module product variants without names are visible i want to display the assigned products on my storefront page, like it is discribed here (in a tab with {% sw_include '@Storefront/storefront/component/product/card/box-standard.html.twig' with {'product': product} %}
): https://docs.shopware.com/en/shopware-platform-dev-en/how-to/indepth-guide-bundle/storefront . This works, but the image and the price is not loaded, but the other informations are shown. Has anybody an idea why or what is missing?
See: Screenshot
...ANSWER
Answered 2020-Nov-17 at 09:31Instead of loading the product with the "normal" product repository you can use the sales_channel.product.repository
repository instead.
The sales-channel repositories load the entities with all necessary associations, so you don't have to load those associations yourself.
For details you can check the \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductDefinition
definition, in that class the additional associations and fields are configured that are loaded by the sales channel repository.
Keep in mind that the product sales channel repository implements the \Shopware\Core\System\SalesChannel\Entity\SalesChannelRepositoryInterface
instead of the \Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface
and thus the search method requires a SalesChannelContext instead of the Context.
QUESTION
I want to upload a plugin in the Shopware store after upload and defined require filed when i try to submitting my plugin for code review i got an error
...ANSWER
Answered 2020-Nov-11 at 15:24If your technical name is xxx46AKGoogleMapPlugin
then your shopware plugin class and the folder should be named exactly like that.
You should also consider using your vendor prefix xxx46AK
as a part of your composer namespace, that way your namespace is unique.
Please refer to these guidelines: https://docs.shopware.com/en/plugin-standard-for-community-store#the-required-composer-json-file-was-not-found
QUESTION
I am attempting to get the token value from a keycloak service in an angular frontend. I am using Angular 10.1.3 and keycloak-angular 8.0.1.
The constructor for my class has the KeycloakService in it and I try to pull the token there for now.
The function theToken shows the different ways I have tried to access the token, all of which give undefined.
The keycloak instance shows it is there as if I could access it like this.kc.getKeycloakInstance().token
but that gives undefined as well.
ANSWER
Answered 2020-Oct-16 at 14:46This is how I ended up getting the token and it worked to add it to my headers in an HttpInterceptor.
QUESTION
I have a Jhipster built backend and am looking to log when an invalid authentication Bearer token is sent with a request.
Currently using Postman I can send a valid token to get information I need and that is logged like so:
...ANSWER
Answered 2020-Oct-14 at 19:00Spring Security has its own logging, you just need to enable it.
Put the following in your application.properties:
QUESTION
I have a Shopware 6.3 shop and need to migrate images to it using the integration API.
How should I construct a body for a media upload? Do I need to put a file somewhere or just pass in the link?
I have managed to push new products into Shopware via guide here: https://docs.shopware.com/en/shopware-platform-dev-en/admin-api-guide/writing-entities?category=shopware-platform-dev-en/admin-api-guide#creating-entities but I am not sure how to handle media. In this guide it is only explained how to create links between already uploaded media files to products in here https://docs.shopware.com/en/shopware-platform-dev-en/admin-api-guide/writing-entities?category=shopware-platform-dev-en/admin-api-guide#media-handling but no examples as to how to actually push the media files.
I have URL's for each image I need (in the database, along with produc id's and image positions).
The entity schema describes media as:
...ANSWER
Answered 2020-Sep-04 at 09:48One possible solution:
FIRST: create a new media POST /api/{apiVersion}/media?_response=true
SECOND: "Upload Image" /api/{apiVersion}/_action/media/{mediaId}/upload?extension={extension}&fileName={imgName}&_response=true
more information can be found here: https://forum.shopware.com/discussion/comment/278603/#Comment_278603
In CASE images are for products use the endpoint POST /api/{apiVersion}/product-media
and set the coverId
A complete listing of all routes is available via the OpenAPI schema: [your-domain/localhost]/api/v3/_info/openapi3.json
It's also possible to set all the media and the cover & coverId during product creation by one request. Therefore, set the product Cover
and product Media
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install platform-dev
Create a new file in the root of the project named build.properties.local using your favourite text editor:. This file will contain configuration which is unique to your development machine. This is mainly useful for specifying your database credentials and the username and password of the Drupal admin user so they can be used during the installation.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page