https://www.spryker.com logo
Join Slack
Powered by
# help
  • b

    bitter-shoe-91213

    02/09/2022, 1:45 PM
    Hey everyone, I'm looking into how to integrate Spryker OS with Auth0 and i stumbled upon the following documentation: https://docs.spryker.com/docs/scos/dev/glue-api-guides/202108.0/managing-customers/managing-customer-authentication-tokens-via-oauth-2.0.html The docs mentions a POST /token endpoint but regardless of what user Im trying to get a token to I get the same error message (this error message is also included in the documentation but no solution was provided)
    Copy code
    {
      "error": "invalid_grant",
      "error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."
    }
    I have verified the credentials both by logging in via Yves UI and also via this REST endpoint: /access-tokens [this returned access and refresh tokens for the same user]
    Copy code
    {
      "grant_type": "password",
      "username": "<mailto:spencor.hopkins@spryker.com|spencor.hopkins@spryker.com>",
      "password": "**********"
    }
    The questions are 1: How to solve the error 2: Is there any documentation/example for auth0 integration? I have bootstrapped the b2b-demo-shop locally using deploy.dev.yml docs.spryker.com Managing customer authentication tokens via OAuth 2.0 | Spryker Documentation This endpoint allows authenticating as a customer and refreshing customer authentication tokens via OAuth 2.0.
    i
    q
    • 3
    • 3
  • a

    ancient-apartment-59274

    02/10/2022, 1:03 PM
    Hello, we want to extend the spryker customer page area, especially the order history part. We want to import additional information from our ERP system to spryker and show it to the customer. We noticed, that already existing information here is fetched from Zed backend (like orders) and never from redis/elastic. Since we want to make parts of the customer area searchable in future and extend it much more we are not sure were we should provide which data then. Zed or Redis/Elasticsearch (?) … So, what is the “rule” oder technical considerations when we should consider providing data using the P&S Flow to redis/elasticsearch and when it should “remain” in backend … also considering performance Best
    🦄 6
    w
    m
    • 3
    • 5
  • c

    colossal-scientist-21042

    02/10/2022, 1:41 PM
    Hi everyone, nice to join the commmunity 🙂 I'm looking for some help regarding the REST API. The frontend facing api is very complete and well documented, we are however facing the challenge to connect an ERP/PIM to spryker; i.e. all product data needs to be WRITTEN into spryker, and orders placed by customers need to be retrieved by us for further processing (capture, pick, pack, ship, accounting/dunning, ...) which in turn requires us to also update existing orders to reflect the current status (update shipping information or attach documents like delivery slips or an invoice). We have not found any API to achieve these things - how do we get started on this? I'm looking forward to any tips in this regard, all the best!
    👋 1
    a
    m
    +2
    • 5
    • 18
  • b

    bitter-shoe-91213

    02/10/2022, 1:52 PM
    Hi everyone, Anybody had integrated external oauth provider to spryker yet (auth0 specificaly)? I would really appreciate if someone could direct me into the right direction / resources in order to achieve this.
    a
    • 2
    • 2
  • s

    sparse-window-24944

    02/11/2022, 9:29 AM
    hello everyone. We are having a strange problem with our setup in Metro. Recently we have noticed some orders are getting duplicated. On our nginx logs we can see
    499
    status_code has anyone had similar problems before?
    h
    • 2
    • 2
  • q

    quaint-midnight-78937

    02/11/2022, 10:31 AM
    Hello everyone! I am currently working with ElasticSearch and try to add the
    FuzzyQueryExpanderPlugin
    from the module
    Spryker\Client\SearchElasticsearch\Plugin\QueryExpander
    to get better search results (in case of a typo, etc...). However, when adding the plugin to the stack in
    Client/CatalogDependencyProvider::createCatalogSearchQueryExpanderPlugins
    the search does not work anymore. I only get the error message
    catalog.page.cannot_be_opened
    but no further logs about the actual problem. Does anybody know how I can use the
    FuzzyQueryExpanderPlugin
    ?
  • c

    careful-house-66759

    02/14/2022, 7:53 AM
    Hi, I would like to create an anonymous shopping cart using the Glue API. There the API tells me I need a token. When I call the /Token API, it tells me I have the wrong grant type. The documentation doesn't say anything about the grant type as a parameter or whatever. How do I get a token as Anonymous?
    a
    i
    • 3
    • 10
  • c

    calm-furniture-47590

    02/14/2022, 11:54 AM
    Hey guys is there any specific command to regenerate routes for US store after routes has been changed? I ran these reset command but it only update for
    de
    store 😞 . What did I miss?
    Copy code
    docker/sdk console router:cache:warm-up:backend-gateway
    docker/sdk console router:cache:warm-up
    a
    • 2
    • 2
  • p

    polite-lunch-97479

    02/14/2022, 1:05 PM
    Anybody else having issues with package
    spryker/gui
    > 3.40.0? In Zed UI, the sidebar navigation doesn't expand anymore, instead I'm getting JS errors. Seems that this commit is breaking things: https://github.com/spryker/gui/compare/3.40.0...3.40.1 Could somebody confirm that this is reproducable?
    a
    m
    +2
    • 5
    • 22
  • c

    colossal-magician-34159

    02/14/2022, 8:07 PM
    Hey guys, does anybody have any experience with connecting spryker to external sso provider to replace native login? For example SAP CDC? Could you point me to some doc to have at least a high level idea of how it could be implemented? Thanks a lot!
    p
    • 2
    • 1
  • m

    mysterious-ambulance-11183

    02/16/2022, 9:12 AM
    Hey guys, we are currently implementing a new PaymentServiceProvider, is there any documentation about how to do this? I checked the Adyen implementation and found Hooks like CheckoutPostSaveHookInterface, but could not find any documentation on this.
    👀 1
    p
    g
    • 3
    • 6
  • n

    numerous-kitchen-79937

    02/16/2022, 9:46 AM
    Hey Sprykes! I’ve a question about the Pyz\Yevs frontend. At the moment I have the B2B demo working well… but I’m wondering… is there a way to start from scratch? Is there a way to simply delete the demo frontend and start from the absolute bare basics? Reason: I’m experimenting with seeing what frontend CCS frameworks I can use, TailwindCSS, UIKit etc. and I’m also thinking of adopting some layouts I had built previously with the Symfony framework and seeing if I can create something similar using the Spryker frontend. Many thanks!
    p
    a
    • 3
    • 5
  • n

    nutritious-cpu-80657

    02/16/2022, 12:42 PM
    Quick question - we're looking at upgrading our Wishlist Rest API module to 1.6.0 from 1.4.3 and we've noticed that in the
    src/Spryker/Zed/WishlistsRestApi/Business/WishlistItem/WishlistItemDeleter.php
    on line 53 we're requiring the UUID of a Wishlist item - but wishlist items don't seem to have a UUID. I believe previously this was checking whether a SKU had been provided which seems correct. Just wondering if this is a bug (I don't see any table schema changes related to this in this diff - https://github.com/spryker/wishlists-rest-api/compare/1.4.3...1.6.0 that would add a UUID column to the
    spy_wishlist_item
    table)?
    🙏 1
    f
    k
    +2
    • 5
    • 21
  • m

    magnificent-france-71407

    02/16/2022, 4:30 PM
    Hi Team I was trying to execute the command vendor/bin/console to find the list of console commands i got the below error any help appreciated PHP Fatal error: Uncaught Error: Call to undefined function Spryker\Shared\Config\Application\mb_regex_encoding() in /home/ashok/workspace/projects/b2c-demo-shop/vendor/spryker/config/src/Spryker/Shared/Config/Application/Environment.php:38
  • m

    magnificent-france-71407

    02/16/2022, 4:40 PM
    this resolved it sudo apt install php8.0-mbstring
  • v

    victorious-island-92911

    02/17/2022, 6:41 AM
    Hi Team, wanted to include a 3rd party javascript snippet. But after placing the snippet through the backoffice admin, we could able to see the code of the snippet being displayed instead of what it has to execute. Help needed. Thanks in advance!
  • e

    early-sundown-61488

    02/17/2022, 8:36 AM
    Hi #help, i have a running 2bc demoshop. Yves, Zed and the Glue Api are all reachable. But when i try to add something to the cart or try to generate an access token with the glue api i get the following error and i have no clue why.
    p
    c
    • 3
    • 13
  • a

    acoustic-businessperson-27970

    02/17/2022, 11:31 AM
    Hi guys, is there a twig function that takes product SKU and returns url ?
  • a

    acoustic-businessperson-27970

    02/18/2022, 2:27 PM
    Hi all, Should not this be only
    getLastResponseSuccessMessages()
    vendor/spryker/zed-request/src/Spryker/Client/ZedRequest/Messenger/Messenger.php:152 This will add any messages that were added in previous response. For example, when a cart is created for the first time it makes two Zed calls, 1. creates quote (generates a flash message) 2. updates quote sitting it to be default (does not generate a flash message) on the front end this will make me see two flash messages after debugging I found out that the line mentioned above is looping through the
    $this->getResponsesSuccessMessages()
    to add to FlashBag .. which causes the message added in the first request to be added again
  • r

    rough-scientist-68683

    02/22/2022, 6:29 AM
    Good morning everyone, I recently updated
    spryker/product-label-storage
    and now the
    product_label_dictionary
    is handled diffently so that it's not executed during
    event:trigger
    anymore. Before it was done with the query container and if no ID was given all entities were synced to storage. Now it's done with a repository and nothing is done if no ID is given. The documentation says to use the command
    console event:trigger -r product_label_dictionary -i=all
    and this indeed works but when triggering all events the dictionary is just ignored. Two questions: 1. Is there any documentation that explains WHY it was changed like this? 2. Is there a possibility to include the events for
    product_label_dictionary
    when executing
    event:trigger
    without any argument?
  • c

    calm-controller-74059

    02/22/2022, 10:30 AM
    Hello guys, we are looking for good solution managing blog as part of the spryker shop. Is there any best practice for doing it? Also I’ve googled this solution https://www.storyblok.com/lp/ecommerce , is it official way? Thanks in advance!
  • f

    flaky-afternoon-98068

    02/22/2022, 11:32 AM
    Hi everyone. Can someone using php8 try to update some cms block on zed/backoffice? I suspect there is a bug there, but would like some outside confirmation...
    a
    f
    • 3
    • 4
  • c

    careful-leather-48930

    02/23/2022, 9:59 AM
    Hello Everyone, I am working on a task which requires implementing Google ReCaptcha in the registration form for a B2C shop. I have added a sub form in the registration form which creates the placeholder but it does not render the template I have specified for that sub form. I am thinking I didn't pick the correct solution, did anyone encountered this problem in the past ? Or can someone give some conceptual hints on how to tackle this problem? I have added a list of files I have added or modified for reference.
    • 1
    • 1
  • k

    kind-vegetable-16151

    02/23/2022, 2:01 PM
    Hello, I have this philosophical conundrum: I need to iterate (rather I am fixing a code of someone else's) through all abstract products and collect their data into a file from time to time. I need price information, imageset information and so on. Currently it is done so that it iterates through ProductAbstractManager where it executes functions like loadLocalizedAttributes which calls database additionally, also read observers are called which also call database additionally, and then there's also as well event triggers for a every time that an abstract product is being Read. This sounds like quite a large amount of overhead. I thought that maybe this could be done that all the necessary things can be called in one single query in a repository with necessary joins? It is more work to do it this way but maybe this can potentially save lots of processing time? I wonder what is your stance on things like this. I mean obviously doing it with one single query is faster, less memory intensive (important in this current task), however I am interested in knowing what is the
    spryker
    way problems like this. Like how it is generally done in spryker projects, also relying on ProductAbstractManager is pretty convenient since those ReadObservers call necessary facades to expand the product abstract transfer where this additional logic is executed Also could anyone explain the usefulness of triggering read events? I have never encountered a case where it would be useful to know that a row in database has been read
    b
    w
    a
    • 4
    • 5
  • a

    able-breakfast-18611

    02/24/2022, 8:08 AM
    Hi everyone, currently we have the problem that in Yves in the detail view of an order which contains configurable products, the following exception occurs:
    Twig\Error\RuntimeError - Neither the property "getTemplate" nor one of the methods "getTemplate()", "getgetTemplate()"/"isgetTemplate()" or "__call()" exist and have public access in class "__TwigTemplate_48377ad321e22cac2002e2a0ce4a28bdb2f9630ca3e5d82dc9cee8a628bf191b" in "@SalesProductConfigurationWidget/views/order-detail-configuration/order-detail-configuration.twig" at line 17.
    As you can see from the error message, the error is thrown in the SalesProductConfigurationWidget module. The only difference in the order-detail-configuration.twig template (compared to the Spryker-Core Module) is that the getTemplate(...) function is called as follows:
    Copy code
    {% set configurableTemplate = _self.getTemplate(...)
    However, even if you call it using macros as in the Spryker-Core module, an exception occurs. Have any of you experienced this problem as well? I look forward to your answers. With best regards, David
  • m

    mysterious-ambulance-11183

    02/24/2022, 12:00 PM
    Hey guys, short question regarding price_types. Is it correct, that those cannot be created in the backoffice? I found, that the price types (spy_price_type) are getting created during import, if you specify a different one. But is it possible to configure them without an import?
  • c

    careful-leather-48930

    02/25/2022, 9:11 AM
    Is there a service in Spryker which provides the IP address of the client from the request?
    a
    • 2
    • 3
  • s

    strong-winter-32294

    02/28/2022, 6:54 AM
    Hello folks, in a project with a rather complex state-machine we get many error-logs like this:
    Spryker\Zed\Oms\Business\Exception\LockException
    Copy code
    State machine trigger is locked. Propel exception: Failed to execute insert statement for Orm\Zed\Oms\Persistence\SpyOmsStateMachineLock. Error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '421981' for key 'spy_oms_state_machine_lock-identifier'
    Each problem itself does not seem to be persistent (because lock table is cleared periodically) and the orders finally get into the "complete" state, but nevertheless there are many errors like this. Is this LockException "by design" or do we have a general problem in our OMS?
  • f

    full-hairdresser-19469

    02/28/2022, 7:49 AM
    👋 Hello, team! Can anyone help me how can i remove this delivery date functionality
  • f

    full-hairdresser-19469

    02/28/2022, 7:52 AM
    I tried to delete from file shipment -sidebar.twig file but it displays some information as in image below
    n
    d
    • 3
    • 4
1...525354...102Latest