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

    faint-telephone-28637

    06/30/2023, 11:21 AM
    Where do we change to domain mapping for the initial setup - looking to map yves.de.spryker.local to demo.myshop.co.uk
    p
    • 2
    • 2
  • f

    freezing-guitar-75665

    06/30/2023, 11:36 AM
    Hello Team, console propel:install command is taking more than 5 hrs in my MacBook. But I can see the same configuration laptop in Ubuntu OS, it is taking only few minutes. Do I need to setup anything in my macBook? Can you suggest me anything to resolve that issue? MacBook configuration: 16GB RAM, 512 GB storage
    a
    • 2
    • 3
  • c

    cool-dawn-43386

    06/30/2023, 12:02 PM
    Hi here, In our B2B-marketplace project, we need to use Thresholds (the soft one mainly) to manage the delivery prices (fixed price, and above some amount, free delivery). We don't have any Global Threshold defined, because each merchant has its own delivery price. We defined a unique delivery method which price is set to 0. So, i set Merchant RelationShips between each merchant and the main Business unit (as shown on screenshot MerchantRelations.png). Next, for each merchant, I set the soft threshold to wanted values (SoftThresholdDefinition.png). I do it for each needed merchant (ThresholdIndex.png). Next, as a customer, i add to my cart some products from a merchant (the one shown in SoftThresholdDefinition.png). As I don't reach 100€, I expect to see a Surcharge of 15€ (as shown on expectedSurcharge.png which is a screen from SprykerAcademy, mine is actualCart.png). While I was failing to make this work, I followed the "Cart and Checkout PBC" lessons which made me know that it should work as I do... I must miss something, thanks for support.
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:23 AM
    πŸ‘‹ Hello, team!
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:23 AM
    Hi guys, I'm new to Spryker
    πŸ‘‹ 1
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:24 AM
    I work on Linux environment, I followed the instructions from this link to install the project under local
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:24 AM
    https://docs.spryker.com/docs/scos/dev/setup/installing-spryker-with-docker/installat[…]uides/installing-in-development-mode-on-macos-and-linux.html
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:27 AM
    The installation is done, but when accessing some local domains it doesn't recognize it.
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:28 AM
    http://yves.de.spryker.local/ http://yves.at.spryker.local/ http://backend-gateway.de.spryker.local/
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:29 AM
    image.png
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:29 AM
    This site can’t be reached. We also added the hosts file
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:30 AM
    docker ps
  • a

    acoustic-terabyte-93857

    07/01/2023, 11:30 AM
    Has anyone had this bug?
    🧡 1
  • a

    acoustic-terabyte-93857

    07/01/2023, 3:13 PM
    I see some errors from the gateway container log:
    nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/conf.d/default.conf:1481
    2023/07/01 14:49:19 [emerg] 1#1: socket() [::]:80 failed (97: Address family not supported by protocol)
  • a

    acoustic-terabyte-93857

    07/02/2023, 5:08 AM
    An error occurred when trying to access http://backend-gateway.us.spryker.local/ Symfony\Component\HttpKernel\Exception\NotFoundHttpException - No route found for "GET http://backend-gateway.us.spryker.local/" (from "http://spryker.local/")
    s
    • 2
    • 2
  • a

    acoustic-terabyte-93857

    07/02/2023, 5:08 AM
    @here Has anyone had this bug?
    p
    • 2
    • 20
  • c

    cool-dawn-43386

    07/03/2023, 7:08 AM
    Hello there, any idea for my issue? https://sprykercommunity.slack.com/archives/CKJRJM5FG/p1688126532715799
  • r

    rich-guitar-29888

    07/03/2023, 12:24 PM
    This message contains interactive elements.
    q
    • 2
    • 6
  • c

    calm-toddler-60539

    07/03/2023, 2:14 PM
    Can someone please advice me on writing functional tests for GlueEndpoints? Any reading material or hint will be appreciated
  • p

    prehistoric-actor-16607

    07/03/2023, 2:15 PM
    Hi There πŸ‘‹ I just started with Spryker and have question regarding the Stub. My plan is it to call a Zed Gateway Controller without sending Parameters like in the Spryker Tutorials.
    Copy code
    // Pyz\Client\Training\Stub\TrainingStub.php
    
        public function getAllAntelope(): AntelopeCollectionTransfer
        {
            /** @var \Generated\Shared\Transfer\AntelopeCollectionTransfer $antelopeCollectionTransfer */
            $antelopeCollectionTransfer = $this->zedRequestClient->call('/training/gateway/get-all-antelopes', new AntelopeCollectionTransfer());
    
    
    
            return $antelopeCollectionTransfer;
        }
    But the second argument of
    ZedRequestClientInterface->call()
    wants a
    TransferInterface
    what is the design purpoise behind this? There are cases where I just want to fetch Information from a Zed Controller without sending criteria Objects or other Parameters at all. With that sad it seems to be that under the hood
    ZedRequestClientInterface->call(...)
    translates into an internal
    POST
    requests ? My Zed-Gateway Controller looks like this btw:
    Copy code
    // Pyz\Zed\Training\Communication\Controller\GatewayController.php
        public function getAllAntelopesAction() :AntelopeCollectionTransfer
        {
            return $this->getFacade()
                ->getAntelopes();
        }
    πŸ‘€ 1
  • c

    cool-dawn-43386

    07/03/2023, 3:56 PM
    Hello, I went a little further from my issue : https://sprykercommunity.slack.com/archives/CKJRJM5FG/p1688368095312339 So, what I did wrong : I need to assign every business Unit to each merchant relation. But, i should not need assign any product (cause the doc says if we assign no product, all are). I'm doubtful about a spryker which doesn't work as i expect: vendor/spryker/merchant-relationship-sales-order-threshold/src/Spryker/Zed/MerchantRelationshipSalesOrderThreshold/Business/MerchantRelationshipThreshold/MerchantRelationshipThresholdReader.php::isMerchantRelationshipItem() which in my case is always false, cause I have null at $itemTransfer->getPriceProduct()->getPriceDimension()->getIdMerchantRelationship(). here's the method:
    Copy code
    protected function isMerchantRelationshipItem(ItemTransfer $itemTransfer): bool
        {
            return $itemTransfer->getPriceProduct() &&
                $itemTransfer->getPriceProduct()->getPriceDimension() &&
                $itemTransfer->getPriceProduct()->getPriceDimension()->getIdMerchantRelationship();
        }
    It should be fine if i can understand better what's happening here, if you have a link to some consistent documentation, I can deal with. Have a great evening.
  • a

    acoustic-terabyte-93857

    07/04/2023, 4:13 AM
    Hello I use jarvis to update version update: node jarvis.js ../b2c-demo-shop However, an error occurred
    Copy code
    Welcome, my name is Spryker Jarvis. Today I will help you to migrate your Spryker project!
    
    As part of my services, I will store your composer.json and composer.lock files.
    Those will allow my colleagues at Spryker to provide better tooling and support in the future.
    If you do not agree with this, please hit Cmd + c or Ctr + c to cancel my services.
    
    Welcome back project b2c-demo-shop! I hope your project is not too outdated...
    First let me check if my information about Spryker Features and Modules are up to date.
    
    No, they are not. Let me refresh them. This is take less than 1 minute I hope...
    
    I am sorry to announce that something went wrong, I could not retrieve any information from Spryker...
    Please verify that you are connected to the Internet. If yes, please send an email to <mailto:support@spryker.com|support@spryker.com> to notify them that you could not use my services today.
    p
    • 2
    • 3
  • h

    hallowed-eye-69242

    07/04/2023, 8:36 AM
    Hello, Sprykees. I have totally weird behavior in my publish listeners. I'm still using Spryker
    202009.0
    . Previously everything was fine. My last task was to extend
    product-discontinued
    module to have store relation so product can be discontinued for one store only. As I introduced new
    spy_product_discontinued_store
    table, I created two new listeners, that publish or unpublish when there are changes in this store. This listeners doesn't extend core listeners. Locally everything work perfectly, but on staging it works time-to-time. Once it works, next time it fails with an error:
    "errorMessage":"Message body is not valid"
    . If I trigger listeners with
    console event:trigger:listener
    I have no problem, everything works fine. I have found this message in
    EventQueueConsumer
    and we have it, when listener or
    EventEntityTransfer
    is missing. But, as I see in rabbitMQ message, both
    listenerClassName
    and
    transferClassName
    are set and they definitely exist. And, as I said previously, it works randomly - sometimes works, sometimes - not. I have no idea how to debug it or what else I can do. Any ideas? Thank you in advance.
    b
    • 2
    • 9
  • r

    rich-guitar-29888

    07/05/2023, 5:32 AM
    This message contains interactive elements.
    p
    • 2
    • 20
  • m

    modern-orange-68429

    07/05/2023, 12:32 PM
    Hello, we are facing a strange issue with the local environment while running the acceptance tests. It can not do the backoffice login in a test. It works ok in CI environment tho. We have debug it and found that it opens the backoffice URL, but then it receives redirect to
    /security-gui/login
    which does not work in local environment. Has anyone seen this issue before?
    • 1
    • 1
  • f

    fancy-mechanic-82782

    07/06/2023, 8:57 AM
    Hi All, I am new to spryker, building a frontend application for Spryker B2B marketplace. Here is my Query How can I access Spryker Glue APi endpoints from my frontend application running on different port/server ? The followings are the usecase 1. My frontend React application is running on a different server independently i.e on port 4000 2. My Spryker application is running on Ubuntu environment inside Windows on a 127.00.01 local host. 3. Spryker application is running on a docker container without any ngnix 4. When I tried to call glue APi end point from my react app it responded with CORS error and not able to connect Q-1 How to get access token from the local spryker backend glue APi Q-2 How to fix CORS error for spryker local deployed on a docker container
    l
    • 2
    • 3
  • l

    little-island-16971

    07/06/2023, 1:17 PM
    Hi All, I am upgrading Spryker from 202009 to 202212. Most of the changes have done,
    code:sniff:style
    and
    code:sniff:architecture
    are working well. But when I run phpstan I have some errors that I think it should not be there. For instance in the following file from the b2b-demo-shop https://github.com/spryker-shop/b2b-demo-shop/blob/master/src/Pyz/Zed/CustomerAccess/Persistence/CustomerAccessRepository.php phpstan shows the following errors
    Copy code
    Line   Pyz/Zed/CustomerAccess/Persistence/CustomerAccessRepository.php
     ------ ----------------------------------------------------------------------------------------------------------------------
      52     Parameter #1 $customerAccessEntities of method
             Pyz\Zed\CustomerAccess\Persistence\Propel\Mapper\CustomerAccessMapper::mapEntitiesToCustomerAccessTransfer() expects
             Propel\Runtime\Collection\ObjectCollection, Propel\Runtime\Collection\Collection given.
      67     Parameter #1 $customerAccessEntities of method
             Pyz\Zed\CustomerAccess\Persistence\Propel\Mapper\CustomerAccessMapper::mapEntitiesToCustomerAccessTransfer() expects
             Propel\Runtime\Collection\ObjectCollection, Propel\Runtime\Collection\Collection given.
      82     Parameter #1 $customerAccessEntities of method
             Pyz\Zed\CustomerAccess\Persistence\Propel\Mapper\CustomerAccessMapper::mapEntitiesToCustomerAccessTransfer() expects
             Propel\Runtime\Collection\ObjectCollection, Propel\Runtime\Collection\Collection given.
     ------ ----------------------------------------------------------------------------------------------------------------------
    This is the code for the first error, the others are because of the same:
    Copy code
    $unauthenticatedCustomerAccessEntity = $this->getFactory()
                ->getPyzUnauthenticatedCustomerAccessQuery()
                ->filterByIsRestricted(false)
                ->find();
    
            return $this->getFactory()
                ->createPyzCustomerAccessMapper()
                ->mapEntitiesToCustomerAccessTransfer($unauthenticatedCustomerAccessEntity, new CustomerAccessTransfer());
    Why phpstan complains about Collection, when the
    find
    function is really returning an ObjectCollection and not a Collection. Thanks in advance.
    q
    • 2
    • 2
  • f

    few-tomato-6859

    07/07/2023, 1:33 PM
    My Spryker Application runs into Gateway Timeouts (504) in one endpoint which serves a big file from s3 (~400MB). Now I think I have two options: β€’ Extend the nginx timeout of this endpoint. I know this is possible with nginx but the Spryker architecture doesn't seem to allow it, right? I know of the
    deploy.yaml
    directive
    services: nginx: timeout: XY
    but this sets this timeout globally, which is not what I want. β€’ Optimize our application code to start serving the file immediately instead of after download by the server. I have done this but it didn't bring the desired result. (Code example in first thread comment)
    q
    • 2
    • 3
  • a

    acoustic-terabyte-93857

    07/09/2023, 3:19 PM
    navigation.xml(
    src/Pyz/Zed/FooBar/Communication/navigation.xml
    ) don't work in specific module. But It work when I copy it through config global(
    config/Zed/navigation.xml
    ) Even cleared cache:
    docker/sdk console cache:empty-all
    docker/sdk console navigation:build-cache
  • a

    acoustic-terabyte-93857

    07/10/2023, 1:15 AM
    docker/sdk console spryk:run AddYvesPage
    Error - Exception: Call to undefined method PHPStan\BetterReflection\BetterReflection::classReflector()
    Error when generate code template
    AddYvesPage
    (https://docs.spryker.com/docs/sdk/dev/spryks/spryks.html#install-spryk)
    p
    • 2
    • 5
1...9899100101102Latest