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

    gentle-architect-75453

    07/20/2020, 10:30 AM
    Hi, I would like to extend an existing oms that is provided by a separate module - e.g. a payment provider. It is necessary to include my own process between two stages, or furthermore to replace one transition between two states, in order to connect an external storage/system etc… Is there a way to do it without copying the whole OMS, and altering it? I tried including the provided oms using subprocesses, but still then I have to adapt the code (as the subprocess can’t be the main process) and I still have the problem that I actually want to replace one connection (transition) between two states and I think this is not possible with subprocesses. Is there a Best Practice Example or do I have to do it with a completely different approach? Regards, Sarah
    c
    • 2
    • 7
  • m

    mysterious-king-59256

    07/21/2020, 8:13 AM
    Hello, Do you know if it's possible and how to call elasticsearch catalog search from Zed? I have to check in zed how many cars specified search query returns. Elastic Query Expanders etc have to be the same as when search is called from yves, so results will be the same
    👍 1
    q
    • 2
    • 5
  • m

    many-continent-24692

    07/22/2020, 11:17 AM
    Just noticed that the Spryker
    RegisterForm
    has a password max length of 72 characters - which matches the maximum number of bytes that BCrypt (used by
    Customer.php
    ) can encode. But bytes !== chars. So, using this logic, the max password length would need to be 72 / 4 with UTF-8 I think. Did anybody else encounter this issue?
    • 1
    • 1
  • a

    ancient-apartment-59274

    07/22/2020, 11:39 AM
    Hello. Any idea to delete a cart completely (and creating a new one afterwards) without accessing the db directly? The customer can just have one cart, so adding another is not possible. Also deleting the cart is therefore not possible because there must be at least one cart. The background to this question: We changed the tax rate from 7% to 5% in spryker backend. However, when we add an item to the cart, the carts calculation object still responds with the old 7% which leads for all products to a compeltely wrong calculation … i guess that the taxrate is saved along the quote json in the db and was not changed when we changed the tax rate in backend … so, how to remove it from there without making any direct database access? any other ideas?
    f
    a
    +2
    • 5
    • 12
  • l

    loud-rainbow-44827

    07/22/2020, 2:37 PM
    hello guys. you made improvments in
    cms-block-gui module
    but now i can't activate any block. CSRF token is always not valid. I wrote about this problem already. you added these checkings during product add_to_cart action. And was the same problem. How to make it working?
    a
    • 2
    • 14
  • s

    silly-motherboard-93855

    07/24/2020, 10:34 AM
    is there some documentation about how to add a new store to existing spryker instance?
    a
    • 2
    • 3
  • g

    gentle-architect-75453

    07/24/2020, 2:31 PM
    hi guys, when I try to start/run my docker with -x the ebug flag is ignored, spryker won’t run in debug mode and I cannot debug - this is a new phenomenon. Is there some config I have to adjust? Cheers
    p
    • 2
    • 2
  • m

    many-continent-24692

    07/27/2020, 8:19 AM
    morning 👋 - at what point (if any) should you remove a deprecated state machine process from the ACTIVE_PROCESSES list?
    c
    q
    • 3
    • 23
  • r

    rough-scientist-68683

    07/27/2020, 10:04 AM
    Hi everybody, I'm trying to test a class that depends on a Glue-Resource (ProductsRestApi). When trying to create that object I get an error: Could not map method "resource" to a locator. Seems that there is a ResourceLocator missing, isn't it? I'm wondering how it is possible to add this Locator.
    i
    • 2
    • 5
  • n

    nutritious-island-37975

    07/27/2020, 10:25 AM
    We discussed an Idea within our company and I’d like to share it here to ask the question(s) “do you know if it is possible to implement it and how would one do so?
    As a Spryker Developer, I want to be able to get a trace of all modules involved in a request.
    Think of this feature as an architecture StackTrace. Which modules are involved in handling a request in e.g. Zed?
    The main goal of this idea is to reduce the time to “find the right spot to set a breakpoint” within the IDE.
    https://spryker.ideas.aha.io/ideas/CUSTIDEAS-I-110
    m
    • 2
    • 11
  • p

    purple-forest-91115

    07/27/2020, 12:37 PM
    This message was deleted.
    c
    p
    • 3
    • 2
  • a

    agreeable-author-21926

    07/27/2020, 2:20 PM
    Hey guys, is there an advanced tutorial/course for Spryker? I read the documentation but some major stuff are still unclear for me and can't find enough resources online
    p
    • 2
    • 4
  • a

    ancient-apartment-59274

    07/27/2020, 3:35 PM
    Hello, i try to find a a way to connect the middleware to the import logic for classic Product Data import. The doc seems a bit outdated here https://documentation.spryker.com/v4/docs/spryker-middleware So lets imagine my data already passed the middleware and gets flushed() at the end of the pipeline with the
    WriteStream
    … in the
    WriteStream
    there is another
    Writer
    injected which has a
    write(array $data)
    method … this
    Writer
    should do basically the same as the DataImport would do. So the next step i was looking for is to connect the DataImporter logic via its corresponding facade, but it seems that you cannot connect to that that easy. Looking at the
    DataImportFacade
    there is only an
    import()
    function which accepts only a
    DataImporterConfigurationTransfer
    which is just meant to read from a file by itself (when running data:import command)… Looking at the documentation for the middleware (see link) you can see, that in the
    MyModuleBusinessFactory
    there will be all the steps that should be in my opinion still be hidden in the importer and not be done again in some other modules BusinessFactory … so is this a kind of design flaw at this place or do i miss something? For me this looks like violating the DRY principle since there is already the importer module doing the same stuff. I would expect that with the
    importFacade
    you could do something like
    import(DataSetInterface $dataset)
    instead of passing a configuration … any ideas here? Any other solutions? Best
    a
    p
    • 3
    • 6
  • b

    bored-journalist-1230

    07/28/2020, 8:51 AM
    Hi, is there a ready solution to retrieve from GlueAPI together with category nodes also count of items belong to each category? Or maybe some additional development is required?
    💡 1
  • r

    rough-scientist-68683

    07/28/2020, 11:20 AM
    Hello everybody, another question on Testing: I want to test a Glue-Endpoint that accesses the data in the storage (Redis). Unfortunately I cannot find any helper class that makes it possible to add data to the storage for testing purposes and removing them after testing. Before I start implementing such a class myself I wanted to know if there is already a "StorageHelper" or something like this?
    i
    • 2
    • 7
  • s

    strong-winter-32294

    07/29/2020, 7:06 AM
    Hello, does anyone had the problem, that changes in Tests (e.g.
    PyzTest/Yves/Customer/Presentation/..
    ) are visible in the file (checked via
    cat filename
    ) inside the cli-Container (current docker/sdk 1.16.3) but not reflected when I run the test itself. The failing test still shows that the old code (prior to the file-change) is used?
    q
    h
    • 3
    • 8
  • q

    quick-account-45953

    07/29/2020, 10:20 AM
    ⚠️ Testing! (👇)
    • 1
    • 3
  • m

    many-continent-24692

    07/29/2020, 11:55 AM
    In a healthy running system all entries in
    spy_oms_event_timeout
    should be in the future (or close to it) ? or?
    c
    • 2
    • 4
  • i

    icy-hydrogen-3905

    07/29/2020, 2:29 PM
    Hey guys, I am about to write a Twig helper function to check if a given asset exists. I am able to get the relative asset url via public_path, looking like this: "/assets/DE/default/images/test.png" In my Twig helper function I need the physical path to give it to the PHP function file_exists. Is there a method in spryker to get the physical path from the relative url or anything like that? Or does anyone have a completely different approach how to solve the problem? Thanks guys :)
  • m

    many-continent-24692

    07/30/2020, 7:12 AM
    👋 hey, is it likely we can get a backport for this bug fix (assumed) to OMS 10.x ? https://github.com/spryker/oms/commit/0d0364f00b6bc9a0709f891e7b7e7e9779b31925
    c
    a
    p
    • 4
    • 11
  • s

    sparse-fall-78248

    07/30/2020, 12:03 PM
    Hi! What is an
    AbstractDependencyInjector
    (the name makes it obvious but asking never hurts) and when would I use something like this? I'm right now looking at implementing my own payment method and this one has me puzzled a bit. When is it called by whom?
    c
    • 2
    • 6
  • a

    acoustic-motherboard-16553

    07/30/2020, 2:47 PM
    Hey guys, is someone using payone and doing partial refunds with https://github.com/spryker-eco/payone/blob/master/src/SprykerEco/Zed/Payone/Communication/Plugin/Oms/Command/PartialRefundCommandPlugin.php an can tell me if this works for you? I alway get the error code 1610 Article list faulty or incomplete
    c
    • 2
    • 26
  • f

    few-psychiatrist-24774

    07/31/2020, 10:18 AM
    Hey there, I implemented the
    MerchantOpeningHoursWidget
    but I can't find any translations for this widget. Any idea where I can get it or can you provide it here? Thanks!
    c
    • 2
    • 7
  • s

    sparse-fall-78248

    07/31/2020, 11:59 AM
    Hi... Coming back to the question form yesterday... I now implemented my own payment method and I can select it. I tried to stay within the realms of the code provided by the
    DummyPayment
    but rolled my own submodule. Right now, I have the issue that
    payment_selection
    coming form the form seems to stay NULL while
    payment_provider
    is set to the correct string. Any ideas?
    c
    • 2
    • 12
  • r

    rough-scientist-68683

    07/31/2020, 2:35 PM
    @high-pencil-62400 thanks again to the insights in the latest meetup. I try to implement a Glue test and just wanted to execute
    codecept fixtures
    but it says that the command "fixtures" is not defined. Is that a new feature of codeception?
    h
    • 2
    • 2
  • b

    breezy-crowd-40363

    07/31/2020, 2:55 PM
    Do you know if it possible to use Aws3v3FilesystemBuilderPlugin for local test? i mean doing in the config something like
    Copy code
    'AWS_FILE_SYSTEM' => [
        'sprykerAdapterClass' => Aws3v3FilesystemBuilderPlugin::class,
        'root' => '/',
        'path' => '/',
        'key' => 'test',
        'secret' => 'test',
        'bucket' => 'name',
        'version' => 'xxxx',
        'region' => 'eu-west-3',
    ],
    it is automatically build an url http://bucket.region.amazonaws.com....but we need something like http://localstack::portnumber. Is there an easy way, without extending all the world behind the plugin?
    f
    a
    • 3
    • 13
  • f

    flaky-cpu-76260

    08/03/2020, 9:39 AM
    Question about MerchantSwitcher: How are you supposed to get the currently selected merchant outside of the MerchantSwitcherWidget? I see that the widget sets a cookie, updates the quote and expands the ShopContext. I need the currently selected one to show additional information in the footer. There's no client or service to get the currently selected one though. Should I read the cookie (the name of the cookie is not in a shared config though), read the quote or somehow read the shop context? Or am I missing something?
    l
    • 2
    • 3
  • e

    early-sundown-61488

    08/03/2020, 12:30 PM
    Hey all, I would like to make a zed call via Postman but i'm struggle to get the request working. Do you have any example call for Postman? I'm passing the transfer as json but i'm only getting
    Spryker\Zed\PersistentCart\Communication\Controller\GatewayController::syncStorageQuoteAction() must be an instance of Generated\Shared\Transfer\QuoteSyncRequestTransfer, null given
    c
    q
    l
    • 4
    • 12
  • f

    few-wall-85517

    08/03/2020, 1:59 PM
    Hi, guys, I have a question related to routing. Is it possible to override the ShopApplication's behavior, to prefix a sub-shop + locale, instead of just locale? For example, if my homepage could be initially found here http://www.mydomain.com/en/, I would need it, after the change, to be found on http://www.mydomain.com/sub-shop/en/. And afterwards, all the requests must be handled in this specific sub-shop context.
    q
    • 2
    • 1
  • w

    wonderful-lock-52269

    08/03/2020, 2:49 PM
    Hello, did an update happen to change registering controllers in getControllerProviderStack() to moving them to getRouterProvider ? I'm seeing difference in code structure between a 7 months ago project and the b2c demo shop I just cloned. Anyone knows which I'm supposed to use ?
    a
    q
    • 3
    • 2
1...222324...102Latest