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

    square-furniture-78894

    11/16/2022, 1:23 PM
    Hello, when trying to install b2b-demo-marketplace, I get the following error:
    Copy code
    Command yves-build-frontend [vendor/bin/console frontend:yves:build] (In progress...)
    Store: DE | Environment: docker.dev
    Install Merchant Portal dependencies
    Output trimmed, only last 100 lines shown.
    Store: DE | Environment: docker.dev
    Install Zed dependencies
    Store: DE | Environment: docker.dev
    Build Yves frontend
    
    > spryker-b2b-demo-shop@1.0.0 yves /data
    > run-s "yves:development:* -- {@}" --
    
    sh: run-s: not found
    npm ERR! code ELIFECYCLE
    npm ERR! syscall spawn
    npm ERR! file sh
    npm ERR! errno ENOENT
    npm ERR! spryker-b2b-demo-shop@1.0.0 yves: `run-s "yves:development:* -- {@}" --`
    npm ERR! spawn ENOENT
    npm ERR!
    npm ERR! Failed at the spryker-b2b-demo-shop@1.0.0 yves script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm WARN Local package.json exists, but node_modules missing, did you mean to install?
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/spryker/.npm/_logs/2022-11-16T13_16_47_365Z-debug.log
    
    In CommandLineExecutable.php line 107:
    
      Aborted install...
    m
    i
    • 3
    • 7
  • c

    calm-toddler-60539

    11/16/2022, 1:29 PM
    Hello all, I am trying to use Spryk commands to create modules but it doesn't work. I tried
    docker/sdk console spryk:run  --module=TestModule
    .. Can you please tell me if this is the right command?
    p
    • 2
    • 1
  • c

    calm-toddler-60539

    11/17/2022, 1:25 PM
    Hello all, I have created a GatewayController inside my Zed module but it seems like it is not getting resolved. I keep getting this error. Can someone please help?
    Copy code
    - No route found for "POST
            <http://backend-gateway.de.spryker.local/addax-pickup-points/gateway/add-pickup-point-to-queue>"
    e
    • 2
    • 2
  • c

    calm-toddler-60539

    11/17/2022, 1:43 PM
    Hello all, I have added a POST route to my Glue resource (check the code below)
    Copy code
    public function configure(ResourceRouteCollectionInterface $resourceRouteCollection)
        : ResourceRouteCollectionInterface {
    
            // to get all pickup points
            $resourceRouteCollection->addGet('get', true);
    
            // to add a pickup point
            $resourceRouteCollection->addPost('post', true);
    
            //
    
            return $resourceRouteCollection;
        }
    I send the following POST request to the endpoint using the PHPStorm Scratch file:
    Copy code
    ###
    POST <http://glue.de.spryker.local/addax-pickup-points/>
    Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJmcm9udGVuZCIsImp0aSI6ImZlYjI2OWZhMGI2OTBmMGM3ODY4ZTYzMGE0YzRjOGZhZWI5YjI1ZTNlZTdiY2NjYjcxZWU5YTEzNDYwYjU2NGY4MjliNGM4ZmYzZjRiYTc3IiwiaWF0IjoxNjY4NjgxMTc1LCJuYmYiOjE2Njg2ODExNzUsImV4cCI6MTY2ODcwOTk3NSwic3ViIjoie1wiaWRfYWdlbnRcIjpudWxsLFwiY3VzdG9tZXJfcmVmZXJlbmNlXCI6XCJERS0tMTZcIixcImlkX2N1c3RvbWVyXCI6MTZ9Iiwic2NvcGVzIjpbImN1c3RvbWVyIl19.3DSGl2f4Bs30ic6prumfYbN7iGweMeWyKs9XuObVCCnwxtkxPS2H4UNcZDr3_cLbNqtLW2PaU_N5raUjCI6bhjmiT0dAc2kkW6iFq_2MVsroQDALKe_odRb_ibAAgLIjGDXsAWFbaJ3lHk7qpDCNdqMwbvny0oQkVxc90aB6CPVqWXW_Yh4Gpl-zUJTD-NFM_XxDTSJax5Qtq80t7SZzEXKuPHVN7tOO8dGxUKMavgfU6vCZTqUrlRCskB7RG8ctCR3x6XLJzOuIEBWOUvDQsE_2DyiKTz9_ZzjRiDWqxOzlH6kIrT1Eph4-kSL0aOhGDWYBeFbc3z_kRENnZg6JkQ
    accept: application/json
    Content-Type: application/json
    
    {
        "data":
        {
            "idAddaxPickupPoint":"123",
            "shopName" : "Wolf Land",
            "address" : "Carl Zeiss Street 12",
            "city" : "Berlin",
            "country" : "Germany",
            "idNumber" : "123"
        }
    }
    But I get the following error:
    Copy code
    <http://glue.de.spryker.local/addax-pickup-points/>
    
    HTTP/1.1 400 Bad Request
    Server: nginx
    Date: Thu, 17 Nov 2022 13:41:04 GMT
    Content-Type: application/vnd.api+json
    Transfer-Encoding: chunked
    Connection: keep-alive
    Cache-Control: no-cache, private
    content-language: en_US
    X-Frame-Options: SAMEORIGIN
    Content-Security-Policy: frame-ancestors 'self'
    X-Content-Type-Options: nosniff
    X-XSS-Protection: 1; mode=block
    Referrer-Policy: same-origin
    Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
    
    {
      "errors": [
        {
          "detail": "Post data is invalid.",
          "status": 400
        }
      ]
    }
    Can someone please advise?
    w
    • 2
    • 2
  • c

    cool-beard-17954

    11/17/2022, 3:46 PM
    Hi everyone, I have to execute the commande "vendor/bin/console data:import" from Jenkins to import all the data from my .csv files. In the documentation it explained that it's possible but even when i follow the tutorial step by step it does'nt work and return "vendor/bin/console: not found" Someone have an idea to resolve this ?
    a
    • 2
    • 15
  • c

    clever-jelly-54786

    11/18/2022, 7:46 AM
    Hi Everyone, I am using Spryker Zed table functionality to display data list form database table, here I have used the sorting and search filter which is already provided but i want one more filter on date like from date/to date, so there's any functionality out of box for this or any other way for this? Thanks.
    r
    m
    • 3
    • 2
  • h

    hallowed-dentist-19902

    11/18/2022, 10:57 AM
    How does Spyker go from thinking of a design pattern to use to implementation? Do you have some kind of architect guiding developers so everybody is on the same page?
    a
    n
    • 3
    • 3
  • c

    calm-toddler-60539

    11/21/2022, 9:02 AM
    Can someone please guide me how to add a sub-resource in Glue API? I have a resource with
    <http://glue.de|glue.de>.spryker.local/pickup
    and I would like to add a`glue.de.spryker.local/pickup/add` endpoint as well. Is it possible to do it in the same module? Following is the glimpse of my ResourceRoutePlugin.php file
    Copy code
    ...
    class AddaxPickupPointsResourceRoutePlugin extends AbstractPlugin implements ResourceRoutePluginInterface
    {
        public function configure(ResourceRouteCollectionInterface $resourceRouteCollection)
        : ResourceRouteCollectionInterface {
    
            // to get all pickup points
            $resourceRouteCollection->addGet('get', true);
    
            return $resourceRouteCollection;
        }
    ...
    w
    • 2
    • 10
  • e

    early-army-90039

    11/21/2022, 11:24 AM
    Hi Team I have created custom queue to publish data, and to debug the data inserted in RabbitMQ, I am logging data in a file using file_put_contents But data logging is very slow for custom queue, It is logged only twice whole day. Can you please help me in adding data in custom queue?
  • f

    fast-activity-30172

    11/21/2022, 11:28 AM
    This is my XML file to generate the transfer object, please let me know is there are any mistakes? console transfer:generate command is not creating a file for same.
    e
    p
    • 3
    • 2
  • w

    wonderful-baker-94910

    11/21/2022, 11:51 AM
    #help Hi, i have followed the spryker documentation for installation Ubuntu + Docker, and it was successfull, but now i dont know how to access the Backoffice, i tried the link of Backoffice in spryker.local but i dont know the id, password!! , where can i get that.?
    w
    • 2
    • 2
  • a

    adventurous-psychiatrist-79661

    11/21/2022, 12:05 PM
    Hi Team, Good Morning & Good Evening. I am new to Sryker and just started my training. I followed the steps mentioned in this video to bind a newly created theme to a store ('green' theme to be applied to 'DE' store) however the change was not reflecting on storefront. https://academy.spryker.com/learn/course/381/play/3010/spryker-frontend-for-backend-developers Can some one assist if i missed something? Here are the changes I have done. 1. config/Yves/frontend-build-config.json : { "path": "assets/%SPRYKER_BUILD_HASH%/%namespace%/%theme%", "staticPath": "assets/static", "namespaces": [ { "codeBucket": "", "namespace": "", "themes": ["green"], "defaultTheme": "default" } ] } 2)TwigConfig.php has been updated to return 'green' theme for DE store src/Pyz/Shared/TwigDE/TwigConfig.php <?php namespace Pyz\Shared\TwigDE; use Spryker\Shared\Twig\TwigConfig as SprykerConfig; class TwigConfig extends SprykerConfig { public function getYvesThemeName(): string { return 'green'; } } 3) Created a theme folder 'green' in the following location. src/Pyz/Yves/ShopUi/Theme/green Thanks in Advance.
    m
    • 2
    • 5
  • s

    stocky-architect-18877

    11/22/2022, 5:55 AM
    Hi I want to download data as CSV file from Console Command. So once i hit console command with required parameter it should download CSV Can anyone help ion this ?
  • w

    wonderful-baker-94910

    11/22/2022, 9:21 AM
    #help Hi, i am facing this error while opening http://backend-gateway.de.spryker.local/ and http://glue.de.spryker.local/ on my browser.
    p
    a
    • 3
    • 4
  • p

    prehistoric-arm-81038

    11/22/2022, 10:01 AM
    Hey everyone, is there an overview for all the Spryker Modules somewhere? I have did a little search and found only the suite repository on github. Does the composer.json file of the project include ALL the Modules? Appreciate the help ^^
    a
    e
    • 3
    • 3
  • w

    wonderful-baker-94910

    11/22/2022, 11:41 AM
    #help I have cloned spryker b2b-demo-shop on docker + ubuntu on windows but i am unable to open the code files on VSCode, I tried opening it from container option open in VScode and it shows me a blank file in vs code, i can open it from the downloaded git but is it this correct?!! . what is the right way to open the demo shop on vs code?
    a
    • 2
    • 5
  • c

    cool-beard-17954

    11/22/2022, 4:05 PM
    Hi everyone, I have to create a new language FR for a shop but even if i have traduce the glossary.csv and all the .csv files that need to be traduce i have this error :
    Copy code
    Zed.CRITICAL: Spryker\Zed\DataImport\Business\Exception\DataSetBrokerTransactionFailedException - The key "title.fr_FR" was not found in data set. Available keys: "navigation_key, node_key, parent_node_key, node_type, title.en_US, url.en_US, css_class.en_US, title.de_DE, url.de_DE, css_class.de_DE, valid_from, valid_to, locales, idNavigation" in "/data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataSet/DataSetStepBrokerTransactionAware.php::59" {"exception":"[object] (Spryker\\Zed\\DataImport\\Business\\Exception\\DataSetBrokerTransactionFailedException(code: 0): The key \"title.fr_FR\" was not found in data set. Available keys: \"navigation_key, node_key, parent_node_key, node_type, title.en_US, url.en_US, css_class.en_US, title.de_DE, url.de_DE, css_class.de_DE, valid_from, valid_to, locales, idNavigation\" at /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataSet/DataSetStepBrokerTransactionAware.php:59)
    [stacktrace]
    I can't touch this part of the code, does someone know how to change this ?
    🔴 1
    p
    f
    • 3
    • 33
  • t

    tall-spring-12746

    11/22/2022, 6:01 PM
    Guys , i am trying to install B2C shop and get a timeout "The process "vendor/bin/console transfer:generate" exceeded the timeout of 600 seconds"
  • t

    tall-spring-12746

    11/22/2022, 6:01 PM
    is there a way i can complete the data transfer
    n
    • 2
    • 4
  • s

    sparse-chef-99859

    11/23/2022, 12:27 AM
    Hi guys! I want to implement some Glue Backend Api resources on an existing Spryker application. Right now we already have some old glue endpoints but they are using deprecated classes. (like
    Copy code
    \Spryker\Glue\GlueApplication\Rest\Request\Data\RestRequestInterface
    which is deprecated). We want to migrate to the new approach. I already went through Spryker documentation and followed "How to create a backend resource" but it seems that I miss something. Does anyone know where can I see a working example of a Glue backend api implementation or something that could help?
    c
    • 2
    • 1
  • b

    best-sundown-96727

    11/23/2022, 8:40 AM
    Hey, is there a clean way, to requeue messages if something is missing (or maybe another idea how to solve this)? In my case, we want to add the concrete product url to search. the buildConcreteUrl is part of the productStorageClient and relies on the data of the product storage. But for newly imported products, the search queue seems to be processed, before the product is written to storage. Another Idea would be, to try to create the url from product concrete entity, but I need to duplicate at least some logic from the product storage writer to get the url params for the super attributes
    k
    • 2
    • 3
  • f

    full-carpet-73492

    11/23/2022, 9:44 AM
    Hey Guys! I'm currently thinking of how to restrict some ContentPages with a password. Context: The useCase is that some pages are just for customers who bought a special product. But there is no technical relation between customer and the bought product because the product could be bought elsewhere. So we have a complete new authenticationLayer without any relation here So per page there must be the possibility to configure a password wich is needed to access the page. In Zed it's pretty clear: Extend cmsPageForm, the DBschema and in our case the headLess implementation of the Cms. but is there a neat and easy sulotion to provide the second loginLayer next to userLogin in yves? Thx in advance!
    p
    • 2
    • 5
  • c

    calm-toddler-60539

    11/23/2022, 10:27 AM
    Hello all, I am extending the CheckoutPage module inside Yves and added the CheckoutPageFactory.php. But the CheckoutController is resolving CheckoutPageFactory from the
    vender
    folder instead of the current folder. Any tips to fix this? This is my CheckoutController.php code:
    Copy code
    <?php
    namespace Pyz\Yves\CheckoutPage\Controller;
    
    use Pyz\Yves\CheckoutPage\Form\FormFactory;
    use SprykerShop\Yves\CheckoutPage\Controller\CheckoutController as SprykerShopCheckoutController;
    use Symfony\Component\HttpFoundation\Request;
    
    /**
     * @method \Pyz\Yves\CheckoutPage\CheckoutPageFactory getFactory()
     */
    class CheckoutController extends SprykerShopCheckoutController
    {
        /**
         * @param Request $request
         *
         * @return mixed
         */
        public function voucherAction(Request $request)
        {
            $checkoutFormFactory = $this->getFactory() // Gets the CheckoutPageFactory from the vendor/spryker/checkoutPage/src/Yves/... folder instead of the current module folder
                ->createCheckoutFormFactory();
    
            $stepProcess = $this->createStepProcess();
    
            $response = $stepProcess->process(
                $request,
                $checkoutFormFactory->createVoucherFormCollection()
            );
    
            if (!is_array($response)) {
                return $response;
            }
    
            return $this->view(
                $response,
                $this->getFactory()->getCustomerPageWidgetPlugins(),
                '@CheckoutPage/views/voucher/voucher.twig'
            );
        }
    }
    e
    m
    • 3
    • 3
  • q

    quiet-ram-72134

    11/23/2022, 1:49 PM
    Hi all... Topic: Demo-shop b2b testing database When i start to test functions connecting to the database is refused. What is totally clear, cause testing environment credentials are used. But the database trying to reach is not created yet. When is the "testing" databse created or how could i create the testing database? Thx in advance, Oli
    👋 3
    k
    g
    +2
    • 5
    • 19
  • c

    calm-toddler-60539

    11/23/2022, 4:05 PM
    Hello all, I added a step in the checkout following this tutorial: https://docs.spryker.com/docs/pbc/all/cart-and-checkout/tutorials-and-howtos/tutorial-checkout-and-step-engine.html#add-the-voucher-step Everything works OK(ish) except I see breadcrumbs 2 times. Can someone please advise.
    e
    • 2
    • 8
  • c

    clever-jelly-54786

    11/24/2022, 7:56 AM
    Hello All, I want to create a css file for my module in Zed, I have tried by creating the file in the module at MyModule/assets/css/filename.css and run the command console frontendzedbuild but its not getting generated in public/Zed/assets, can anyone please help here and let me know if i am doing something wrong here or how can i do this?
    g
    • 2
    • 2
  • g

    gentle-art-90358

    11/24/2022, 11:15 AM
    Hello everyone. I'm new to Spryker and I've started to delve into the architecture. I have a question about publish and subscribe. My current understanding is that the propel layer fires events when models are updated, created, deleted, etc (according to your sync behaviour config). Those events go to a broker (RabbitMQ) queue. The question is, what happens if the broker is not available? Does the database transaction fail?
    👍 1
    e
    • 2
    • 5
  • p

    purple-cartoon-1845

    11/24/2022, 4:12 PM
    Hello all, can someone please advise me on the right way to add helper files in the modules? For example adding a MyModuleHelper.php with static helper functions in a module named MyModule. How would you do that? Thanks in advance, Sven
    w
    • 2
    • 3
  • r

    rough-agency-88294

    11/25/2022, 8:06 AM
    Hi we have a external system for promotions that sets the promoted price for each product individually and I'm struggling to model this with spryker, efficiently at least. Suggestions?
    a
    • 2
    • 18
  • g

    gentle-art-90358

    11/25/2022, 10:25 AM
    Quick question: what is the difference between a
    DataImportPlugin
    and a mere
    DataImporter
    ?
1...727374...102Latest