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

    silly-motherboard-93855

    02/04/2021, 9:25 AM
    Copy code
    > node ./node_modules/@spryker/oryx-for-zed/build
    ♈  @spryker/oryx 1.4.0
    ♈  @spryker/oryx-for-zed 2.7.0
    find
    ● looking for entry points...
    ✔ 80 found
    find
    ● resolving core modules deps...
    ✔ 0 found
    build
    ● using webpack 4.27.1
    ● building assets...
    ● webpack output:
    ERROR in ./vendor/spryker/gui/assets/Zed/sass/main.scss
    Module build failed (from ./node_modules/@spryker/oryx-for-zed/node_modules/mini-css-extract-plugin/dist/loader.js):
    ModuleBuildError: Module build failed (from ./node_modules/@spryker/oryx-for-zed/node_modules/sass-loader/lib/loader.js):
    @import '~bootstrap-sass/assets/stylesheets/bootstrap';
    ^
          File to import not found or unreadable: ~bootstrap-sass/assets/stylesheets/bootstrap.
          in vendor/spryker/gui/assets/Zed/sass/main.scss (line 8, column 1)
        at node_modules/@spryker/oryx-for-zed/node_modules/webpack/lib/NormalModule.js:301:20
        at node_modules/loader-runner/lib/LoaderRunner.js:367:11
        at node_modules/loader-runner/lib/LoaderRunner.js:233:18
        at context.callback (node_modules/loader-runner/lib/LoaderRunner.js:111:13)
        at Object.callback (node_modules/@spryker/oryx-for-zed/node_modules/sass-loader/lib/loader.js:67:13)
        at Object.done [as callback] (node_modules/neo-async/async.js:8069:18)
        at options.error (node_modules/node-sass/lib/index.js:294:32)
     @ ./vendor/spryker/gui/assets/Zed/js/modules/commons.js 49:0-31
     @ ./vendor/spryker/gui/assets/Zed/js/spryker-zed-gui-commons.entry.js
    does anyone has the idea what might have been missing ?
    • 1
    • 1
  • e

    eager-beach-43647

    02/04/2021, 10:23 AM
    Hello guys! My xdebug suddenly stopped working! I've already tried rebooting, reinstalling the project, purging the docker machines, using different browsers and IDEs. Does anyone have any idea on what I can try to resolve this? These are my debug configs:
    p
    a
    +3
    • 6
    • 18
  • w

    wonderful-pizza-81714

    02/04/2021, 1:27 PM
    Hi there, I've just set up demo, where I can find backend password? Looks like it's not in
    deploy.yml
    . Also, how can I get to Jenkins? Thank you.
    a
    w
    • 3
    • 3
  • w

    wide-wolf-99519

    02/04/2021, 2:27 PM
    Hi, I'm trying to update an order
    Copy code
    $order = new OrderTransfer();
    $order->setEmail('<mailto:steve.rogers@example.org|steve.rogers@example.org>');
    /** @var SalesFacadeInterface $salesFacade **/
    $salesFacade->updateOrder($order, $orderId);
    and I get
    Copy code
    Call to a member function getTaxTotal() on null
    because during this update OrderUpdater wants to create order totals
    Copy code
    protected function createOrderTotals(OrderTransfer $orderTransfer, SpySalesOrder $orderEntity)
        {
            $taxTotal = 0;
            if ($orderTransfer->getTotals()->getTaxTotal()) {
                $taxTotal = $orderTransfer->getTotals()->getTaxTotal()->getAmount();
            }
    ...
    am I doing something wrong or missing something?
    c
    m
    • 3
    • 15
  • a

    astonishing-lamp-41374

    02/04/2021, 10:25 PM
    wha is the shape of a response transfer object? is there an example in the codebase somewhere? an xml example?
    • 1
    • 1
  • n

    numerous-ghost-43588

    02/05/2021, 7:33 AM
    Hello, the frontend and backend urls for B2C demo shop application are not working any more, getting below errors, please help to fix it. ZED Exception Error - Class 'Whoops\Run' not found in /data/vendor/spryker/error-handler/src/Spryker/Zed/ErrorHandler/Communication/Plugin/Application/ErrorHandlerApplicationPlugin.php (48) *Url:*/ Trace:
    Copy code
    #0 /data/vendor/spryker/error-handler/src/Spryker/Zed/ErrorHandler/Communication/Plugin/Application/ErrorHandlerApplicationPlugin.php(37): Spryker\Zed\ErrorHandler\Communication\Plugin\Application\ErrorHandlerApplicationPlugin->registerPrettyErrorHandler()
    #1 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(81): Spryker\Zed\ErrorHandler\Communication\Plugin\Application\ErrorHandlerApplicationPlugin->provide(Object(Spryker\Shared\Kernel\Communication\Application))
    #2 /data/vendor/spryker/application/src/Spryker/Zed/Application/Communication/ZedBootstrap.php(109): Spryker\Shared\Application\Application->registerApplicationPlugin(Object(Spryker\Zed\ErrorHandler\Communication\Plugin\Application\ErrorHandlerApplicationPlugin))
    #3 /data/vendor/spryker/application/src/Spryker/Zed/Application/Communication/ZedBootstrap.php(119): Spryker\Zed\Application\Communication\ZedBootstrap->setupApplicationPlugins()
    #4 /data/vendor/spryker/application/src/Spryker/Zed/Application/Communication/ZedBootstrap.php(100): Spryker\Zed\Application\Communication\ZedBootstrap->setupApplication()
    #5 /data/vendor/spryker/application/src/Spryker/Zed/Application/Communication/ZedBootstrap.php(71): Spryker\Zed\Application\Communication\ZedBootstrap->setUp()
    #6 /data/public/Zed/index.php(21): Spryker\Zed\Application\Communication\ZedBootstrap->boot()
    #7 {main}
    YVES Exception Error - Class 'Whoops\Run' not found in /data/vendor/spryker/error-handler/src/Spryker/Yves/ErrorHandler/Plugin/Application/ErrorHandlerApplicationPlugin.php (48) *Url:*/ Trace:
    Copy code
    #0 /data/vendor/spryker/error-handler/src/Spryker/Yves/ErrorHandler/Plugin/Application/ErrorHandlerApplicationPlugin.php(37): Spryker\Yves\ErrorHandler\Plugin\Application\ErrorHandlerApplicationPlugin->registerPrettyErrorHandler()
    #1 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(81): Spryker\Yves\ErrorHandler\Plugin\Application\ErrorHandlerApplicationPlugin->provide(Object(Spryker\Yves\Kernel\Application))
    #2 /data/vendor/spryker-shop/shop-application/src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php(95): Spryker\Shared\Application\Application->registerApplicationPlugin(Object(Spryker\Yves\ErrorHandler\Plugin\Application\ErrorHandlerApplicationPlugin))
    #3 /data/vendor/spryker-shop/shop-application/src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php(60): SprykerShop\Yves\ShopApplication\YvesBootstrap->setupApplication()
    #4 /data/public/Yves/index.php(21): SprykerShop\Yves\ShopApplication\YvesBootstrap->boot()
    #5 {main}
    h
    m
    • 3
    • 22
  • f

    full-rocket-52349

    02/05/2021, 10:28 AM
    Hello guys, we would like to use filters of the type 'range' for some attributes. It works so far, only we noticed that the empty 'range filters' are always displayed in the Yves frontend. Unused 'single-select' and 'multi-select' filters are hidden in the product list, but the 'range' filters are not. Has anyone seen this and how do I fix it quickly?
    m
    • 2
    • 3
  • h

    hallowed-coat-68810

    02/05/2021, 12:40 PM
    Hello everyone, What is the best/recommended solution to handle the translations for Zed/Backoffice (Spryker B2B)? I am right now using the following solution in my custom module. Is this right way? or any others?
    Copy code
    $config[TranslatorConstants::TRANSLATION_ZED_FILE_PATH_PATTERNS] = [
    	APPLICATION_ROOT_DIR . '/vendor/test/payment/data/translation/Zed/[a-z][a-z]_[A-Z][A-Z].csv',
    ];
    Anyone, please share your valuable feedback here. Thanks in advance.
    m
    • 2
    • 2
  • h

    hallowed-coat-68810

    02/05/2021, 3:33 PM
    And besides this, we wanted to know how to call a business model from Facade (for Zed), is there any resource where I can refer to?
    q
    m
    • 3
    • 14
  • s

    silly-motherboard-93855

    02/09/2021, 10:05 AM
    Copy code
    $blockNames = ['Test Block Name'];
    $rendererPlugin = new CmsBlockContentWidgetPlugin(new CmsContentWidgetCmsBlockConnectorConfigurationProvider());
    $renderedContent = $rendererPlugin->contentWidgetFunction($this->getTwig(),['cmsContent' => []],$blockNames);
    Can anyone help me understand what is missing here to reuse the
    cms_block
    widget renderer?
  • w

    wonderful-pizza-81714

    02/09/2021, 1:44 PM
    Hi, I've set up demo and found Spryker runs cron in a very funny way: jenkins run every minute to run
    spryker.sh
    which only task is to run
    curl <http://cli:9000/console>
    just to run
    cli.sh
    as far as I understand just to run
    queue:worker:start
    . What's the reason for such cumbersome approach?
    h
    • 2
    • 2
  • w

    wonderful-pizza-81714

    02/09/2021, 2:00 PM
    Having demo, in dashboard logs in
    mailcatcher
    I see a lot of records like this:
    Copy code
    [services] [mailcatcher] - 2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] Starting session 2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] [PROTO: INVALID] Started session, switching to ESTABLISH state 
    2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] Sent 35 bytes: '220 mailhog.example ESMTP MailHog\r\n' 
    2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] Connection closed by remote host 
    2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] Session ended
    But there're no messages in
    mail.spryker.local
    (inbox: 0) Is it supposed to be so? Is
    INVALID
    in the quote above ok?
  • m

    mysterious-pencil-76046

    02/11/2021, 9:16 AM
    Hey! Does anybody know, how to define if a cronjob should run on a certain environment? I see there was a possibility to set
    run_on_non_production
    in cronjob definitions. But this does not work anymore with scheduler module shipped by spryker.
    vendor/spryker/setup/src/Spryker/Zed/Setup/Business/Model/Cronjobs.php
    is marked to be deprecated meanwhile and is still not used anymore. Of course, i could check APPLICATION_ENV in
    config/Zed/cronjobs/jenkins.php
    and set
    enable
    accordingly. Should this be the "right" way?
    a
    w
    l
    • 4
    • 8
  • g

    gentle-journalist-88390

    02/12/2021, 11:28 AM
    Hey, we have checkout version 2.2.0 on a B2B and recently we experienced for one customer who just place the order normally and some how it’s order is duplicated sometime for 4 times or even more than that. That’s happening only for a particular customer and there is no unusual stuff noticed by customer. We have JavaScript block on summary page to have multiple submits. We want to know is there any backend known issue or fix for such a behaviour?
    a
    s
    m
    • 4
    • 25
  • w

    wide-wolf-99519

    02/12/2021, 11:47 AM
    could someone enlighten me what could the array returned by
    Spryker\Zed\Oms\Dependency\Plugin\Command\CommandByOOrder
    contain? Docs and docblock seem to omit that piece of information https://documentation.spryker.com/docs/t-oms-and-state-machines-spryker-commerce-os
    l
    • 2
    • 14
  • m

    mammoth-painting-63509

    02/12/2021, 2:26 PM
    Is it possible to draw a subprocess (statemachine) somehow? I'm able to draw the main process with http://spryker.local/oms/index/draw?process=bigprocess&amp;format=svg&amp;font=14&amp;state= But when trying to draw the subprocess
    subprocess
    it fails: http://spryker.local/oms/index/draw?process=subprocess&amp;format=svg&amp;font=14&amp;state=
    Copy code
    Call to a member function draw() on null
    a
    • 2
    • 5
  • w

    wide-wolf-99519

    02/15/2021, 9:51 AM
    in spryker/category there was getNodeById (depracated) facade method, and since it seems to be gone in category 5.0, is there any replacement method or do I have to reimplement it by myself?
    m
    a
    +2
    • 5
    • 8
  • b

    brief-vegetable-71114

    02/15/2021, 4:08 PM
    Hey guys i would like to know something, its regarding a single user having multiple companies associated to him, i would like to know if spryker has standard modules or ways of handling this, of a single user having multiple companies and other cases like for example: • One user having multiple business units per company; • User having access to some business units of the comapny and not all... • User having different roles or rights for the different companies that he/she is associated... • User having different features activated for the different companies... etc...
    s
    • 2
    • 1
  • b

    brash-lifeguard-38692

    02/16/2021, 3:51 PM
    Hi guys! How can I run
    testcafe
    locally?
  • b

    blue-engine-990

    02/16/2021, 4:27 PM
    Hi guys, I've been trying to install the b2c-demo-shop. For the most parts I've been following the installation guide (without devvm). But I got this error message after the whole setup process and I'm stuck on it. Anyone experienced the same error/behaviour and could help me out? I'm guessing it has something to do with redis (only 8 keys are placed and devvm has ~10k keys in comparison)
    f
    l
    a
    • 4
    • 9
  • m

    mammoth-painting-63509

    02/17/2021, 3:43 PM
    Hi there, is it possible to use a fixed value in the Mapper?
    q
    • 2
    • 12
  • r

    rapid-night-92661

    02/17/2021, 4:32 PM
    Hi! We are currently updating spryker features from release version 202001 to version 202009. We use this approach to do the update, because we have quite a lot of changes in the Pyz namespace https://sprykercommunity.slack.com/archives/CKJRJM5FG/p1601987134066100?thread_ts=1601901286.060500&amp;cid=CKJRJM5FG We also use our own composer libraries for our new features and use plugins when possible in spryker functionality to use them instead of inheritance (for easier feature update in the future), but anyway every new version of spryker changes the b2c skeleton heavily and is not 100% backward compatible. In last b2c release version there are 1,013 changed files: https://github.com/spryker-shop/b2c-demo-shop/commit/f63c94542991bf4cc812919c2452a3aefd895062 QUESTION: Do you have any ready to use tool/solution to compare the changed files in Pyz namespace for some module, between our shop state and last b2c version, let’s say in form of some user friendly report? Currently we manually check the differences for every updated module in b2c skeleton for Yves, Shared, Service, Client, Zed, Glue namespaces. And then carefully apply the changes to our shop, but it’s take a lot of time. I know we can use some git diff tools or files comparison tools, and configure them somehow to do it. But in this case if you changed in new b2c only spaces/formatting or annotations for hundreds of files, let’s say in php, these files will be also marked as modified, but maybe it’s not something what we really need to update.
    m
    l
    • 3
    • 9
  • p

    polite-lunch-97479

    02/18/2021, 6:53 AM
    Trying to use a filesystem to connect via SFTP over port 22. Seems that it will always try to connect to port 21, regardless of the
    ssl
    option. What's the recommended way to make the filesystem use port 22?
  • p

    polite-lunch-97479

    02/18/2021, 7:15 AM
    Okay, there is a port option in filesystem config. Set it to 22 and still no success. After a minute or two I'm getting:
    Could not connect to host: <http://foo.host.com|foo.host.com>, port:22
    Does the filesystem support SFTP at all? Or is it always FTPS?
    w
    q
    • 3
    • 5
  • m

    mammoth-painting-63509

    02/18/2021, 12:42 PM
    Hi guys, I need to export orders via a Middleware as a CSV. We need one file per order and one line per orderitem. I need something like this in the end:
    Copy code
    order_nr,position,article_numer
    123,1,article1
    123,2,article2
    123,3,article3
    What's the best way to solve this?
    q
    • 2
    • 21
  • a

    astonishing-lamp-41374

    02/19/2021, 3:09 AM
    Thinking through some of the ways to approach changes in the code base I need to create a relation ( which sounds like an abstraction of a foreign key mapping ) between concrete products (coming in from an XML file through middleware) and abstract products. my mapper has a ProductConcreteHydratorStep
    Copy code
    public function getMap(): array
        {
            return [
                static::ROOT_PRODUCT_CONCRETE_KEY => [
                    'item',
                    'itemMap' => [
                        ProductConcreteHydratorStep::COLUMN_CONCRETE_SKU => '@sku', // here
                        ...
                ],
            ];
        }
    Which in turn has an execute function
    Copy code
    public function execute(DataSetInterface $dataSet): void
        {
            $this->importProduct($dataSet);
    ...
        }
    Which in turn has this import product function
    Copy code
    protected function importProduct(DataSetInterface $dataSet): void
        {
            $productEntityTransfer = new SpyProductEntityTransfer();
            $productEntityTransfer->setSku($dataSet[static::COLUMN_CONCRETE_SKU]);
            $productEntityTransfer->setFkProductAbstract($dataSet[static::COLUMN_ABSTRACT_SKU]); // I added this...
            $productEntityTransfer
                ->setIsActive($dataSet[static::KEY_IS_ACTIVE] ?? true)
                ->setAttributes(json_encode($dataSet[static::KEY_ATTRIBUTES]));
    ...
    
    
            $dataSet[static::DATA_PRODUCT_CONCRETE_TRANSFER] = $productEntityTransfer;
        }
    I added this setFKProductAbstract, but I'm guessing there is more here... I was originally thinking I would need to create another function... say
    addProductAbstractRelation
    and within that function create a Relation Spy that could transfer data to the concrete product... question is which of these methods is closer to what I actually need to do? Let me know if anyone has an insight there or if you need more information. Cheers
  • p

    polite-lunch-97479

    02/19/2021, 10:43 AM
    Could somebody please explain the value in field spy_sales_order_item.price_to_pay_aggregation? Is it just net price + tax per single quantity? Or will it be the sum of all quantities?
    w
    d
    • 3
    • 9
  • p

    polite-lunch-97479

    02/19/2021, 12:34 PM
    Is there a known issue that the measurement unit fields in spy_sales_order_item aren't populated? Debugged a little, item transfers inside quote transfer do have it, but it doesn't arrive in the db when the order is finally saved. Any ideas?
    w
    • 2
    • 2
  • a

    ambitious-alligator-61938

    02/19/2021, 4:09 PM
    Hi guys, I'm trying to add synonyms to elasticsearch and for that Im modyfing existing : 
    Pyz/Shared/Search/Schema/page.json
      When I try to run command:
    Copy code
    console search:setup:sources
     i get following error
    Copy code
    Exception: analyzer [synonym_analyzer] not found for field [full-synonym]
    page.json file looks as follows:
    Copy code
    {
      "settings": {
        "analysis": {
          "analyzer": {
            "fulltext_index_analyzer": {
              "tokenizer": "standard",
              "filter": [
                "lowercase",
                "fulltext_index_ngram_filter"
              ]
            },
            "fulltext_search_analyzer": {
              "tokenizer": "standard",
              "filter": [
                "lowercase"
              ]
            },
            "synonym_analyzer": {
              "tokenizer": "standard",
              "filter": [
                "synonym"
              ]
            }
          },
          "filter": {
            "fulltext_index_ngram_filter": {
              "type": "edge_ngram",
              "min_gram": 2,
              "max_gram": 20
            },
            "synonym": {
              "type": "synonym",
              "synonyms": [
                "sahne, schlagsahne",
                "sahne, h-schlagsahne",
                "sahne, schlagrahm",
                "apfel, äpfel",
                "küchenrolle, küchenrollen",
                "küchenrolle, haushaltstücher"
              ]
            }
          }
        }
      },
      "mappings": {
        "page": {
          "properties": {
            "full-text": {
              "analyzer": "fulltext_index_analyzer",
              "search_analyzer": "fulltext_search_analyzer"
            },
            "full-text-boosted": {
              "analyzer": "fulltext_index_analyzer",
              "search_analyzer": "fulltext_search_analyzer"
            },
            "full-synonym": {
              "type": "text",
              "analyzer": "synonym_analyzer",
              "search_analyzer": "fulltext_search_analyzer"
            }
          }
        }
      }
    }
    Also do I need to create new plugin for synonyms and expand search query?
  • a

    ancient-apartment-59274

    02/22/2021, 11:26 AM
    Hello again 🙂, in spryker i noticed several times, that instead of giving null or an exception, the implementation gives back an empty transfer object anyway. For example the method
    getCustomerOrderByOrderReference()
    in
    SalesFacadeInterface
    will always return an
    OrderTransfer
    even it is has not found a corresponding entity in the database… does this have a deeper meaning? Is the transfer object also responsible for representing the abscent of the data by just omitting the data? I ask because i never found a counter example that returns null instead. For me its a bit misleading when asking a client or what else for data that can be abscent in fact but the corresponding method will in any case return a transfer object but it is empty. The clients “client” has to look now if the data in it is empty instead of just checking that the return value was null … i could imagine that some developer is not aware of that. Is there a spryker convention on that that we can/should follow? Best regards
    l
    • 2
    • 6
1...323334...102Latest