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

    refined-thailand-15163

    02/08/2023, 6:54 AM
    Hi Team, While creating a new entity & triggering the ORM, New table is created only for default store DE database, how can we make sure, table is created for all the databases available ?
  • f

    fancy-garage-20650

    02/08/2023, 9:26 AM
    #help Hi I need hep with one specific problem. I wan't to separate one product with the same SKU on two in overview step. So that one product has full price and one is for free. I need this functionality because this is how I get this product from a virtual till external integration. Which get all the products in the cart and if the product has a promotion than he return response with separating the same product on full value and one for free.
  • r

    rough-finland-88303

    02/08/2023, 10:32 AM
    Hi Can any please guide and help on these error get solve Thank you PHP Fatal error: Declaration of Orm\Zed\Acl\Persistence\Map\SpyAclGroupArchiveTableMap::initialize() must be compatible with Propel\Runtime\Map\TableMap::initialize(): void in /data/src/Orm/Zed/Acl/Persistence/Map/SpyAclGroupArchiveTableMap.php on line 185 ErrorException - Exception: FATAL ERROR - Declaration of Orm\Zed\Acl\Persistence\Map\SpyAclGroupArchiveTableMap::initialize() must be compatible with Propel\Runtime\Map\TableMap::initialize(): void in /data/src/Orm/Zed/Acl/Persistence/Map/SpyAclGroupArchiveTableMap.php (185)
    f
    e
    • 3
    • 10
  • e

    early-army-90039

    02/08/2023, 10:54 AM
    HI team Please let me know how can i get what exception is there within transaction code. I am getting this error: { "Cannot commit because a nested transaction was rolled back" } But why transaction is rolled back how can we know? I am using
    TransactionTrait
    and using this function for transaction
    $this->getTransactionHandler()->handleTransaction
  • l

    late-tiger-76201

    02/08/2023, 3:24 PM
    Hi there, is there a concept in spryker how to “reuse” code within several modules? Maybe a link to a documentation.
    f
    • 2
    • 3
  • r

    rough-finland-88303

    02/08/2023, 8:41 PM
    Hi While importing data using command data:import shows the error like Exception: Call to undefined method Pyz\Zed\DataImport\Business\DataImportBusinessFactory::getStore() in /data/src/Pyz/Zed/DataImport/Business/DataImportBusinessFactory.php (1143) Can anyone please guide and help to get the cause and respective fixes Thank you
    e
    • 2
    • 3
  • m

    millions-river-67963

    02/08/2023, 8:43 PM
    Hello Team, Could someone explain why some Glue modules don't have Controllers? I was under the impression that each module needed some sort of entry point and that was the purpose of Controllers. Is there another way for modules to be utilized?
    w
    • 2
    • 3
  • s

    salmon-river-59357

    02/09/2023, 2:52 PM
    Hi all, i’m looking for an idea how to set different AccessTokenTTL time for different oauth clients. Example, there are three clients: „fronted“ - default already installed and two custom clients "client1", "client2". For frontend client should remain set 8h, for "client1" - 24h and "client2" - 600 sec. Has anyone already done something like this? Or maybe has an idea how to implement this? Thanks, Anton
  • a

    aloof-doctor-18410

    02/09/2023, 4:27 PM
    set the channel description: Before posting, make sure you have completed the Spryker backend Development Fundamentals course (https://academy.spryker.com/learn/public/learning_plan/view/73/spryker-backend-development-fundamentals)
    👍 3
    👌🏼 1
    👍🏼 1
  • m

    most-plumber-5947

    02/10/2023, 6:43 AM
    Hi Team, #help, I'm trying to implement a dynamic label similar to sale or new, if the product has isDigital attribute then we will show that label on the frontend. For that I'm referring to ContentProductWidget, is that correct. And can you please suggest how I can do that.
    f
    • 2
    • 2
  • b

    bland-yacht-60252

    02/13/2023, 9:15 AM
    Hello guys, may I ask you, where I can add the dimension of one product? Width, Length, Height and weight
    c
    w
    • 3
    • 6
  • b

    billions-scooter-18241

    02/13/2023, 10:56 AM
    Getting below error which trying to generate the access token for the b2c-demo-shop which is setup via docker using deploy.dev.yml. Can someone please help me on this issue.
    curl -H 'accept-language: de' -H 'accept: application/json' -H 'content-type: application/json' -H 'user-agent: OpenAPI-Generator/1.0.0/xxxxx --compressed -X POST <https://url/access-tokens> -d '{"data":{"attributes":{"password":"xxxxxxx","username":"xxxxxx"},"type":"access-tokens"}}'
    Copy code
    Spryker\Glue\RestRequestValidator\Processor\Exception\CacheFileNotFoundException - Exception: Validation cache is enabled, but cache file is not found. 
    in /data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/Configuration/RestRequestValidatorConfigReader.php (78)
    
    Request URI: /access-tokens
    
    Trace: 
    #0 /data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/Constraint/RestRequestValidatorConstraintResolver.php(88): Spryker\Glue\RestRequestValidator\Processor\Validator\Configuration\RestRequestValidatorConfigReader->findValideader->findValidationConfiguration(Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))
    #1 /data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/Constraint/RestRequestValidatorConstraintResolver.php(68): Spryker\Glue\RestRequestValidator\Processor\Validator\Constraint\RestRequestValidatorConstraintResolver->getConResolver->getConstraintFromConfig(Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))
    #2 /data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Processor/Validator/RestRequestValidator.php(77): Spryker\Glue\RestRequestValidator\Processor\Validator\Constraint\RestRequestValidatorConstraintResolver->getConstraintCollection(Object(Sprytion(Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))
    #3 /data/vendor/spryker/rest-request-validator/src/Spryker/Glue/RestRequestValidator/Plugin/ValidateRestRequestAttributesPlugin.php(36): Spryker\Glue\RestRequestValidator\Processor\Validator\RestRequestValidator->validate(Object(Symfony\Component\HttpFoundation\Request), Objon\Request), Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))
    #4 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/Request/RestRequestValidator.php(170): Spryker\Glue\RestRequestValidator\Plugin\ValidateRestRequestAttributesPlugin->validate(Object(Symfony\Component\HttpFoundation\Request), Object(Spryker\Glue\ct(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))
    #5 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/Request/RestRequestValidator.php(72): Spryker\Glue\GlueApplication\Rest\Request\RestRequestValidator->executeRestRequestValidatorPlugins(Object(Symfony\Component\HttpFoundation\Request), Object(Spuest), Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))
    #6 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/ControllerFilter.php(287): Spryker\Glue\GlueApplication\Rest\Request\RestRequestValidator->validate(Object(Symfony\Component\HttpFoundation\Request), Object(Spryker\Glue\GlueApplication\Rest\Requeation\Rest\Request\Data\RestRequest))
    #7 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Rest/ControllerFilter.php(157): Spryker\Glue\GlueApplication\Rest\ControllerFilter->validateRequest(Object(Spryker\Glue\AuthRestApi\Controller\AccessTokensResourceController), Object(Symfony\Component\mfony\Component\HttpFoundation\Request), Object(Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequest))
    #8 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Plugin/EventDispatcher/GlueRestControllerListenerEventDispatcherPlugin.php(71): Spryker\Glue\GlueApplication\Rest\ControllerFilter->filter(Object(Spryker\Glue\AuthRestApi\Controller\AccessTokensResourcessTokensResourceController), 'postAction', Object(Symfony\Component\HttpFoundation\Request))
    #9 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Plugin/EventDispatcher/GlueRestControllerListenerEventDispatcherPlugin.php(56): Spryker\Glue\GlueApplication\Plugin\EventDispatcher\GlueRestControllerListenerEventDispatcherPlugin->filter(Object(Sprykeer(Object(Spryker\Glue\AuthRestApi\Controller\AccessTokensResourceController), 'postAction', Object(Symfony\Component\HttpFoundation\Request))
    #10 /data/vendor/symfony/http-kernel/HttpKernel.php(163): Spryker\Glue\GlueApplication\Plugin\EventDispatcher\GlueRestControllerListenerEventDispatcherPlugin->Spryker\Glue\GlueApplication\Plugin\EventDispatcher\{closure}()
    #11 /data/vendor/symfony/http-kernel/HttpKernel.php(75): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
    #12 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(138): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
    #13 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(116): Spryker\Shared\Application\Application->handle(Object(Symfony\Component\HttpFoundation\Request))
    #14 /data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/ApiApplication/ApiApplicationProxy.php(107): Spryker\Shared\Application\Application->run()
    #15 /data/public/Glue/index.php(20): Spryker\Glue\GlueApplication\ApiApplication\ApiApplicationProxy->run()
    #16 {main}<br />
    <b>Fatal error</b>:  Uncaught ValueError: Path cannot be empty in [no active file]:0
    Stack trace:
    #0 {main}
      thrown in <b>[no active file]</b> on line <b>0</b><br />
    w
    • 2
    • 8
  • e

    elegant-agent-58713

    02/13/2023, 2:05 PM
    Is there any way to do a discount (voucher) on products that dont belong to specific categories?
    w
    • 2
    • 4
  • h

    hallowed-dentist-19902

    02/13/2023, 3:16 PM
    Is there a command to generate a Zed test suite for Codeception? e.g.
    php vendor/bin/codecept generate:cest Acceptance MyModule
    but only with Zed?
  • b

    bitter-rose-95959

    02/13/2023, 9:14 PM
    @bitter-rose-95959 has left the channel
  • b

    boundless-refrigerator-22722

    02/14/2023, 9:34 AM
    Hello, I’m currently doing the Spryker frontend course for backend devs, while trying to create a new theme I ran into some issues. As specified in the course, I copied the whole content of the default folder into the newly manually created folder named green. I also have added the green theme to config/Yves/frontend-build-config.json
    Copy code
    {
      "path": "assets/%SPRYKER_BUILD_HASH%/%theme%",
      "staticPath": "assets/static",
      "namespaces": [
        {
          "codeBucket": "",
          "namespace": "",
          "themes": [
            "green"
          ],
          "defaultTheme": "default"
        }
      ]
    }
    I then used the command docker/sdk cli npm run yves:watch -t green and got the response:
    Copy code
    docker/sdk cli npm run yves:watch -t green
    
    > spryker-b2c-demo-shop@ yves:watch /data
    > run-p "yves:watch:* -- {@}" -- "green"
    
    
    > spryker-b2c-demo-shop@ yves:watch:esm /data
    > node ./frontend/build development-watch -m module:esm "green"
    
    
    > spryker-b2c-demo-shop@ yves:watch:legacy /data
    > node ./frontend/build development-watch -m module:legacy "green"
    
    /data/frontend/libs/command-line-parser.js:76
      throw new Error(`Command "${args[index]}" is not available`);
      ^
    
    Error: Command "green" is not available
      at isCommand (/data/frontend/libs/command-line-parser.js:76:11)
      at /data/frontend/libs/command-line-parser.js:118:21
      at Array.forEach (<anonymous>)
      at Command.<anonymous> (/data/frontend/libs/command-line-parser.js:110:18)
      at Command.listener (/data/node_modules/commander/index.js:360:8)
      at Command.emit (events.js:314:20)
      at Command.parseArgs (/data/node_modules/commander/index.js:801:12)
      at Command.parse (/data/node_modules/commander/index.js:563:21)
      at parseCommandLine (/data/frontend/libs/command-line-parser.js:125:10)
      at getAttributes (/data/frontend/libs/command-line-parser.js:148:35)
    /data/frontend/libs/command-line-parser.js:76
      throw new Error(`Command "${args[index]}" is not available`);
      ^
    
    Error: Command "green" is not available
      at isCommand (/data/frontend/libs/command-line-parser.js:76:11)
      at /data/frontend/libs/command-line-parser.js:118:21
      at Array.forEach (<anonymous>)
      at Command.<anonymous> (/data/frontend/libs/command-line-parser.js:110:18)
      at Command.listener (/data/node_modules/commander/index.js:360:8)
      at Command.emit (events.js:314:20)
      at Command.parseArgs (/data/node_modules/commander/index.js:801:12)
      at Command.parse (/data/node_modules/commander/index.js:563:21)
      at parseCommandLine (/data/frontend/libs/command-line-parser.js:125:10)
      at getAttributes (/data/frontend/libs/command-line-parser.js:148:35)
    npm ERR! code ELIFECYCLE
    npmnpm ERR! errno 1
    ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! spryker-b2c-demo-shop@ yves:watch:legacy: `node ./frontend/build development-watch -m module:legacy "green"`
    npm ERR! Exit status 1
    npm ERR! 
    npmnpm ERR!ERR! Failed at the spryker-b2c-demo-shop@ yves:watch:legacy script.
    npm spryker-b2c-demo-shop@ yves:watch:esm: `node ./frontend/build development-watch -m module:esm "green"`
     ERR!npm This is probably not a problem with npm. There is likely additional logging output above.
    ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the spryker-b2c-demo-shop@ yves:watch:esm script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!   /home/spryker/.npm/_logs/2023-02-14T09_02_23_532Z-debug.log
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!   /home/spryker/.npm/_logs/2023-02-14T09_02_23_533Z-debug.log
    ERROR: "yves:watch:legacy -- green" exited with 1.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! spryker-b2c-demo-shop@ yves:watch: `run-p "yves:watch:* -- {@}" -- "green"`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the spryker-b2c-demo-shop@ yves:watch script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!   /home/spryker/.npm/_logs/2023-02-14T09_02_23_565Z-debug.log
    The course: https://academy.spryker.com/learn/course/381/play/3010/spryker-frontend-for-backend-developers Thanks in Advance.
    i
    • 2
    • 7
  • b

    billions-scooter-18241

    02/14/2023, 10:32 AM
    Can we apply the custom SSL certificate for the demo spryker setup for the custom URLs? Is there any location were i can paste the certificate and the private key. Note: Setup is done via docker using deploy.dev.yml (edited)
    e
    • 2
    • 3
  • l

    late-tiger-76201

    02/14/2023, 1:05 PM
    Hello, since I’ve update my macOs to 13.2 ventura my “docker/sdk up” has the problem to clone git repositories. Does anybody have a solution or recommandation for help? Error:
    #10 16.10 Host key verification failed.
    #10 16.10 fatal: Could not read from remote repository Access to repositories is locally via terminal possible. SSH key is provided and added via ssh-agent.
  • n

    nutritious-daybreak-34090

    02/15/2023, 2:25 AM
    Hi everyone, anyone knows how to activate the multiple payments for a checkout? I'm sending two payments in the checkout "payments": [ { "paymentMethodName": "efectivo", "paymentProviderName": "Dupplo Payment", "paymentSelection": "efectivo" }, { "paymentMethodName": "tarjeta", "paymentProviderName": "Dupplo Payment", "paymentSelection": "tarjeta" } ], But I'm getting this error: { "errors": [ { "status": 400, "code": "1107", "detail": "Multiple payments are not allowed." } ] } Any help will be appreciated, thanks
    i
    • 2
    • 20
  • f

    few-address-803

    02/15/2023, 4:29 AM
    Hi everyone, am facing issue when add Sub Categories grid template in backoffice for create new categories the following error is occurred please help me #help
  • a

    ancient-apartment-59274

    02/15/2023, 12:26 PM
    Hello everyone, what do you think is a the preferable way to provide hydration logic to other modules? For example there is a new project level module with a new table which is connected to the spy_customer table … in the new modules repository findXyzById method the entity of the new table should be returned, but also the mapped(!) connected customer … since the customer data itself is already mapped in the customer module, it would not make much sense to duplicate this mapping logic, instead using the existing logic from the customer module would be preferable. But calling a customer modules facade method from the repository of the new module seems to be a bit odd to me … I see, many spryker modules just doing mapping logic again in the corresponding modules … but what do you think? Do you have other approaches? Maybe i also miss something 😉 Best regards
    g
    • 2
    • 3
  • e

    echoing-action-91797

    02/15/2023, 1:52 PM
    I was wondering, why there is no basic
    CSRF token
    protection for the search form? 🔍 👀 Doesn’t that make sense? Or was it forgotten?
    At least, I don’t see it in the demo-shop: https://www.de.b2c.demo-spryker.com/
    solved 1
    b
    • 2
    • 1
  • s

    stale-battery-68732

    02/15/2023, 5:48 PM
    Hi everyone, I'm getting the below error in the build after installing "spryker-feature/product-lists:"202204.0" using composer. please help
    p
    f
    • 3
    • 6
  • h

    hallowed-dentist-19902

    02/16/2023, 9:38 AM
    I am still unable to generate new codeception tests, using
    Copy code
    php vendor/bin/codecept generate:cest acceptance MyModule
    l
    • 2
    • 10
  • h

    hallowed-dentist-19902

    02/17/2023, 9:53 AM
    I've noticed that the folder structure inside PyzTest is split into Zed / Yves etc. Do the developers at Spryker when developing a module use a generate command like Codeception has, or do they write out the files here manually?
  • h

    hallowed-dentist-19902

    02/17/2023, 9:53 AM
    Because when I generate something it ends up outside of the Zed\Yves directories.
  • h

    hallowed-dentist-19902

    02/17/2023, 9:53 AM
    I know what the commands are and how to use them I just find there's more going on than what I know
  • m

    mysterious-ambulance-11183

    02/17/2023, 10:19 AM
    Hey guys, do you know how to enlarge the usable memory for a single data import console command?
    docker/sdk console data:import:my-stuff
    I get the following error processing a quite large dataset: PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted
    ✅ 1
    f
    w
    • 3
    • 6
  • s

    steep-rocket-65099

    02/17/2023, 10:23 AM
    Hi all! I have a question about prioritizing messages inside of the queues. In the given queue, I would like to have a message that has a higher priority than other messages in the same queue and by that meaning, it would be executed first. I have added the priority levels to the queue by adding and argument x-max-priority to the RabbitMqOptionTransfer.php. Result is that I see this argument in the details of the queue. Next step is to assign the priority to the generated message. I have tried by adding priority property to the header attribute of QueueSendMessageTransfer.php. But it's not working. Did anyone has an idea what is wrong with this approach? Thanks.
  • a

    astonishing-pencil-74826

    02/18/2023, 1:21 PM
    hey, can anyone help me with this issue
    w
    • 2
    • 1
1...808182...102Latest