by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Stefan Richter
    @SRaromicon
    @JoshuaBehrens In product listing in storefront?
    Joshua Behrens
    @JoshuaBehrens
    yes. A certain customer loggs in and should see a different set of products than others
    Stefan Richter
    @SRaromicon
    Is this based on customer or customer group?
    David Fecke
    @leptoquark1
    @JoshuaBehrens How about using a different sales channel for this. Since you need to respect that its still buyable for all customers otherwise
    abin2hats
    @abin2hats

    Hi

    is there any API available for top-selling products and top customers?

    Hüseyin Demirci
    @HDReady_gitlab
    hello
    is there a way how i can get the last article set into cart when offcanvas cart is loaded?
    Christopher Dosin
    @ChristopherDosin
    Listen for the offcanvas event and then call your own API endpoint maybe?
    Artsakh1980
    @Artsakh1980

    @King-of-Babylon have you tested your example of Product on your machine?
    I am getting an error like:
    "status": "500",
    "title": "Internal Server Error",
    "detail": "Malformed UTF-8 characters, possibly incorrectly encoded"

    The error in the Access Log is:
    [2020-04-01 07:36:09] php.CRITICAL: Uncaught Exception: Malformed UTF-8 characters, possibly incorrectly encoded {"exception":"[object] (InvalidArgumentException(code: 0): Malformed UTF-8 characters, possibly incorrectly encoded at C:\Bitnami\shopware-6.1.4-0\apps\shopware\htdocs\vendor\symfony\http-foundation\JsonResponse.php:167)"} []

    I am using POSTMAN on Windows, my installation is also on Windows!

    Joshua Behrens
    @JoshuaBehrens
    @leptoquark1 that is no option for me :( too many sales channel as result and I assume that I can’t assign two URLs to different sales channe
    Yafar Valverde
    @TaiKamilla
    is it safe to tag the service AuthController with public="true"?
    Heiner Lohaus
    @hlohaus
    it is safe
    Thomas Eiling
    @teiling88
    thanks @NicoWenig27
    Ardian
    @ardian-c
    @ChristopherDosin thanks for the links, eventually I figured out and used the addAssociation() method to load the manufacturer.
    Yafar Valverde
    @TaiKamilla
    @hlohaus :thumbsup:
    Christopher Dosin
    @ChristopherDosin
    @ardian-c If you don't mind, would love to see your solution :)
    Ardian
    @ardian-c

    @ChristopherDosin

    $criteria = new Criteria();
    $criteria->addFilter(new EqualsFilter('product.active', true));
    $criteria->addFilter(new MultiFilter(
       MultiFilter::CONNECTION_OR,
        [
                    new EqualsFilter('product.manufacturer.name', 'manufacturer-1'),
                    new EqualsFilter('product.manufacturer.name', 'manufacturer-2')
        ]
     ));
    $criteria->addAssociation('manufacturer');
    
    $products = $this->productRepository
                ->search($criteria, $event->getContext())
                ->getEntities();
    
    $event->getPagelet()->addExtension('manufacturerProducts', $products);

    I wanted to have product links on menu, but there was no way to add single product in menu.

    Peter Meijer
    @peter-bztrs
    So, I'm creating a plugin which could be in the Shopware Store
    This plugin uses a other third party package which is required in the composer.json
    Now as we see with other plugins, the vendor folder must be included.
    But, besides that other third party package, shopware/core is also a requirement.
    When creating the plugin, the shopware/core is downloaded and included in de vendor directory of this plugin.
    Is this normal practice? Or do I miss something when creating the ZIP for the plugin
    Christopher Dosin
    @ChristopherDosin
    @ardian-c Thanks ❤️
    Ardian
    @ardian-c
    sure :)
    does anyone know how to add menu items that have no link attached (no category or structuring element, just # for example), for example a multi dropdown menu, Menu Link -> Some Dropdown Text -> Links?
    nikunjw3nuts
    @nikunjw3nuts

    Hello Everyone

    How to create custom banner slider element or custom block ?

    nikunjw3nuts
    @nikunjw3nuts
    @sschreier ok and which one useful for create custom slider with slider caption ?
    Sebastian Schreier
    @sschreier
    read the documentations @nikunjw3nuts
    nikunjw3nuts
    @nikunjw3nuts
    @sschreier i have read document but i have no experience with shopware which one is useful for custom slider can @sschreier guide me please
    Sebastian Schreier
    @sschreier
    you want a new element - which of this three could be the right?
    nikunjw3nuts
    @nikunjw3nuts
    @sschreier
    ok but which one is best for custom slider with slide caption text ?
    King-of-Babylon
    @King-of-Babylon
    @Artsakh1980 yes, i have tested my product example on my machine :thumbsup: I have a linux installation
    Moritz Preuß
    @habundloot
    where can i set the tax settings to „include tax“ or "exclude tax“ i must have made this somewhere and dont get it back now. :(
    Moritz Preuß
    @habundloot
    -> got it
    Niklas Teich
    @NiklasTeich
    Does anybody use the rule builder to check product tags? .. I'm trying to build 2 shipping methods (standard, carrier surcharge). The first method should apply if no product has one specific tag. The other method should apply when one product has a specific tag. Everything is setup (rules, shippings, storefront settings) but end of the story is: No shipping method is applicable :(
    Nico Wenig
    @NicoWenig27
    @NiklasTeich I've already created a pull request for this when I had the same problem: shopware/platform#658
    I just did not find the time to write tests so far.
    Angel Angelov
    @FlushBG
    Hey all, does Shopware have an endpoint to get the current set language in the context? Can't find it in the docs
    Shyim
    @shyim
    sales channel api?
    Angel Angelov
    @FlushBG
    Has an endpoint for all available languages
    Not for the current one tho
    And the langs in the response don't seem to have a property stating that they're default
    Timo Helmke
    @t2oh4e
    I've been looking for a way to get or set the current language and currency as well. Haven't found it yet.
    Angel Angelov
    @FlushBG
    @t2oh4e hey mate I figured it out
    if you call their /sales-channel-api/v1/context endpoint, which isn't listed in the docs for some reason (found it in the source code), it returns a "salesChannel" object that has the languageId and currencyId as properties inside of it
    Timo Helmke
    @t2oh4e
    good to know :D @FlushBG
    Joshua Behrens
    @JoshuaBehrens
    Isnt the serving context giving information about the current language?
    WebProfiler says: sw-domain-id "e2a2b3f9ad5a4b69935d66e7f04eb573" as request attribute. I bet the request attribute resolver is reading the language from the domain id
    Checkout Shopware\Core\Framework\Routing\SalesChannelRequestContextResolver I think that is your place to look out
    and Shopware\Storefront\Framework\Routing\RequestTransformer sets the language
    Angel Angelov
    @FlushBG
    Yes, I manage to set the language properly, but I wanted to have the current one. Now I have it :D
    Angel Angelov
    @FlushBG
    Guys, change language isn't working for me. I call the context endpoint with a PATCH method, and the desired lang id, and the context token returned is the exact same as the one I sent. Can anyone assist on this?
    Timo Helmke
    @t2oh4e
    will changing the language change the token? :thought_balloon: did you check wether the same context token now returns the changed context?
    Angel Angelov
    @FlushBG
    Yes. I called the context endpoint with the returned token, and the language wasn't changed