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

    mysterious-king-59256

    07/27/2021, 12:16 PM
    Hello, Is there any module in Spryker, which will allow to use different payment methods for different product?
    ➖ 2
  • w

    wide-wolf-99519

    07/27/2021, 1:53 PM
    hej, I bumpend into an issue with controller responses, when I use curl all seems fine, but in browser console/network tab I can see that there are some issues with CORS?
    Copy code
    // example
    return $this->jsonResponse(['code' => 401, 'message' => 'go away'], 422);
    anyone experienced similiar problems?
  • a

    ancient-apartment-59274

    07/27/2021, 2:40 PM
    Hello everybody, is there a recommended way pulling plugins as a dependency to another module when the plugin itself has dependencies? I want to use that code of this plugin in my own module. Usually, the plugin has no dependencies at all (no constructor params), but now i hit encounter a spryker plugin that has DI params which is a new situation to me … any ideas how to deal with it? 🤔 the class is the spryker yves CustomerAuthenticationFailureHandler. Best
    c
    • 2
    • 21
  • r

    rough-egg-5359

    07/28/2021, 8:37 AM
    Hello. Can I do this on Yves category/edit?id-category=2 ?
    w
    • 2
    • 13
  • a

    ancient-apartment-59274

    07/29/2021, 9:50 AM
    Hello, we are currently implementing a login flow for keycloak OpenID (external login server). For that we wrote also a client from yves frontend to spryker backend. This client should provide a) a login link where the customer gets redirected to b) the resource owner by the provided auth code (from redirect from keycloak login) Both involving a state parameter which must finally match again when retrieving the resource owner. I compared the sprykers oauth azure module and they save that state param into the current session using the session client which is totally fine in that case (because everything happens in the same session). However, when using the client layer to connect yves, both methods does not share the same session which is a problem to compare generated state param and the state param that was returned from the login server. My two approaches would be now: • save the state into redis instead or • save the state into an own table in the database Saving the param to Redis (and remove it after the param/auth code was validated) seems to be the easiest solution to me. But honestly I don’t know about security concerns when saving the state param into redis or somewhere else. So, is this the way to go? Somebody did something similar?Any suggestions or other approaches? Best
    👀 1
    • 1
    • 1
  • f

    flaky-boots-28440

    07/29/2021, 12:37 PM
    Hi, I'm currently trying to overwrite the behavior of
    Spryker\Zed\Application\Communication\Controller\IndexController::indexAction()
    to add a redirect to /dashboard (so the users no longer see a blank page after logging into Zed. Unfortunately, my custom controller is never called, so it has no effect. Is there an easy way to get Spryker boot into my custom code / change the default Zed page in another way?
    Copy code
    <?php
    
    /**
     * This file is part of the Spryker Commerce OS.
     * For full license information, please view the LICENSE file that was distributed with this source code.
     */
    
    namespace Pyz\Zed\Application\Communication\Controller;
    
    use Spryker\Zed\Application\Communication\Controller\IndexController as SprykerIndexController;
    
    /**
     * @method \Spryker\Zed\Application\Business\ApplicationFacadeInterface getFacade()
     * @method \Spryker\Zed\Application\Communication\ApplicationCommunicationFactory getFactory()
     */
    class IndexController extends SprykerIndexController
    {
        /**
         * @return \Symfony\Component\HttpFoundation\RedirectResponse
         */
        public function indexAction()
        {
            return $this->redirectResponse('/dashboard');
        }
    }
    a
    • 2
    • 5
  • e

    eager-beach-43647

    07/29/2021, 7:09 PM
    Hello, I've a problem with an rabbitmq queue, it is simply stuck (same number of ready, unacked and total for hours already) and any attempts to purge the queue or add new messages to the queue results in a timeout. Is there any way to solve this? It's a staging environment using the Spryker Cloud. I've tried multiple deploys, disabling the jenkins scheduler and trying to manually ack the queue to no success.
    p
    • 2
    • 2
  • n

    nutritious-angle-64267

    08/02/2021, 9:38 AM
    Hi Guys, i have a concern how can we implement POST request in glue Api (change data in spryker table) and how to pass more then more then one parameter on Api request ?
    a
    • 2
    • 1
  • a

    ancient-apartment-59274

    08/02/2021, 3:28 PM
    Hello, does somebody already implemented a token based spryker yves login with access token and refresh token? We have an external auth server where the user gets redirected to, when he is not known/anonymous and comes back with some auth code for spryker to be exchanged for an access token … But for our scenario we have some problems using the standard auth mechanism from spryker for it. As far as i can see, Spryker just checks if there is an active session in the session storage and loads the user from it. Otherwise you get redirected to the sprykers login page where you enter your credentials. So as long the session is there, there is no restriction for the user, This does not fit to the requirement of the expiration time from the access token. So first idea is that we also just drop the session. The problem is, that when the session is gone, there is no info for at least identifying the user that is now using the shop that we could use to refresh a token. The consequence would be that the user always gets redirected to the login page of the auth server. My idea is now to left the session lifetime of the customer high but encode the (access tokens) expiration time somehow in the customers session data when creating the symfony token for the token storage. Checking this expiration time on every request and “invalidate” the customer if the time expires, call the zed backend and use the “refresh token” from there (token saved in database?) to issue a new expiration time (or drop the session if the auth server denies refresh) Unfortunately i am not really familiar with this concepts at all, but it seems a real big roundtrip to me where i wonder if there is already some spryker solution/entry points that i could use or tipps from somebody get this done … Best
    d
    • 2
    • 1
  • c

    calm-lamp-45600

    08/05/2021, 9:17 AM
    Hello, we implemented a storageclient module in pyz and result in high cpu usage of redis container there we use the following method and could identify as performance issue
    Copy code
    $this->storageClient->getKeys()
    the storageClient is the vendor \Spryker\Client\Storage\StorageClient class Is there an known issue by using this method or is there something to note by the implementation?
    r
    • 2
    • 3
  • k

    kind-answer-74770

    08/05/2021, 1:29 PM
    Please be aware that the Spryker Academy has a new home at academy.spryker.com If you have previously used training.spryker.com, please update your bookmarks to the new location. If you have accessed training.spryker.com in the last 12 months, you will have been added as a user to the new platform and sent emails explaining the switch. If you have any questions or comments, please either email academy@spryker.com , or use the #bootcamp_and_trainings_help channel and we will respond.
  • r

    rough-scientist-68683

    08/05/2021, 2:03 PM
    Hello everyone, does anyone know where I can find the documentation of the discount-promotion module? (Because every link I can find in the docs or from google leads to 404 or something different...)
    • 1
    • 1
  • n

    nutritious-angle-64267

    08/09/2021, 5:21 AM
    Hi All, Getting this error while making a PATCH request in Glue Api Any thoughts on this ?
    a
    • 2
    • 2
  • a

    adorable-piano-19015

    08/09/2021, 6:15 AM
    Hi all, is there a way to add multiple attributes to demo data? I can only find attribute_key_1 and value_1 in the corresponding csv file.
    a
    • 2
    • 1
  • h

    hallowed-printer-40886

    08/09/2021, 1:12 PM
    Hi all, our search provider now only offers elasticsearch 7.10(.2) and we have an issue with the string_sort mapping.
    Copy code
    "Error in one or more bulk request actions:\n\nindex: \/index_de_page\/_doc\/product_abstract:de:de_de:1 caused unknown parameter [analyzer] on mapper [name] of type [keyword]"
    Changing the mapper to use a normalizer instead of an analyzer it seems to work just fine.
    Copy code
    {
      "string_sort": {
        "mapping": {
          "normalizer": "lowercase_normalizer",
          "type": "keyword"
        },
        "path_match": "string-sort.*"
      }
    },
    Are you aware of the issue and do you see any problem in changing the mapper to an normalizer? Thanks for your help!
    n
    • 2
    • 1
  • n

    nutritious-angle-64267

    08/10/2021, 6:38 AM
    Hi All, Any help on this issue my application cannot find tables that exist its working fine when i am using this query in Data Import process but not working when i am trying to execute it from Zed/Business for updating data !
  • l

    lemon-magazine-17731

    08/10/2021, 8:06 AM
    Hello All, I am creating a new controller and trying to print a hello world, but getting unable to find template error, can anyone tell what is the issue
    🎯 1
    p
    e
    • 3
    • 10
  • f

    flaky-smartphone-7177

    08/10/2021, 1:39 PM
    Hi, My operating system windows 10, when I install Spryker, I followed developer guide which is "B2B or B2C Demo Shop installation: Windows, with Development Virtual Machine". in the last step I cannot install composer with command "composer install". I got warning which is at the below. Also after this warning I tried to change extension sets at php.ini file. anything was not changed. Also I tried composer update and I got second warning. You can find it second on screenshots. And again I changed upload size limit as -1 anything was not changed. Can you Help me please?
    a
    l
    • 3
    • 13
  • m

    mysterious-king-59256

    08/11/2021, 7:37 AM
    Hello, I am working on multi payment. I’ve found some parts of Spryker’s code supporting it, but I have a problem with the OMS. User can select 2 payment methods which require user’s interaction (for example paypal), so I need some kind of generic, parallelized OMS containing all payment methods, . By testing i found, that parallelized OMS throws error during creation of the event timeout in the DB. Do you know if there is any built-in solution for multiple payments in one order? Or do you have tips how to modify OMS to support it?
    👍 1
    a
    b
    f
    • 4
    • 15
  • w

    witty-guitar-42993

    08/12/2021, 11:45 PM
    Hello, I am using shopping list in Glue API and I have some problems because this module require an user relationated with company, I didn’t found one Glue API endpoint to set company to user, do you know if exists module in Glue API to asign company to user?
  • m

    mammoth-painting-63509

    08/13/2021, 9:28 AM
    Is it somehow possible to only import new entries during
    data:import glossary
    ? I'd like to add that to our deployment script, but I don't want to overwrite already existing values (that might be changed in the zed-backend manually).
    b
    p
    • 3
    • 2
  • c

    clean-painter-47981

    08/13/2021, 10:51 AM
    Hello, i am creating a versioning for the rest api. By default the newest version is always taken. Is it possible, if no "Content-Type: application/vnd.api+json; version=2.0" is sent with to choose automatically the oldest version?
    w
    • 2
    • 2
  • f

    fresh-tent-43300

    08/16/2021, 9:14 AM
    Hi, I have always troubles seeing changes on twig templates. What are your best practices? Using
    npm run yves
    and cache clean are not reliable. Thanks for any suggestion!
    f
    • 2
    • 1
  • a

    ancient-apartment-59274

    08/16/2021, 12:42 PM
    Hey Folks. Usually I only have problems with mutagen sync sometimes if i open the lid of my macbook again … seemed some kind of “resuming the session” problem. However, meanwhile the duplicate sync sessions appear randomly and very often … after 1 hour working I sometimes end up having 3-4 sync sessions running parallel … very annoying … any ideas? Best
    c
    • 2
    • 2
  • l

    little-secretary-81579

    08/16/2021, 1:22 PM
    Hey fellows, there is one nasty problem, that we have currently. To ensure no duplicate URLs through case problems (e.g. spryker.com/demo vs spryker.com/Demo) UrlFacade offers
    hasUrlCaseInsensitive
    . Using it will create a query modifying the URL with UPPER. The problem with this approach is, that it will not make use of the UNIQUE index which is defined for spy_url.url and hence with many URLs in the table it will make all operation extremely slow. Our solution is to add an index like this:
    CREATE INDEX IF NOT EXISTS "index-spy_url-url-upper" ON spy_url ((upper(url)))
    . This solves the performance problem perfectly. However it is NOT possible to define such an index using Propel. If we manually create this index Propel will crash when doing
    propel:diff
    . Did anybody run into this problem earlier and can provide some advice? Thanks all!
  • n

    nutritious-angle-64267

    08/17/2021, 7:22 AM
    Hi All, i want to export data of my custom table is this possible? if yes then any reference or documentation for it ? Thanks.
    w
    • 2
    • 1
  • r

    rough-scientist-68683

    08/17/2021, 8:14 AM
    Hello everyone, I try to find out how to generate a voucher code for a specific voucher pool on the fly but I can't find the code for this. Can anyone give me a hint for that?
    w
    • 2
    • 2
  • s

    strong-laptop-16773

    08/17/2021, 2:44 PM
    I need to implement functionality to see order items in ZED like non quantity splittable, but keep functionality of partial refund (e.g. when you want to make partial refund then you have to provide quantity of items to be refunded) and generally handle items separately. As I see in spryker docs it's not possible at the moment, so if we keep product items like non quantity splittable, then we can refund only all of them and not partially. First idea that comes to mind is to keep items in db always splitted, but change render logic and render them like non quantity splittable (e.g. one row with quantity 5 instead of 5 rows with quantity 1) and when you want to change OMS state than show something like pop-up where quantity can be provided. What do you think? Did somebody had the same problem?
  • p

    polite-lunch-97479

    08/17/2021, 2:51 PM
    Does anybody know how to make Elasticsearch 7 return more than the default 10 facets?
    f
    f
    • 3
    • 3
  • f

    flaky-smartphone-7177

    08/18/2021, 7:44 AM
    Hi, I try to install spryker with vagrant. After “vagrant ssh” step. I can not composer install as picture shown. My operating system is mac. I am using VirtualBox 6.1.26, Vagrant 2.2.18 and spryker 4.1.0 Can you tell me where is the composer json ? or what is the pre step before composer install?
1...434445...102Latest