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

    rhythmic-musician-70059

    12/10/2019, 10:27 PM
    Just a short question: Am I able to call the Resource Controller actions in the Glue Api whatever I want? I've recently stumbled upon those but the are all named like the verb they represent (i.e. postAction for POST, getAction for GET). I was wondering if I'm also able to name it like "fooAction" and to add a few more than just one per verb?!
    f
    • 2
    • 2
  • s

    square-chef-44370

    12/11/2019, 8:50 AM
    We are building a B2B shop. For our warehousetool we have to create a XML file when an order is placed. That works well. Now I have to replace the billing address from the
    $orderEntity
    with the address from the company business unit. How can I achieve that? How to get the address of the company businesst unit from the orderEntity? Any help is appreciated and code examples would be awesome.
    p
    • 2
    • 8
  • c

    crooked-house-89121

    12/11/2019, 3:07 PM
    Hello everyone, does anyone have any experience getting Vue to work with Spryker? I followed the instructions to install React and it worked perfectly. But when trying to get Vue to work following the same procedure I am not getting any results. This is the documentation I followed https://documentation.spryker.com/front-end_developer_guide/yves/integrating-react-into-atomic-frontend-201907.htm
    q
    s
    +3
    • 6
    • 13
  • a

    ancient-apartment-59274

    12/11/2019, 5:17 PM
    Hello everybody. We are currently on migrating the CartsRestApi module for an older shop from a 2.x.x version to an 3.x.x to have the Patch Controller Action available (which wasn’t available before). I followed https://documentation.spryker.com/module_migration_guides/glue_api/cartsrestapi-migration-guide.htm#upgrading-from-version-2---to-version-3-- to migrate this feature but anyhow i get the error
    Error: Call to undefined method Generated\Shared\Transfer\QuoteTransfer::getName() in file /data/shop/development/current/vendor/spryker/carts-rest-api/src/Spryker/Zed/CartsRestApi/Business/Quote/Mapper/QuoteMapper.php on line 47
    I tried to search for this property “name” in all possible quote transfer xml but it doesn’t appear in any module or any transfer xml file … how can i find out, where or when this property was ever used? It looks like dependencies are not proper but the composer update worked and modules seems to be installed correctly. So it’s a bit curious to me … any ideas? Thanks a lot!
    🤔 2
    👀 1
    s
    a
    • 3
    • 3
  • s

    silly-motherboard-93855

    12/12/2019, 11:41 AM
    If we would like to publish an integration package, is there a way we can reuse
    spryker-eco
    vendor on packagist? Is there a way Spryker can add us to it?
    a
    q
    • 3
    • 4
  • r

    rhythmic-musician-70059

    12/13/2019, 9:04 AM
    Hey folks, just a quick question: Is it possible to completely remove yves from the Spryker project? We just use the Glue with a SPA touchpoint and therefore yves is not really necessary for us, but I'm afraid that I run into issues when I "just" remove yves from the project. Has anybody done sth. like that before and could give me an advice? Thanks in advance!
    t
    f
    +2
    • 5
    • 7
  • s

    silly-motherboard-93855

    12/13/2019, 10:03 AM
    Does anyone know if Spryker has any ETA for https://docs.adyen.com/checkout/migrating-to-drop-in ?
    a
    • 2
    • 1
  • a

    ancient-apartment-59274

    12/13/2019, 10:10 AM
    Hello. I tried to generate the OpenApi schema for glue which has an array inside for the cart patch request. The output of the generation is the following (snippet)
    Copy code
    ...
    RestCartsRequestAttributes:
        properties:
            priceMode:
                type: string
            currency:
                type: string
            store:
                type: string
            discounts:
                items:
                    $ref: '#/components/schemas/RestCartsDiscountsTransfer'
    ...
    However, after import this leads in Postman to
    {
    "data": {
    "type": "<string>",
    "attributes": {
    "priceMode": "<string>",
    "currency": "<string>",
    "store": "<string>",
    "discounts": "schema type not provided"
    }
    }
    }
    As you can see, the discounts should be displayed as an array, an error/fault string occurred instead. It seems that the generator does omit the type if it is an array of objects. It should be more
    Copy code
    RestCartsRequestAttributes:
        properties:
            priceMode:
                type: string
            currency:
                type: string
            store:
                type: string
            discounts:
                type: array
                items:
                    $ref: '#/components/schemas/RestCartsDiscountsTransfer'
    And then it works correctly
    {
    "data": {
    "type": "<string>",
    "attributes": {
    "priceMode": "<string>",
    "currency": "<string>",
    "store": "<string>",
    "discounts": [
    {
    "displayName": "<string>",
    "amount": "<integer>",
    "code": "<string>"
    },
    {
    "displayName": "<string>",
    "amount": "<integer>",
    "code": "<string>"
    }
    ]
    }
    }
    }
    Is this a known issue? Best regards
    i
    a
    • 3
    • 5
  • w

    wooden-king-30682

    12/16/2019, 8:21 AM
    Hi, In our project we have Redis synchronization issues since several months. Mainly we have not all data in redis which is part of the related *_storage table. To see if all data is synchronized to Redis I’ve build a tool to compare the count of a *_storage table with the respective key count in redis. With this tool it became pretty obvious that we have a synchronization problem. I already took several experiments and tried to find anything in the logs, but there was just no reasons I could find, which could explain the missing entries. What I’ve validated so far: - Redis: maxmemory = 0 - Redis: maxmemory-policy: noeviction - Writing 100000 entries with random strings (writing was completely successful) - manual comparing counts with redis-cli vs. DB Did you had similar experiences in any of you Spryker projects or did you have a hint what else we can have a look into? One thing which took our attention in this regards was that after we have set up a test Kubernetes cluster with a managed Postgres database in Azure, but still a self hosted redis, this issue did not came up again. But I couldn’t find an issue with loading the data from the database either.
    p
    f
    +2
    • 5
    • 12
  • s

    sparse-kangaroo-34355

    12/16/2019, 3:04 PM
    Hi, has anyone queried business units before based on the company? All I found was the
    getCompanyBusinessUnits
    in project/src/Orm/Zed/Company/Persistence/Base/SpyCompany.php : 2142. Don't know how to take use of this.
    i
    f
    • 3
    • 3
  • r

    rich-camera-19306

    12/17/2019, 11:25 AM
    Anyone faced this:
    Copy code
    /var/www/node_modules/@spryker/oryx/lib/build.js:26
                let duration = moment(stats.endTime - stats.startTime).format('s.SS');
                                            ^
    
    TypeError: Cannot read property 'endTime' of undefined
        at build.webpack (/var/www/node_modules/@spryker/oryx/lib/build.js:26:41)
        at finalCallback (/var/www/node_modules/@spryker/oryx-for-zed/node_modules/webpack/lib/Compiler.js:210:39)
        at emitAssets.err (/var/www/node_modules/@spryker/oryx-for-zed/node_modules/webpack/lib/Compiler.js:232:21)
        at asyncLib.forEach.err (/var/www/node_modules/@spryker/oryx-for-zed/node_modules/webpack/lib/Compiler.js:352:22)
        at /var/www/node_modules/neo-async/async.js:2830:7
        at /var/www/node_modules/neo-async/async.js:2830:7
        at done (/var/www/node_modules/neo-async/async.js:2863:11)
        at /var/www/node_modules/neo-async/async.js:2818:7
        at fs.open (fs.js:1174:7)
        at FSReqWrap.args [as oncomplete] (fs.js:140:20)
    q
    • 2
    • 1
  • b

    best-keyboard-11166

    12/17/2019, 1:20 PM
    Hi everyone, I think I have a pretty simple question, but still we were not able to resolve it with a reasonable amount of investigation: - which controller or component handles the /login_check request in Yves? - How can I intercept a successful login event in Zed (CustomerFacade->tryAuthorizeCustomerByEmailAndPassword seems not to be called)?
    s
    w
    s
    • 4
    • 12
  • m

    many-island-21253

    12/18/2019, 8:44 AM
    I am writing automated user tests, like „Go to list page, change sorting to 'by price', check if first article is cheaper than second article,…“. This is mostly done by Javascript, like
    document.querySelector('#button_sorting').click();
    (I use GhostInspector, but just consider that being an abstraction layer). My problem with Spryker is now, that many form elements like dropdowns seem to get “randomized changing“ attributes on each reload, for example:
    <li class="select2-results__option select2-results__option--highlighted" id="select2-ipp-r1-result-8c4s-12" role="option" aria-selected="true" data-select2-id="select2-ipp-r1-result-8c4s-12">
    12
    </li>
    …when I reload the page “id“ will change from “something-
    8c4s
    -something" to another 4-letter-combination, also data-select2-id, and also this happens on the parent
    select
    of an
    option
    . This happens to the “real“ elements like
    select/option
    and also the themed ones like
    ul/li
    or custom-select. This makes writing a selector very, very difficult, also making my code break easy, because I have to work with soft patterns like
    contains *-select-*
    1. What is the intention behind this behaviour? 2. Can we just “configure that away“. 3. Is there some documentation how to deal with it, and what's best practice to querySelect elements?
    c
    • 2
    • 2
  • r

    rapid-diamond-82606

    12/18/2019, 8:57 AM
    Hi, is there any documentation of the config parameters für Yves/Glue/Zed? For Yves and Zed, We've found a bunch in the code (like HOST_YVES or TRUSTED_PROXIES), but for Glue, I don't find much helpful information
    i
    c
    • 3
    • 3
  • s

    sparse-fall-78248

    12/18/2019, 10:20 AM
    Hi Spryker Community! Quick question: Where do the folders
    src/Orm/Zed/Store/Persistence/Base
    and
    src/Orm/Zed/Store/Persistence/Map
    magically come from? It doesn't seem to correspond with a simple Composer Install. The base folder
    src/Orm/Zed/Store/Persistence/
    exists in the repository, but the two subfolders don't. Thank you!
    w
    • 2
    • 2
  • s

    steep-receptionist-20341

    12/18/2019, 11:37 AM
    Stay Up-to-Date with the New Features
    First of all, make sure you do not miss our two-weekly release mail newsletter (subscribe to them and be well informed). Staying up-to-date with the improvements and the new features will help you to understand what releases will bring business value to your company.
    I’m a bit disappointed. I have been subscribed for quite a few months now but have never seen one of these two-weekly release mails. Is “composer outdated” really the only way?
    a
    h
    • 3
    • 2
  • s

    sparse-kangaroo-34355

    12/19/2019, 10:31 AM
    Hi, I got a question on OMS: how can I trigger an event upon entering the first state? (well, there is no transision) My scenario: I want so send an order confirmation mail right after the customer hits the "Place order". Currently all of our orders remain in Zed as
    new
    , because we export new orders as xml for our own system anyway. Another way would be passing new orders to the next (2nd) state (
    new
    ->
    confirmed
    and adding an event in this transision). So, a question on this would be (too): how could I trigger this? There is no
    onEnter=true
    neither since there's no event 🤔
    h
    • 2
    • 2
  • r

    rhythmic-microphone-10950

    12/19/2019, 1:23 PM
    When I try to start my docker project (docker/sdk up) the following happens but the containers do not come up:
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    /usr/local/bin/execute.sh: line 7:     6 Killed                  bash -c "${COMMAND}"
    h
    • 2
    • 10
  • g

    glamorous-quill-49387

    12/19/2019, 1:48 PM
    Hi guys. It appears that yves always assignes new session id's rather then checking if there is already existing session. Anyone had an simmilar issue?
    a
    w
    p
    • 4
    • 5
  • s

    silly-motherboard-93855

    12/19/2019, 4:42 PM
    What's the difference between
    originUnitNetPrice
    and
    sourceUnitNetPrice
    ?
    a
    • 2
    • 1
  • s

    silly-motherboard-93855

    12/20/2019, 9:52 AM
    do I understand correctly it is impossible to have a quote item transfer have both net and gross price to have a non-zero value? https://documentation.spryker.com/capabilities/price/net-gross-price.htm?Highlight=price%20%20mode mentions
    BOTH
    but this is nowhere given in https://github.com/spryker/price/blob/master/src/Spryker/Shared/Price/PriceMode.php
    i
    s
    • 3
    • 6
  • s

    silly-motherboard-93855

    12/23/2019, 10:32 AM
    We encounter
    fwrite(): send of 8192 bytes failed with errno=110 Connection timed out
    lately. Is there a process that explains how to set this up correctly? Only some jobs seem to fail with this error.
    event-trigger-timeout
    and
    product-relation-updater
    specifically
  • f

    fierce-battery-19636

    12/30/2019, 4:47 PM
    Do you have an automized test execution for PRs into https://github.com/spryker-shop/suite? Lots of tests failing for us. Example:
    root@ce2cc6a1857b:/data/shop/development/current# vendor/bin/codecept run -f -vvv -c tests/PyzTest/Glue/AlternativeProducts/
    Throwing this error:
    Copy code
    AbstractAlternativeProductsRestApiCest: Request abstract alternative products
    Test  RestApi/AbstractAlternativeProductsRestApiCest.php:requestAbstractAlternativeProducts
     Step  See response code is 200
     Fail  Expected HTTP Status Code: 200 (OK). Actual Status Code: 404 (Not Found) with the response "{"errors":[{"status":404,"detail":"Not Found"}]}"
    Failed asserting that 404 matches expected 200.```
    This test is trying to GET a product via GLUE (concrete product 2057340392). This product exists in spy_product, but is not in spy_product_concrete_storage database - maybe thats the reason for failing test.
    root@ce2cc6a1857b:/data/shop/development/current# vendor/bin/codecept fixtures -vvv
    is throwing 5 errors i.e.
    Copy code
    Glue/Carts/RestApi/Fixtures/CartsRestApiFixtures.php:buildFixtures -> Return value of PyzTest\Glue\Carts\RestApi\Fixtures\CartsRestApiFixtures::createPersistentQuote() must be an instance of Generated\Shared\Transfer\QuoteTransfer, null returned
    We like to know if tests inside https://github.com/spryker-shop/suite are executed and running? Thanks!
    s
    a
    • 3
    • 3
  • f

    fast-hairdresser-14597

    01/03/2020, 11:53 AM
    Hello everyone! Does anybody know it there is a way to add custom methods/interfaces to the generated transfer objects?
    w
    m
    • 3
    • 7
  • s

    sparse-kangaroo-34355

    01/06/2020, 1:20 PM
    Hi all, on our system the product-list feature is quite bugged. • Blacklists are not working at all (you can see everything) • Whitelists are hiding everything (no matter what you selected) Anyone faced this before? Have the module spryker/product-list installed in version 1.5.4. Any ideas?
    t
    • 2
    • 11
  • a

    acoustic-businessperson-27970

    01/07/2020, 9:19 AM
    Hallo everyone 🙂 Happy new year to you all 🙂 I have a problem with RabbitMQ GuzzleHttp\Exception\ClientException - Exception: Client error:
    PUT <http://rmqhost:15672/api/vhosts/vhost_name>
    resulted in a
    401 Unauthorized
    response: {“error”“not authorised”,“reason”“Not management user”} Have anyone encountered something similar? and how to fix it? Thank you very much
    a
    • 2
    • 1
  • l

    little-kitchen-79455

    01/07/2020, 4:35 PM
    Happy New Year to you all. Is there anyway to enable cms page search based on template?
  • l

    little-kitchen-79455

    01/07/2020, 4:36 PM
    I dont see the elastic search document has field template for the cms_search_page. Any suggestions are appreciated.
    s
    • 2
    • 27
  • s

    silly-motherboard-93855

    01/08/2020, 9:36 AM
    Does Spryker provide any way to do a
    TTL
    command on a redis key?
    f
    m
    • 3
    • 7
  • b

    best-keyboard-11166

    01/08/2020, 2:25 PM
    Hi there, after updating product-management to 0.19.2 we are experiencing exceptions regarding missing xss_sanitize option. I assume there is another module providing that option which is not mentioned in the dependencies. fyi: currently using spryker/gui 3.29.0
    a
    • 2
    • 8
1...91011...102Latest