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

    wide-wolf-99519

    01/22/2021, 2:20 PM
    all right, hear me out there is this class CustomerTransferUsernameExpanderPlugin from spryker/customer-user-connector which has 2 methods, both accept single CustomerTransfer as input param now imagine you are working on this module (or any other module that relies on transfer classes) how do you generate those transfers? (which might be helpful if you wanted it for example for code completion)
    • 1
    • 1
  • s

    sparse-fall-78248

    01/22/2021, 2:26 PM
    Hello everyone, it's me again ;D Is there any convenient way to re-sync EITHER the search engine OR the kv-storage? So far, I only know of sync:data, which will re-sync both. Thanks!
    l
    • 2
    • 1
  • h

    hallowed-coat-68810

    01/22/2021, 2:56 PM
    Hello everyone, I need to handle the following scenario's in my custom payment plugin with the right way(Either checkout hooks or handler or any.,). i) Display the payments based on merchant configuration already exist(config_default.php) or specific country/customer/cart value. ii) After getting the payment information from the customer (like IBAN) validate the details. If the value not correct throw some notification to end-customer and stay with the same page(payment). So, please share your valuable feedback on this to resolve. Thanks in advance.
    l
    • 2
    • 2
  • s

    silly-motherboard-93855

    01/25/2021, 10:40 AM
    what commands should I run for the Zed controller to appear after registering new namespace? this worked automatically long ago, but now doesn't seem to
    p
    • 2
    • 8
  • c

    careful-morning-78883

    01/25/2021, 12:34 PM
    Hello everyone, Is there any implemented way to delete products with relationships? Thanks
    a
    • 2
    • 1
  • s

    silly-motherboard-93855

    01/25/2021, 1:58 PM
    is there a way to check which ZED routers are registered currently?
    s
    • 2
    • 5
  • w

    wide-wolf-99519

    01/25/2021, 4:00 PM
    there seems to be no customer related event constants, like CustomerEvents::SPY_CUSTOMER_ENTITY_CREATE, is there a reason for that like CmsBlockEvents::ENTITY_SPY_CMS_BLOCK_CREATE i was asking about earlier? @square-laptop-25127?
    s
    • 2
    • 2
  • s

    silly-motherboard-93855

    01/26/2021, 10:18 AM
    what could be the reason for cms blocks missing from
    spy_cms_block_storage
    for specific store? saving block doesn't put it there, running
    sync:data
    doesn't help either
    g
    • 2
    • 4
  • s

    silly-motherboard-93855

    01/26/2021, 12:34 PM
    is there a migration guide for getting rid of spryker/auth ?
    a
    m
    • 3
    • 8
  • w

    wide-wolf-99519

    01/27/2021, 11:49 AM
    https://documentation.spryker.com/docs/event-listen describes that event listeners should implement EventListenerInterface, but I've installed spryker/event recently and there is only EventHandlerInterface I suspect that this is the same thing, but could use some confirmation?
    s
    • 2
    • 2
  • b

    bulky-needle-37771

    01/27/2021, 12:41 PM
    Hello, how can I configure the brand facet filter on the search result page? i would like all brands to be shown and not only 10. I found this documentation https://documentation.spryker.com/docs/t-working-filter-facets but there is no FacetConfigTransferBuilderPlugin for brands, so that i could just set the size in the AggregationParams to 0
    p
    • 2
    • 12
  • q

    quiet-boots-16346

    01/27/2021, 4:07 PM
    Hello guys, I think the Spryker\Gui has broken styles/logic for button groups. In documentation there is no mention of it but
    AbstractTable
    supports it and CmsGui module is an example which uses Button groups. The problem is when I try to add the button groups extending
    @Gui
    layout, expanding the dropdown breaks the table view as well as button has forced
    btn-view
    style in there which breaks the style of
    btn-danger
    . When I look to
    @Cms
    layout file, it uses its own .css and .js files and within the huge JS there is a custom implementation of dropdown logic. Is it fixed in some newer version of
    CmsGui
    ? We are using version
    3.34.4
    . I will post screenshots in the thread.
    a
    • 2
    • 3
  • a

    ancient-apartment-59274

    01/27/2021, 4:12 PM
    Hello, registering TranslatorTwigPlugin() twice leads to an error in the latest b2b suite. I think this is wrong in this file https://github.com/spryker-shop/b2b-demo-shop/blob/202009.0/src/Pyz/Zed/Twig/TwigDependencyProvider.php I just wonder why we got no errors yet. I just updated the twig module, is there now maybe a more strict check when you try to register plugins multiple times? Best regards
  • a

    astonishing-lamp-41374

    01/27/2021, 9:05 PM
    Ok... so in terms of registering I think I need to actually create a directory
    src/Pyz/Zed/Process/ProcessDependencyProvider.php
    and add my custom middleware plugin from
    src/Zed/<module>/Communication/Plugin/Configuration/<some_name>ConfugurationPlugin.php
    to the profile stack...
    a
    s
    • 3
    • 7
  • q

    quick-account-45953

    01/28/2021, 1:25 PM
    hey folks! quick question: how big are your complete project test suites and how long does it take them to finish?
    f
    w
    +3
    • 6
    • 6
  • m

    mammoth-painting-63509

    01/28/2021, 3:12 PM
    I get plenty of these errors while running phpstan:
    Copy code
    26     Method
             Pyz\Zed\ProductLabelStorage\Persistence\ProductLabelStorageQuery
             ContainerInterface::queryProductConcreteLocalizedByIds() return
             type has no value type specified in iterable type
             Orm\Zed\Product\Persistence\SpyProductLocalizedAttributesQuery.
             :bulb: Consider adding something like
             Orm\Zed\Product\Persistence\SpyProductLocalizedAttribut
             esQuery<Foo> to the PHPDoc.
             You can turn off this check by setting
             checkMissingIterableValueType: false in your
             phpstan.neon.
    Has anyone a solution to that or should I just add
    checkMissingIterableValueType: false
    to my config?
    e
    f
    • 3
    • 5
  • w

    wide-wolf-99519

    01/29/2021, 10:48 AM
    is there a way to namespace transfers to avoid name collision? or all of them belong to common namespace and thers is nothing one can do about that?
    🤷‍♂️ 1
    ➖ 2
    s
    p
    • 3
    • 10
  • p

    polite-lunch-97479

    01/29/2021, 5:04 PM
    Hey! Does anyone know how to debug tests?
    w
    • 2
    • 1
  • g

    gentle-vegetable-74963

    02/01/2021, 10:57 AM
    Good morning all, we have a feature that needs to make a Zed request from Yves after Yves has sent the response. We do this so Yves TTFB is not effected by the Zed call. In the Spryker silex days we used the Silex
    finally
    hook and this worked well. For the latest version of Spryker we switch to using the
    KernelEvents::TERMINATE
    in a
    EventDispatcherPlugin
    . This does not work anymore as the session is now closed (in the
    KernelEvents::RESPONSE
    event), so the Zed call does not have access to currency, locale, etc. We have a workaround to prevent the session closing in the
    KernelEvents::RESPONSE
    but not 100% sure if this is safe or future-proof. Has anyone got recommendations for this type of feature?
    w
    l
    • 3
    • 11
  • c

    crooked-house-89121

    02/01/2021, 1:48 PM
    Hey all, I’m having an issue after upgrading a module. I tried upgrading the modules based on the instructions here to fix the mentioned bug. Additionaly I had to upgrade the following:
    Copy code
    composer require filp/whoops": "^2.9
    composer require spryker/mail": "4.7.0
    composer require spryker/chart-gui": "^1.1
    After successfully updating all of them and starting the project, my issue is that everytime the
    renderClass
    macro from
    component.twig
    is called it appears to return null. Therefore the class names are not set correctly in the frontend. I looked through the different versions in the
    compontent.twig
    but couldn’t find any changes that would lead to such a behaviour. Has anyone run into similar issues, or some idea what could promt this beahviour?
  • a

    alert-airline-11929

    02/01/2021, 4:39 PM
    Hey all, i am trying to do a proper crefopay-intrgration into a clean spryker setup following this instructions from the spryker documentation. I had to make some adjustments because the instructions are partly incorrect (sometimes methods have an incorrect parameter count) and had to make a few guesses whether the suggested code should extend or replace the spryker standard code (especially in the .twig-templates). i double checked and ended with an integration but it actually does nothing. I expected at least additional payment methods under the payment-tab in zed but there are only the standard dummy methods. Has anyone encountered such problems with a crefopay integration or has an idea where to start fixing this? Thx in advance!
    a
    • 2
    • 1
  • a

    astonishing-lamp-41374

    02/01/2021, 11:46 PM
    anyB setup xdebug for their spryker project using vscode on mac osX? Think I'm decently close 1. VSCode > Install PHP Debug felixfbecker.php-debug 2.
    brew install php
    3.
    pecl install xdebug
    4. run
    php -m -c
    Copy code
    bash
    ...
    [Zend Modules]
    Xdebug
    Zend OPcache
    5. setup configuration through vscode with launch,json
    Copy code
    {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: <https://go.microsoft.com/fwlink/?linkid=830387>
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Listen for XDebug",
                "type": "php",
                "request": "launch",
                "port": 9000,
                "pathMappings": {
                    "/data": "${workspaceRoot}",
                },
                "log": true
            },
            {
                "name": "Launch currently open script",
                "type": "php",
                "request": "launch",
                "program": "${file}",
                "cwd": "${fileDirname}",
                "port": 9000
            }
        ]
    }
    l
    t
    a
    • 4
    • 9
  • a

    ancient-arm-53696

    02/02/2021, 1:44 PM
    How can I re-generate or update the classes in
    src/Generated/Router/codeBucketDE/Pyz
    ? Using docker b2b shop.
    👀 1
    a
    h
    • 3
    • 3
  • w

    wide-wolf-99519

    02/02/2021, 2:58 PM
    console cache:empty-all
    doesn't seem to clear Zed navigation cache for me, I've had to run
    navigation:cache:remove
    to see changes I've made to Zed nav bar, Is this my fault, like I've misconfigured something?
    c
    m
    s
    • 4
    • 11
  • a

    ancient-apartment-59274

    02/03/2021, 9:05 AM
    Hello again 😄 just for interest: does somebody ever tried to make a usually async P&S flow synchronized? So saving data to the database and afterwards publish stuff to redis/elasticsearch in the same php call so that data is definitive in redis/elasticsearch when the process finished? What steps need to be done? How complicated is this? Are there any spryker built-in functionalities? Best regards
    w
    p
    r
    • 4
    • 30
  • c

    careful-country-34175

    02/03/2021, 10:47 AM
    Hello together, has any of you seen this kind of behaviour? There are several prices per store for the same product. Is the unique check done by
    price_data_checksum
    ?
    s
    • 2
    • 7
  • c

    crooked-accountant-90611

    02/03/2021, 2:38 PM
    Hello, I'm trying to run hello world • running command docker/sdk console codegeneratemodule:yves HelloWorld • having 404 on http://yves.de.spryker.local/hello-world cleaning cache and restarting docker doesn't help, any ideas?
    w
    q
    • 3
    • 11
  • w

    wide-wolf-99519

    02/03/2021, 3:24 PM
    I've got a lot of deprecation notices while running
    composer dump-autoload --optimize
    like
    Copy code
    Deprecation Notice: Class PyzTest\Zed\ProductRelation\ProductRelationPresentationTester located in ./tests/PyzTest/Zed/ProductRelation/_support/ProductRelationPresentationTester.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in /usr/share/php/Composer/Autoload/ClassMapGenerator.php:201
    should I be worried?
    f
    • 2
    • 2
  • p

    purple-belgium-44879

    02/03/2021, 7:28 PM
    Hello folks. Anybody knows why some tests in shop demo project are skipped for quite some time now (
    CheckoutAvailabilityCest
    and
    CheckoutControllerTest
    )?
  • p

    polite-lunch-97479

    02/04/2021, 8:00 AM
    I'm having a business test using several facades to place an order. In the business tester, I'm creating these facades like this:
    Copy code
    /**
         * @return CalculationFacadeInterface
         */
        protected function createCalculationFacade(): CalculationFacadeInterface
        {
            /** @var CalculationFacade $calculationFacade */
            $calculationFacade = $this->getLocator()->calculation()->facade();
    
            $calculationDependencyProvider = new CalculationDependencyProvider();
            $container = new Container();
            $container = $calculationDependencyProvider->provideBusinessLayerDependencies($container);
    
            $calculationBusinessFactory = new CalculationBusinessFactory();
            $calculationBusinessFactory->setContainer($container);
    
            $calculationFacade->setFactory($calculationBusinessFactory);
    
            return $calculationFacade;
        }
    The actual test using these facades is working fine, but some tests (as is from the b2b demoshop) which are running after this are failing now. Has anybody seen a behavior like this before? Will I need to reset facade states or something like that?
    n
    • 2
    • 3
1...313233...102Latest