Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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
    David Fecke
    @leptoquark1

    @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

    @pawonpawon saw that in documentation. But whats the goal of separating when there is no explicit rollback for a migration?

    Ingo Steinke
    @openmindculture
    How to install plugins in an official shopware 6 demoshop? Last time I tried, the shop had no plugin items in the admin settings.
    5 replies
    alpha-kahr
    @alpha-kahr
    I have a problem when i import the product-baseunits with an own Plugin. After i import them the values are correct (in the database and in the in the admin view), but no base price is shown in the frontpage. When i save the product again the baseprice is shown. I didn't found any clue in the database that i have to calculate it an also save the beaseprice
    Christian
    @c-gross
                        <sw-sales-channel-switch
                            ref="salesChannelSwitch"
                            :label="$tc('sw-seo-url.labelSalesChannelSelect')"
                            @change-sales-channel-id="onSalesChannelChanged"
                            v-model="record.salesChannelId" required>
                        </sw-sales-channel-switch>
    Adminarea: When I click on save this component is always sending with the parameter name "id". How can I change it?
    Friedemann Stoffregen
    @Donderda
    Hi everyone! Can somebody tell me how I can access the customFields from a variant's parent on the ProductPage?
    Christian
    @c-gross
    oh id isn'T coming from that component. It's not even part of the POST data...
    Mike Wink
    @mikewink
    Hello @Donderda today I ran into the same problem like you, parent is null for any of my variants :D
    And I want to show a custom field text that not present and filled in each variant.
    Friedemann Stoffregen
    @Donderda
    =). So let's hope somebody can help us ;)
    Mike Wink
    @mikewink
    I doubt it. πŸ˜…
    I was thinking page.product.parent.<something> would do the trick, but nope…
    Especially strange as there is a parentId in the variable dump.
    David Fecke
    @leptoquark1

    Hello @Donderda today I ran into the same problem like you, parent is null for any of my variants :D

    have you tried to explicit load the parent?

    Mike Wink
    @mikewink
    @leptoquark1 how would you do that from the template level?
    Can I query like page.product.parent.one()?
    David Fecke
    @leptoquark1
    @mikewink this wont work
    Mike Wink
    @mikewink
    To easy I guess. I'm so used to Craft CMS beauty. What is the SW6 way of doing it? Is there documentation or templates that you can point us to?
    David Fecke
    @leptoquark1
    @mikewink You will need to subscribe to ProductPageLoadedEvent I think
    Mike Wink
    @mikewink
    Are you kidding πŸ˜…
    Christian
    @c-gross
    Wjhat can I do to get the sales channel id added to the POST request?
    David Fecke
    @leptoquark1
    I didnt work with variants yet
    It weird that the parent is not loaded when in a variant
    but that how I would proceed
    Friedemann Stoffregen
    @Donderda
    ... or is it possible to "inherit" these fields from the parent? like "product.unit"?
    Mike Wink
    @mikewink
    I thought as relationships are lazy or eager loaded in SW6 that would work out of the box. πŸ€”
    David Fecke
    @leptoquark1
    You mean that if you use the relation in twig template it will be loaded? Nope :D
    Mike Wink
    @mikewink
    That might work in your case, but I have not seen custom fields working with inheritance. At least there is no visual indicator (chain icon) that signals me that I can inherit from the parent.
    That's a real bummer… 😡
    @shyim excuse me, but do you know why the parent product in a variant is null and how to populate it with the actual object (data)? thank you very much!
    David Fecke
    @leptoquark1
    @mikewink Subscribe to the ProductPageLoadedEvent and check if the parent is actually loaded https://docs.shopware.com/en/shopware-platform-dev-en/how-to/register-subscriber?category=shopware-platform-dev-en/how-to
    Mike Wink
    @mikewink
    @Donderda lets hope that the all knowing wise @shyim knows an answer.
    @leptoquark1 thank you very much for the link. πŸ‘πŸΌ
    Can I do this from a Theme plugin too?
    David Fecke
    @leptoquark1
    sure
    Mike Wink
    @mikewink
    Better ask before I get burned. πŸ˜ƒ
    @Donderda I won't be able to check Davids solution now, but I'll keep you informed when I have it done! It would be nice if you could keep me in the loop as well.
    Friedemann Stoffregen
    @Donderda
    sure :)
    Mike Wink
    @mikewink
    @leptoquark1 thank you πŸ†
    @leptoquark1 one last question, what's the best way to find out what events are available?
    Friedemann Stoffregen
    @Donderda
    Bildschirmfoto 2020-05-27 um 11.54.19.png
    10 replies
    @mikewink I made it :)