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

    orange-analyst-340

    07/08/2021, 11:36 AM
    Hello everyone. We get multiple method definitions in Orm/Zed/User/Persistence/Base/SpyUser.php and Orm/Zed/User/Persistence/Base/SpyUserQuery.php. Did anyone had simmilar issue? How to prevent this from happening? How are those files generated?
    p
    • 2
    • 1
  • a

    ancient-apartment-59274

    07/08/2021, 12:28 PM
    Hello, does somebody already implemented a warehouse based availability indication for frontend? As far as i see, the stock for a product is always calculated based on the whole store, no matter of the warehouse. Means: In WarehouseA there are 5 items, in WarehouseB there are 3 items … on frontend you get a total stock of 8 but you don’t now how the stock is spread over the warehouses. This makes totally sense since the usual case is, that as a customer you don’t care about from which warehouse your item is shipped from. But we have the case that the customer has a warehouse assigned from which he gets his item. So he wont travel to the next warehouse which might be very far away^^ Any idea for a lightweight solution to indicate a warehouse based availability indication? Is there even a spryer feature? Best
    ✔️ 1
    f
    d
    • 3
    • 2
  • a

    ancient-apartment-59274

    07/12/2021, 7:48 AM
    Hello again 🙂, and lets start this week with some extensive question … sorry in advance^^ the question rises very often, where (or in which layer) to implement specific stuff like connections to external system etc. I tried to find a “definite” answer in the docs but i think there is no. To break question down: Implement a client on client layer or implement an API in Zed Layer? For example connecting external user access management that can be called via an Rest-API. You could put it into a separate api module like “user-access-api” like spryker does for many eco-modules like payment integrations … Then you would have for a typical call from Yves the route Yves->MyModuleClient->MyModuleGatewayController->MyModuleBusinesslogic->MyModuleApi->MyModuleApiClient->APICall or you could put code just into the client layer which seems more obvious at the first view. At least if the functions are very simple and no complex business logic is needed in spryker. For example a
    isUserAllowed($userID)
    function which will just return if the user is allowed doing specific stuff or not. The chain would be Yves->MyExternalServiceClient->isUserAllowed My present opinion is, that whenever Zed has also to “know” about whats going on there, implement an API and everything on top (separate Zed client for this module etc). Because you have to call Zed anyway and do everything that is needed also in Zed backend. Whenever it should be “lightweight” and fast and Zed don’t need to know about -> implement a client on client layer. But then someone could argue: “Why not always implementing a client and use them in both, yves and zed?” This is a valid argument in my eyes since if you decide to implement a client on client layer first this would keep the door open for later changes. All other “consumers” are added around. Especially when the external service is providing a mix of “lightweight” functions like “isAllowed” and more heavy ones where something in Zed has to be updated like “fetchUserInfo”. However, is there a thumb rule / general recommendation when to go for which approach? I know, it depends heavily on the use case, but maybe there might be facts/thoughts that definitely would break the one or the other way. Best
    👀 1
    p
    m
    • 3
    • 19
  • p

    purple-belgium-44879

    07/12/2021, 9:16 AM
    Hello folks. Sorry for asking a stupid question: Is there some URL GET param filtering/sanitizing in YVES? I want to pass a custom parameter, but it constantly gets removed on page load.
    p
    • 2
    • 7
  • a

    acoustic-motherboard-16553

    07/12/2021, 4:11 PM
    Hey guys, we have atm the issue that the checkout is broken. We could reproduce it in your demo shop. Maybe you can take a look. Problem 1: no recalculation for shipment expenses Problem 2: same as 1 since coupon should not have shipment expenses Problem 3: Fail whale
    a
    f
    a
    • 4
    • 8
  • r

    rough-egg-5359

    07/13/2021, 8:43 AM
    Hello.. Who know how work with product url in yves ?
    p
    • 2
    • 1
  • f

    full-river-39179

    07/14/2021, 6:37 AM
    Hello everybody, I'm having a small issue. I'm running Spryker on a Windows machine using Vagrant. I headlessly started my VM to work on it, but I keep getting this connection error. It appears when connecting to either Yves or Zed through the forwarded urls. The problem persists even after restarting my VM several times. It looks to me like it's failing to connect to Redis using Predis, so I'm guessing that the Redis server on the VM is just not started. I'm not sure how to start it using the Spryker configuration though, and I could not find any console command for something like that! I would appreciate any help I could get!
    f
    • 2
    • 2
  • m

    many-yacht-15129

    07/14/2021, 3:26 PM
    Hello All, I wanted your help regarding Click & Collect functionality. I find out that spryker already implemented this functionality so is there any way to get the feature list for click and collect along with some references where Spryker implemented the click & collect also if there is any demo site available for the same?
    p
    • 2
    • 3
  • a

    astonishing-lamp-41374

    07/14/2021, 5:58 PM
    Copy code
    ╭─/data | Store: US | Env: docker.dev | Debug: (X) | Testing: (X)
    ╰─$ codecept run -c tests/PyzTest/Zed/SomeModule/
    Codeception PHP Testing Framework v4.1.1
    Powered by PHPUnit 7.5.20 by Sebastian Bergmann and contributors.
    Running with seed:
    
    
    PyzTest\Zed\SomeModule.Business Tests (1) -----------------------------------------------------------------------
    E DoingAThingMapperTest: Whatever
    -------------------------------------------------------------------------------------------------------------------------------------
    
    In ConnectionFactory.php line 42:
    
      Unable to open connection
    
    
    In PdoAdapter.php line 72:
    
      Unable to open PDO connection
    
    
    In PdoConnection.php line 64:
    
      SQLSTATE[HY000] [2002] Connection refused
    
    
    .....
    
    ╭─/data | Store: US | Env: docker.dev | Debug: (X) | Testing: (X)
    Copy code
    /**
         * @var \PyzTest\Zed\Business\SomeModule
         */
        public $tester;
    
        /**
         * @return void
         */
        public function testWhatever()
        {
    What’s up here?
    a
    • 2
    • 19
  • w

    wide-wolf-99519

    07/15/2021, 9:32 AM
    hey, what's the best way to create breadcrumbs/category path for product? which facade should be used for such task? like Plants/Trees/Conifer/Spruce
  • f

    full-motorcycle-97796

    07/15/2021, 10:41 AM
    Hey, does someone know what spryker mean with the comment in the following code snippet?
    Copy code
    // ---------- State machine (OMS)
    $config[OmsConstants::ACTIVE_PROCESSES] = [
        'Nopayment01',
    ];
    $config[SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING] = [
        GiftCardConfig::PROVIDER_NAME => 'DummyPayment01', // Order State Machine name of your choice
        NopaymentConfig::PAYMENT_PROVIDER_NAME => 'Nopayment01',
    ];
  • f

    full-motorcycle-97796

    07/15/2021, 10:43 AM
    Is “DummyPayment01” a placeholder? Or is this statemachine required?
    q
    • 2
    • 2
  • p

    plain-house-98998

    07/15/2021, 10:44 AM
    AFAIK, There has to be a state machine workflow defined with this name
    f
    • 2
    • 1
  • r

    rough-egg-5359

    07/15/2021, 1:19 PM
    Guys .. I have problem.. when twig render tag form delete .. What it can be ?
    h
    p
    • 3
    • 27
  • a

    ancient-apartment-59274

    07/16/2021, 7:09 AM
    Hello, seems we pushed sprykers product bundle feature to the limit. At the moment we have nearly 200 bundled products in backend that can belong up to 3000 product bundles in 10 different warehouses … we hit problems when it comes to re-calculating the availability which also includes stock calculation … for example: one bundled product changed its stock for one warehouse, then 3000 bundles including this bundled product have to be recalculated … this results in our case in timeouts after 60s when you change something in backend for a product … this is also true for importing/updating everything on the product that does not belong to stock/availability related stuff since the recalculation plugins always run on save. However, we are lucky in our scenario and we always want to have our product bundles available (isneveroutofstock=true) regardless of the availability of the bundled items … Is there a quick fix to make the availability of the product bundles not depending on the bundled products quantity? Best
  • r

    rough-egg-5359

    07/16/2021, 9:47 AM
    Guys .. I have problem.. when twig render tag form delete .. What it can be ?
    p
    • 2
    • 1
  • w

    witty-jordan-77597

    07/16/2021, 11:33 AM
    Hallo Channel, does anyone know if we can use translations within the Yves components typescript? In twig we can call
    {{ 'my.key.for.translation' | trans }}
    which then looks at glossary store for a suitable translation to this key, is there a possible way to use similar keys in JS/Typescript to translations via glossaries more dynamically?
    r
    l
    • 3
    • 9
  • w

    wide-wolf-99519

    07/19/2021, 1:15 PM
    this might be more a propel question, but how do I delete rows from one table using another table in WHERE clause? use{RelatedTableName} doesn't seem to work here
    Copy code
    $this->getFactory()
        ->createSomeQuery()
        ->useRelatedEntity()
        ->filterByRelatedEntityColumn($someValue)
        ->endUse()
        ->delete(); // doesn't work for me
    a
    • 2
    • 6
  • s

    salmon-gold-17445

    07/20/2021, 7:53 AM
    Hello Spryker Community, im using Spryker locally via Docker, but i got issues when im starting docker in debugging mode. When i use "docker/sdk up -x" i cannot access glue.de.spryker.local anymore i get 502 Bad Gateway. I use for "docker/sdk boot deploy.local.yml" (attached). I followed the instruction from documentation: https://documentation.spryker.com/docs/installing-in-development-mode-on-windows https://documentation.spryker.com/docs/configuring-debugging-in-docker#switching-to-the-debugging-mode How do i troubleshoot this error?
    deploy.local.yml
  • f

    flaky-boots-28440

    07/20/2021, 2:23 PM
    Hello everyone, On the CheckoutAddressCollectionForm, I'm trying to change the defaults for the Salutation and the Country of the billing address. On the billing form (and only there), they are set to Mr. and Albania (the first country in the available countries array). Could someone point me to the FormBuilder option to change these?
    e
    a
    • 3
    • 9
  • a

    acoustic-motherboard-16553

    07/21/2021, 8:03 AM
    Hey guys, atm I am debugging some issues for us in payone. On this way I found https://github.com/spryker-eco/payone/blob/4.4.0/src/SprykerEco/Zed/Payone/Business/TransactionStatus/TransactionStatusUpdateManager.php#L348 maybe you can fix this in a later update, ty.
  • a

    acoustic-motherboard-16553

    07/21/2021, 9:24 AM
    Hey guys, I have a question according to the OMS. When we do versioning for the oms and deploy the new version, what happens to the old one? Could it be possible that the timeout und condition check for the old versions stops and the process wont run automatically forward?
    l
    g
    • 3
    • 4
  • m

    microscopic-spoon-7123

    07/21/2021, 3:10 PM
    Hi @all! I am trying to translate OMS statuses to russian language. I've added "ru_RU" language to the file config/Shared/stores.php, added translations in Glossary section http://joxi.ru/L21oDd8fzGGjbr , enabled "ru_RU" language in User preferences. But OMS statuses are still shows in english http://joxi.ru/8Anqg9MHo11dl2 I've tried console commands
    Copy code
    console translator:clean-cache
    console translator:generate-cache
    it didn't help. Can someone help me?
    • 1
    • 1
  • q

    quaint-midnight-78937

    07/22/2021, 9:35 AM
    Hi community! I am working with the
    marketplace
    solution and I was recently updating the composer module
    zed-ui
    from version
    0.3.12
    to
    0.4.3
    . However, updating from version
    0.3.x
    to
    0.4.x
    came with those breaking changes according to the Github release: • Removed 
    index.ts
    . • Removed 
    app.module.ts
    . • Removed 
    environment.prod.ts
    . • Removed 
    environment.ts
    . • Removed 
    index.html
    . • Removed 
    main.ts
    . • Removed 
    polyfills.ts
    . These changes mess with the setup of
    tsconfig.mp.json
    and with
    angular.json
    . Is there a migration guide for this particular problem?
    d
    f
    • 3
    • 5
  • f

    famous-photographer-66091

    07/23/2021, 9:50 AM
    Hi! Has anyone tipps/tools for generating a good code coverage report for a spryker shop? We tried using the codeception coverage with pcov but it seems to ignore configured excludes/filenames. What is the best way to go?
    w
    • 2
    • 7
  • f

    flaky-boots-28440

    07/23/2021, 11:01 AM
    Hi everyone, I ran into a rookie problem trying to upgrade spryker-feature/product-labels from 202001.0 to 202009.0. After upgrading,
    console propel:model:build
    will run into the exception:
    Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\Exception\InvalidConfigurationException - Exception: SpyProductLabelDictionaryStorage uses mutually exclusive "store" and "queue_pool" synchronization attributes.
    Here's the section build log:
    Copy code
    Section build                                                                                                          
                                                                                                                            
    
    Command generate-transfers [vendor/bin/console transfer:generate] (7.72s)
    Command twig-cache-warmup [vendor/bin/console twig:cache:warmer] (5.79s)
    Command navigation-cache-warmup [vendor/bin/console navigation:build-cache] (5.62s)
    Command rest-request-validation-cache-warmup [vendor/bin/console glue:rest:build-request-validation-cache] (5.54s)
    Command propel-copy-schema [vendor/bin/console propel:schema:copy] (5.75s)
    Command propel-build [vendor/bin/console propel:model:build] (In progress...)
    Store: DE | Environment: docker
    Store: DE | Environment: docker
    Store: DE | Environment: docker
    Store: DE | Environment: docker
    Store: DE | Environment: docker
    Clean schema directory
    Copy and merge schema files
    Store: DE | Environment: docker
    Build Propel2 classes
    Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\Exception\InvalidConfigurationException - Exception: SpyProductLabelDictionaryStorage uses mutually exclusive "store" and "queue_pool" synchronization attributes. 
    in /data/vendor/spryker/synchronization-behavior/src/Spryker/Zed/SynchronizationBehavior/Persistence/Propel/Behavior/SynchronizationBehavior.php (501)
    
    Command: vendor/bin/console propel:model:build
    
    Trace: 
    #0 /data/vendor/spryker/synchronization-behavior/src/Spryker/Zed/SynchronizationBehavior/Persistence/Propel/Behavior/SynchronizationBehavior.php(129): Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\SynchronizationBehavior->addSendToQueueMethod()
    #1 /data/vendor/propel/propel/src/Propel/Generator/Builder/Om/AbstractOMBuilder.php(1023): Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\SynchronizationBehavior->objectMethods(Object(Spryker\Zed\PropelOrm\Business\Builder\ObjectBuilder))
    #2 /data/vendor/propel/propel/src/Propel/Generator/Builder/Om/AbstractObjectBuilder.php(207): Propel\Generator\Builder\Om\AbstractOMBuilder->applyBehaviorModifierBase('objectMethods', Object(Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\SynchronizationBehavior), '\n/**\n * Base cl...', '    ')
    #3 /data/vendor/propel/propel/src/Propel/Generator/Builder/Om/ObjectBuilder.php(379): Propel\Generator\Builder\Om\AbstractObjectBuilder->applyBehaviorModifier('objectMethods', '\n/**\n * Base cl...', '    ')
    #4 /data/vendor/propel/propel/src/Propel/Generator/Builder/Om/AbstractOMBuilder.php(72): Propel\Generator\Builder\Om\ObjectBuilder->addClassBody('\n/**\n * Base cl...')
    #5 /data/vendor/propel/propel/src/Propel/Generator/Manager/ModelManager.php(178): Propel\Generator\Builder\Om\AbstractOMBuilder->build()
    #6 /data/vendor/propel/propel/src/Propel/Generator/Manager/ModelManager.php(72): Propel\Generator\Manager\ModelManager->doBuild(Object(Spryker\Zed\PropelOrm\Business\Builder\ObjectBuilder))
    #7 /data/vendor/propel/propel/src/Propel/Generator/Command/ModelBuildCommand.php(145): Propel\Generator\Manager\ModelManager->build()
    #8 /data/vendor/spryker/propel-orm/src/Spryker/Zed/PropelOrm/Communication/Generator/Command/ModelBuildCommand.php(28): Propel\Generator\Command\ModelBuildCommand->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #9 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Command/Runner/PropelCommandRunner.php(64): Spryker\Zed\PropelOrm\Communication\Generator\Command\ModelBuildCommand->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #10 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Console/BuildModelConsole.php(47): Spryker\Zed\Propel\Communication\Command\Runner\PropelCommandRunner->runCommand(Object(Spryker\Zed\PropelOrm\Communication\Generator\Command\ModelBuildCommand), Object(Symfony\Component\Console\Input\InputDefinition), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #11 /data/vendor/symfony/console/Command/Command.php(255): Spryker\Zed\Propel\Communication\Console\BuildModelConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #12 /data/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #13 /data/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\Propel\Communication\Console\BuildModelConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #14 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(111): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #15 /data/vendor/symfony/console/Application.php(149): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #16 /data/vendor/spryker/console/bin/console(27): Symfony\Component\Console\Application->run()
    #17 {main}
    In CommandLineExecutable.php line 105:
                          
      Aborted install...
    I did work through https://documentation.spryker.com/docs/mg-product-label as far as I could (since the dev environment is not running, I couldn't run the database modifications) and my guess is that the problem in fact comes from my configuration, but I am at a loss figuring out what causes it. Comparing the generated
    SpyProductLabelDictionaryStorage
    to the b2b-demo-shop, I can say that at least the used method coming from the generator is the same. I'd appreciate any tips how to troubleshoot this issue. Thank you in advance!
    ✅ 1
    p
    • 2
    • 4
  • a

    adorable-piano-19015

    07/23/2021, 11:24 AM
    Hi all, I am facing a problem in the Intermediate Workshop Hands-on Publish & Synchronise. When I try to import data and to sync the with the AntelopeSearch table an SQL errror is thrown: Executed query: INSERT INTO pyz_antelope_search (id_antelope_search, fk_antelope, data, alias_keys, key, created_at, updated_at) VALUES (:p0, :p1, :p2, :p3, :p4, :p5, :p6) in "/data/src/Orm/Zed/AntelopeSearch/Persistence/Base/PyzAntelopeSearch.php::985" {"exception":"[object] (Propel\\Runtime\\Exception\\PropelException(code: 0): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key, created_at, updated_at) VALUES (NULL, 3, '[]', 'test', 'antelope:3', '20...' at line 1 For me it looks like it happens because of missing backticks for the "key" field, because it's reserved in MySQL/MariaDB. Does anyone know how to solve this?
    • 1
    • 1
  • n

    nutritious-angle-64267

    07/26/2021, 8:05 AM
    Hi all, getting this error while executing propel:install command Any thoughts on this ?
    w
    • 2
    • 1
  • a

    astonishing-lamp-41374

    07/26/2021, 6:54 PM
    Hey when you are loading in product image sets how does spryker handle alt tags?
    f
    • 2
    • 4
  • a

    adamant-oil-10501

    07/27/2021, 1:13 AM
    Hello..we are building some custom forms in Yves. I was wondering if there is way to add CAPTCHA functionality on the form?. pls advise..
    p
    • 2
    • 1
1...424344...102Latest