Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Don Bosco van Hoi
    @azngeek
    If you have a ton of product updates a day you want to ensure that the database will never be in an inconsistent state
    lol
    @mikewink how is your general developer experience? Sounds like it is a huge sandbox :)
    Mike Wink
    @mikewink
    @azngeek that's something that the "engine" of SW takes care of to a certain degree. But yes, you could layer validation on top or maybe extend core where needed.
    PhenomEY
    @PhenomEY
    How to override the allowed_extensions: in the shopware.yaml?
    Friedemann Stoffregen
    @Donderda

    Another question: How can I access a variant's parent customField? page => product => parent is null :/

    Has anyone a hint how I can access these fields?

    Mike Wink
    @mikewink
    Sorry, I have not looked into that so far.
    kekster
    @kekster
    within computed() in admin:
    ...mapState('swProductDetail', [
            'product',
            'parentProduct',
            'customFieldSets',
            'loading'
        ]),
    what does this do exactly?!
    Shyim
    @shyim
    ccccccldkjutnbdrcglfdclrkdkjvjrgvdldeucvbiit
    ups
    Youmar0504
    @Youmar0504
    Hey guys, I am trying to create a test product using repositories but receiving error "404 Bad request".
    Here is the code :
    /* @var EntityRepositoryInterface $productRepository /
    $productRepository = $this->container->get('product.repository');
    $productRepository->create(
    [
    [
    'id' => '6dc5ca792e524cd2a4a719e9b804b410',
    'name' => 'Lorem ipsum',
    'taxId' => '7ba4c94818e4414faca445f039288521',
    'stock' => 213,
    'productNumber' => 'swag-5642-0001',
    'price' => [
    "currencyId" => "b7d2554b0ce847cd82f3ac9bd1c0dfca",
    "gross"=>317.0,
    "linked"=>true,
    "listPrice"=>null,
    "extensions"=>[]
    ]
    ]
    ],
    \Shopware\Core\Framework\Context::createDefaultContext()
    );
    Note : I am able to create aa tax entry with the same syntax
    Maybe the repository name "product" does not exists?
    Jan-Erik Spreng
    @sobyte
    Aren't you getting any more information or context for the error?
    Youmar0504
    @Youmar0504
    Unfortunately not.. This is the only error I got, I have changed all the configurations in php.ini file but nothing appears in the error.log
    12 replies
    Andreas Winter
    @wolv-dev
    Hi
    Mike Wink
    @mikewink
    Hi!
    Andreas Winter
    @wolv-dev
    How can I save data (in extension) from CartLineItem to OrderLineItem due to order placement? I tried to subscribe on the event CheckoutOrderPlacedEvent but I think the cart is gone at this time
    I saved the data on CartLineItem inside the extension: $lineItem->addExtension(...)
    Enzo Perrotta
    @eperrotta
    Hello guys, can anybody confirm whether Rule builder rules can be applied to taxes or not? I want to have tax free orders in some circumstances, and I am about to override the core, but I'd like to be sure there's no other (more elegant) way to do it
    Carolin Reiser
    @caro4p_gitlab
    does anyone else has the payment status suddenly in grey only in the admin in 6.2? wasnt it green before on successfull payment?
    pawonpawon
    @pawonpawon
    @caro4p_gitlab it's green here (6.2)
    David Fecke
    @leptoquark1

    Regarding Migrations:
    In the docs is written: "The updateDestructive() method is the counterpart to update()".

    Does that mean "rollback"? Because the examples show something else...

    Ermin Dedić
    @ErminDedic
    Where do I change the meta robots in the administartion=
    Carolin Reiser
    @caro4p_gitlab
    @pawonpawon sorry, missed your answer earlier. - do you know if thats a setting or smth? we updated from 6.1.6 to 6.2 now and before that it was green as well. other stuff like delivery etc. kept their colours and cancled payment also still has its normal colour, just payed isnt green anymore
    pawonpawon
    @pawonpawon
    @caro4p_gitlab nope. I just updated and did not do anything else
    @caro4p_gitlab oh wait. I am talking about the order details page. I now see that in my order list, 'paid' is grey. I don't know if this was green before, but I suppose it should be green
    Carolin Reiser
    @caro4p_gitlab
    ye, it was before
    kevmz
    @kevmz
    anyone has an advice to handling large query via DAL to not get memory errors?
    Thomas
    @alpham8
    I got the following product scenario: The customer can buy a ticket for a training session. So, in product detail page he / she / it needs to set the date that he / she / it wishes to train to at. How can I add this information to the cart line item? I thought of using an extension from LineItem using LineItem::addExtension or simply add another member var, since LineItem is only a Struct (I guess it's adopted from Shopware 5, isn't it?). What's the correct way here? I couldn't find anything to that in documentation when you need additional information on one basket position
    Masod Mohmand
    @maltisch
    @alpham8 You can use OnLineItemAddedEvent to add additional information to the lineItem
    you can persist the information in lineItem payload
    Ben Le
    @goben2489
    I have use component sw-media-field for config upload file module, but can setting for:
    1. Allow upload file type csv ?
    2. Set path folder to upload ?
      <component name="sw-media-field”>
    Thomas
    @alpham8
    @maltisch Yeah I know, but where in LineItem? What's the Shopware intended way to do it?
    Mike Wink
    @mikewink
    @ErminDedic what would you like to change? I guess you have to use the template for that? 🤔
    Michael Karbowiak
    @karbowiak

    hello there o7

    In shopware6, is it possible to define a different media url? i can see it's possible to switch to using S3 and such for media files, but i was thinking of using keyCDN with a Pull-Zone, where if a file isn't in the CDN, it's fetched from the main site.
    I just can't find a list of environment variables or config settings that allows this - am i right to assume i gotta write a plugin to handle it? :)

    Michael Karbowiak
    @karbowiak
    @vanWittlaer yep, but not the exact thing i'm after sadly :(
    it was more if it was possible to tell it that all media is on a different url, than the main site
    David Fecke
    @leptoquark1

    Regarding Migrations:
    In the docs is written: "The updateDestructive() method is the counterpart to update()".

    Does that mean "rollback"? Because the examples show something else...

    push

    resava
    @resava
    Hi, is there docu how to upload file to shopware
    pawonpawon
    @pawonpawon

    @leptoquark1 this any help? https://www.shopware.com/en/news/the-plugin-system-how-to-extend-shopware-6-with-plugins/

    Looks like updateDestructive() should 'house' destructive code.. things that can't roll back. Destructive stuff

    Yafar Valverde
    @TaiKamilla
    Hi, I keep getting this messages on the terminal, when I clear cache
    Any idea how to fix this?
    ! [NOTE] For better performances, you should move the cache and log directories to a non-shared folder of the VM.
    1 reply
    Masod Mohmand
    @maltisch
    @alpham8 you must sucbscribe to the event OnLineItemAddedEvent
    Thomas
    @alpham8
    @maltisch Yes, I did it, but this was not my question