Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Almare
    @almare
    Does anyone have also problems with superStack is undefined on sw-product-detail ? It looks to me that the inheritance is only working to computed function not to methods...
    aleckscastro
    @aleckscastro

    Hello "together." How can I incorporate the entity "unit" (pointer="product.unit") as a "<sw-entity-single-select ...> into my custom bundle? I've used {% block sw_product_price_form_unit_field %}'s content and the select list is displayed, but when I pick a unit, it throws an error: Status Code: 401 Unauthorized

    Ok, I think what I need is Entity Aggregation https://docs.shopware.com/en/shopware-platform-dev-en/references-internals/core/dal#entity-aggregation

    pawonpawon
    @pawonpawon
    Hi. Quick question: to create an order through API .. can it be done in one call, or should I make separate calls to create orderAddres, orderCustomer, orderDelivery and orderLineItems ??
    brainium
    @brainium
    hi guys… i want to add french, but i can only select BASE de-DE and BASE en-GB in the sales channel. where do i need to edit the translations?
    tinect
    @tinect
    install french-plugin 🤔
    Patrick Weihe
    @neofireplugin
    Hi, to update a product price rule... is it possible to replace the data?

    $array["prices"]['0']['ruleId'] = '780753d6ad57490593da1cc3926d4a92';
    $array["prices"]['0']['quantityStart'] = 1;
    $array["prices"]['0']['quantityEnd'] = 999;
    $array["prices"]['0']['price']['0']['currencyId'] = 'b7d2554b0ce847cd82f3ac9bd1c0dfca';
    $array["prices"]['0']['price']['0']['net'] = '100';
    $array["prices"]['0']['price']['0']['gross'] = '119';
    $array["prices"]['0']['price']['0']['linked'] = true;

    With this array it will not replace the data

    tinect
    @tinect
    @neofireplugin when I created such process I had to delete existing on my own
    Patrick Weihe
    @neofireplugin
    ok thanks
    brainium
    @brainium

    install french-plugin 🤔

    Too easy… i was searching for .po files ;)

    Patrick Weihe
    @neofireplugin
    @tinect by the tags it works with replace
    Micha Hobert
    @Isengo1989
    When using a shell script in the production template and requiring a new repo it always adds the dev repos -> is there a workaround?
    composer require "test/test"
    The --no-dev does not work with a require
    Auswahl_804.png
    Auswahl_804.png
    an install --no-dev works after that, but feels weird
    Youmar0504
    @Youmar0504
    Hey,
    How can I use the API resources in shopware6?
    Per example in shopware5, you can find them in \Shopware\Components\Api\Manager::getResource('Customer').
    I need this to automatically create/update customers when its required
    8 replies
    Victor Ndambakuwa
    @vttn
    Does one have to create the entity table via migrations?
    Marcus C
    @macidev
    Hey, is there any other person having issues regarding properties and displaying them in the properties-panel in product?
    Pagination in the select dropdown doesn't work in 6.2.0
    (local dev and different setup with same version online with complete different database)
    pawonpawon
    @pawonpawon

    @macidev yes - I had similar issues on 6.2 RC .. but on the properties edit page (/admin#/sw/property/detail/UUID). (so editing of the property itself, not on the product page). On that page, only the first 10 are shown and you will need to use the search-box the find others.

    I did not check the product page yet, but I suspect these issues are related

    Marcus C
    @macidev
    yeah, great, so the fix is wait for 6.2.1?
    did you report it? @pawonpawon
    Slavko Babic
    @slavkobabic
    In email temlates order does not allow access to the lineItems, does somebody know how to access to lineItems in the mail templates?
    pawonpawon
    @pawonpawon
    @macidev No, not yet - had found this out yesterday.
    Marcus C
    @macidev
    oh sh*t, i'm currently writing an issue on issue.shopware.com (in German and automated translation with deepL)
    Marcus C
    @macidev
    CBrach
    @CBrach
    hi there, has one of you played around with tags + product streams already? My use-case is pretty simple: i have two tags, one product has both tags. I want a product stream that contains all products that have both tags set. however, all I'm getting are empty collections as soon as I add the second tag (product shows for both tags independently though)
    aleckscastro
    @aleckscastro
    How to properly populate a <sw-select-field...> in a module-name-detail.html.twig file with a collection say UnitCollection (entity and collection already set up)?
    pgm katumba
    @pgmkatumba_twitter
    is there a way displaying an array of url links for products in a given directory in a template file?
    aleckscastro
    @aleckscastro

    How to properly populate a <sw-select-field...> in a module-name-detail.html.twig file with a collection say UnitCollection (entity and collection already set up)?

    I had a look into /vendor/shopware/platform/src/Administration/Resources/app/administration/src/module/sw-product/component/sw-product-packaging-form/sw-product-packaging-form.html.twig and got it working!

    This tutorial has one incorrect path: https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-component - How to report it?
    pawonpawon
    @pawonpawon

    Can anybody help me with creating orders through the API. These are old orders I am importing. I post to the /order endpoint.

    I got most of it working now, except for deliveries and transactions.

    I post them in the same call - but for both I get this error:

    FRAMEWORK__WRITE_CONSTRAINT_VIOLATION
    /0/deliveries/0/stateIdstateId
    This field is write-protected. (Got: "crud" scope and "system" is required)"

    get the same error for
    0/transactions/0/stateIdstateId
    But if I don't send a stateId - I get the error that it is a required field
    How do I get around this?
    Secondly - what is the normal order creation flow in Shopware? I come from a Magento background (15 years).
    Is a 'delivery' and a 'transaction' always created when an order is created?
    (even before the delivery is send out and/or the payment is done)?
    I am asking because the test order I created without the deliveries and transactions - in the admin they show "no transactions yet" and "no deliveries yet" and there is no way I can create those from the admin
    11 replies
    pawonpawon
    @pawonpawon
    (plus I'm getting 500 server errors on some actions , I think because of the missing delivery and transaction objects/relations)
    any help appreciated :)
    aleckscastro
    @aleckscastro
    The Bundle example: An InDepth guide seems to have the "Command" and "Decorator" parts missing: https://docs.shopware.com/en/shopware-platform-dev-en/how-to/indepth-guide-bundle
    aleckscastro
    @aleckscastro
    Why is the entity association created with the help from the above tutorial (Step 5: Adding associations to the entity) not available in the new tab I created following this tutorial: https://docs.shopware.com/en/shopware-platform-dev-en/how-to/new-tab-admin ?
    I get the following error: ReferenceError: product is not defined
    aleckscastro
    @aleckscastro
    The same entity association works fine under the General tab (sw-product-detail-base.html.twig), but not under my custom template (sw-product-detail-custom.html.twig)
    Mike Wink
    @mikewink
    Hello. I would like to ask if there is a sample SW6 theme that can be used to learn how to implement certain aspects like static assets (fonts, images), how to use normal CSS and how to use hot reloading in general (without the development installation). Thank you
    aleckscastro
    @aleckscastro
    @mikewink You can use Shopware's default theme as a basis. Start with /vendor/shopware/platform/src/Storefront/Resources/theme.json. Check out the "style", "script", "asset" and "sw-font-family-base" sections. You should store your theme's assets like fonts, images and icons in the folder "app/storefront/src/assets" of your theme. CSS in "app/storefront/src/scss/". Use base.scss for normal CSS or simply create a custom.scss file and and import it into base.scss. You can do the same for fonts: Create a scss file to load your fonts using src: url('../assets/font/myFont.woff'). As for hot reloading, ./psh.phar storefront:hot or ./psh.phar storefront:watch never worked for me on the storefront, only in the administration (./psh.phar administration:watch).