by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Joshua Behrens
    @JoshuaBehrens
    I am out of options :( sorry
    Uwe Kleinmann
    @kleinmann
    \Shopware\Storefront\Controller\ContextController::switchLanguage indicates that a storefront language switch simply is a URL switch.
    FlushBG
    @FlushBG
    But that doesn't help out api calls much , does it :(
    image.png
    besides, check this
    I believe any other urls would have a record in here
    with the respective language
    Almare
    @almare
    Are their any known problems in context of products with this.$super.('onSave') ? I only receive javascript errors..
    i dont know that the problems are
    just send a languageId to that endpoint and its switched
    Hüseyin Demirci
    @HDReady_gitlab
    Did someone know why iam not able to execute javascript at the offcanvas-cart.html.twig? a simple console.log will not work!
    FlushBG
    @FlushBG
    @shyim yeah dude great idea didnt think of that :D but no srsly, try doing it and share the results with me. I'd love to see u get a different language in the response
    Shyim
    @shyim
    that you should work
    its intented so
    FlushBG
    @FlushBG
    well it should, but it doesn't
    I will repeat -- I call the context endpoint with GET, then call it with PATCH and a languageId as a parameter, and the returned context token is the same. After that, I call it with GET again, and the languageId property of salesChannel object in the response hasn't changed either
    FlushBG
    @FlushBG
    @shyim got any insights mate?
    nikunjw3nuts
    @nikunjw3nuts

    Hello All,

    I have create custom element but display in backend and frontend

    nikunjw3nuts
    @nikunjw3nuts

    i try to using this ref. link :https://docs.shopware.com/en/shopware-platform-dev-en/how-to/custom-cms-element?category=shopware-platform-dev-en/how-to

    and create custom element same as given example in ref. link

    abin2hats
    @abin2hats

    Hi

    When i am trying to execute these query in mysql

    SELECT
    order_line_item.product_id,
    order_line_item.label,
    SUM(order_line_item.quantity) AS totalQuantity
    FROM
    order_line_item
    GROUP BY
    order_line_item.product_id
    ORDER BY
    totalQuantity
    DESC

    I got the following error

    Error in query (1055): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'shopware6_demo.order_line_item.label' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

    Can you please help me?

    Its just a simple query. why this happens

    David Fecke
    @leptoquark1
    if you group by in a query all the fields in select, also have to be in the group by clause
    this is not a shopware problem, more like a knowledge problem of sql ;)
    Christopher Dosin
    @ChristopherDosin

    Good Morning,
    i can't get my head around head: If i want to add a manufacture (or many) to a category where the user is able to choose from manufacturers - same like with the existing product assignment or tags:

    Would i need to create a pivot table like category_manufactur which contains the category_id, product_manufacturer_id - So same like with tags?

    I don't think so, because a manufacture is part of the product and the product is already connected to the category in some way right?
    Or with an Entity Extension and a relation something like

    (new ManyToOneAssociationField('manufacturer', 'product_manufacturer_id', ProductManufacturerDefinition::class, 'id'))
                    ->addFlags(new Inherited())

    So same as within a ProductDefinition ? https://github.com/shopware/platform/blob/87fc9e8cf4cdab0650e0caaf9a8ba12bab2902c2/src/Core/Content/Product/ProductDefinition.php#L190

    Matthias Burgmeier
    @matthiasburgmeier_gitlab
    @ChristopherDosin sorry for the late reply, i fixed my cms element meanwhile <3
    How would I go about including scss for a custom cms element tho?
    Christopher Dosin
    @ChristopherDosin
    Glat you found the issue :)
    Just create a scss file and include it
    Matthias Burgmeier
    @matthiasburgmeier_gitlab
    For Frontend I mean
    Sorry
    Shyim
    @shyim
    @ChristopherDosin yes you will need a table
    if that entity has an versionfield you will also need a x_version_id
    Matthias Burgmeier
    @matthiasburgmeier_gitlab
    I'm only finding this 10 months old thread https://forum.shopware.com/discussion/60883/sass-in-eigenen-plugins where someone stated that theyre implementing custom scss/css for plugins in the storefront with a high priority but cant find any documentation and the linked swagpaypal example doesnt give much either
    Christopher Dosin
    @ChristopherDosin

    @shyim Okay. So i would need a table with
    category_id, category_version_id, product_manfacturer_id, product_manfacturer_version_id right?
    Because category and product_manufacturer both having a version_id

    And can you tell me what the version_id exactly does?

    @matthiasburgmeier_gitlab Just place your scss file here Resources/app/storefront/src/scss/base.scss This should do the trick
    Shyim
    @shyim
    You can have multiple versions of the same entity
    An idea could be a cms page
    You could prepare it for an event and make just that version life when its necessary
    Matthias Burgmeier
    @matthiasburgmeier_gitlab
    @ChristopherDosin thanks, but it doesnt.
    Christopher Dosin
    @ChristopherDosin

    Okay. And can you also tell me how i would connect my new table with the category - only with a new ManyToOneAssociationField?
    Or do i also need to write some Definitions etc.?

    Within Laravel i would just write a simple model and connect those via Eloquent, that's it.
    But i am still not getting it within Shopware 6 with custom entities :D

    There isn't a how-to isn't it?

    @matthiasburgmeier_gitlab If you make a storefront:build - Is your plugin injected?
    Sebastian Schreier
    @sschreier
    "src/Resources/app/storefront/src/scss/base.scss" is the correct path and works, when you do a storefront:build @matthiasburgmeier_gitlab
    Matthias Burgmeier
    @matthiasburgmeier_gitlab
    even for a regular plugin? https://github.com/shopware/swag-docs-storefront-assets/blob/master/src/Resources/app/storefront/scss/main.scss shows src/Resources/app/storefront/scss/main.scss
    Christopher Dosin
    @ChristopherDosin
    Then try a main.scss. Not sure if Shopware is looking for a specific file, but i guess so
    If you use storefront:build you see a list of injected plugins - By default it's only the storefront plugin. Just have an eye on it if you plugin is injected or not.
    If not, the path/file is wrong :D
    Matthias Burgmeier
    @matthiasburgmeier_gitlab
    @sschreier was right, for some reason it didnt show up in hot-proxy
    Christopher Dosin
    @ChristopherDosin
    if i am not wrong the hot-proxy doesn't show the injected plugins, only storefront:build
    Matthias Burgmeier
    @matthiasburgmeier_gitlab
    true, but what i'm trying to say is calling my dev env without the :9998 for hot proxy showed it and hot proxy hadnt