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

    acoustic-whale-62254

    02/07/2020, 8:14 AM
    Good morning. In recent installation I always get the same "composer" issue.
    Copy code
    [spryker_app_dependencies 5/5] RUN --mount=type=cache,target=/home/spryker/.composer/cache,from=composer_cache,source=/cache     composer install --no-interaction --optimize-autoloader --no-dev
    a
    • 2
    • 6
  • a

    acoustic-whale-62254

    02/07/2020, 8:14 AM
    Anybody getting the same issue?
  • c

    crooked-house-89121

    02/07/2020, 8:22 AM
    Hey, I’m having an issues retrieving data from glue in the newest version. All other requests im using are working fine. But when I try to get the checkout-data, I get the following error:
    Copy code
    Access to XMLHttpRequest at '<http://glue.de.spryker.local/checkout-data>' from origin '<http://localhost:8080>' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
    I already tried changing the config to allow cross site requests, but that didn’t help.
    Copy code
    $config[GlueApplicationConstants::GLUE_APPLICATION_CORS_ALLOW_ORIGIN] = '<http://localhost:8080>';
    Furthermore I noticed, that the response I’m getting contains the access-control-allow-origin header, but doesn’t contain the access-control-allow-methods. The response itself is:
    Copy code
    {
      "errors": [
        {
          "detail": "Missing access token.",
          "status": 403,
          "code": "002"
        }
      ]
    }
    I’m using fetch to make the requests. I would be grateful for any help.
    i
    a
    l
    • 4
    • 19
  • r

    red-king-83175

    02/07/2020, 1:39 PM
    Hey guys! What is the best practice to remove a whole module from spryker?
    l
    • 2
    • 2
  • c

    clean-glass-99425

    02/07/2020, 3:17 PM
    With spryker/cms
    7.7.1
    I finally can delete CMS Pages which runs fine. Still I don't see any possibility to do the same with CMS Blocks?
    m
    a
    +2
    • 5
    • 10
  • m

    mammoth-autumn-37948

    02/10/2020, 8:57 AM
    Hi guys, a question: why RFQ Feature is based on company_user and not company (ER)? For a B2B the "customer" is the company and not a single person in a company and an offer should be seen from any company_user in the company (maybe with rights managed etc..).... We have to integrate the offers from SAP into Spryker and we have this ER problem. Naturally the whole business logic is based on the logged-in company-user... Has maybe someone any idea how can I perform this integration without change the whole BL? Thanks in advance
    c
    • 2
    • 4
  • l

    little-secretary-81579

    02/11/2020, 11:52 AM
    Hey, did anybody ever set
    Copy code
    run_on_non_production => false
    in jobs.php? It seems to make the job not run on production, but on any different environment. Cronjobs::getSchedule() will determine any environment different from production as production. Do I get something wrong here?
    h
    • 2
    • 4
  • a

    aloof-electrician-43662

    02/11/2020, 1:44 PM
    hello, I have technical question,how to override search engine in YVES and change url in view ? I override this file and search results go from my module but that is a correct way ?
    project/src/Pyz/Yves/ShopUi/Theme/default/components/molecules/search-form/search-form.twig
    {% define data = {
    searchUrl: path('custom-search-module'),
    searchValue: app.request.get('q')
    } %}
    and i want learn good practice in spryker.
    l
    • 2
    • 28
  • s

    sparse-fall-78248

    02/11/2020, 1:46 PM
    Hi! Today I started to work on a B2B project and I think I've got two simple questions: 1.) How do I actually send a Newsletter? Yes, I can subscribe to one but how do I send a Newsletter out to my users? The documentation doesn't really mention this. 2.) Is there more to Spryker CRM that I'm not seeing than Users & Groups? Thanks.
    a
    a
    • 3
    • 6
  • c

    clean-glass-99425

    02/11/2020, 2:03 PM
    I am writing a small CLI command that diffs files that exists in your project space and vendor. For example if core updated you can diff and see if your version is still up to date. I am doing this on filepath base. I believe Spryker keeps track of any file I override from core. Maybe that is better to be used? Is that file map cached and usable somewhere?
    d
    l
    m
    • 4
    • 24
  • c

    clean-glass-99425

    02/12/2020, 2:49 PM
    There currently is no documentation on how to write a CMS Slot Widget right? https://documentation.spryker.com/docs/templates-slots-feature-overview#slot-widget So the only chance I have to test this feature is to write a https://github.com/spryker/cms-slot/blob/master/src/Spryker/Client/CmsSlot/Business/CmsSlotDataProvider.php and hope for the best?
    a
    s
    • 3
    • 10
  • g

    gentle-vegetable-74963

    02/12/2020, 3:32 PM
    Hi, I have a question about the AmazonPay module described here: https://documentation.spryker.com/docs/amazon-pay I see on this page there is a form
    For further information on this partner and integration into Spryker, please contact us.
    Is there any obligation to use this form before installing the module from the Spryker-eco repository?
    c
    h
    • 3
    • 3
  • w

    wide-easter-55589

    02/13/2020, 9:38 AM
    Hi, it seems like you cant use the
    \SprykerTest\Shared\Url\Helper\UrlDataHelper
    due to missing autoload information (https://github.com/spryker/spryker-core/tree/master/Bundles/Url). Also the directory structure looks weird (https://github.com/spryker/spryker-core/tree/master/Bundles/Url/tests/SprykerTest/Shared/Url) compared to other modules (e.g. https://github.com/spryker/spryker-core/tree/master/Bundles/Customer/tests/SprykerTest/Shared/Customer).
    a
    • 2
    • 6
  • g

    green-balloon-3841

    02/13/2020, 10:42 AM
    Hi, I have a question about the HealthCheck module described here: https://documentation.spryker.com/docs/health-checks How can I prevent the http/https redirect in Yves? I configured the exclude list (YVES_SSL_EXCLUDE_ROUTE_NAMES) $config[RouterConstants::YVES_SSL_EXCLUDED_ROUTE_NAMES] = [ 'health-check' => 'health-check', ]; and debugged the SslPostAddRouteManipulatorPlugin. The scheme is set to static::SCHEME_HTTP, so I guess the configuration is correct. Also the generated cache file UrlMatcher.php contains the correct entry: '/health-check' => [[['_route' => 'health-check', '_controller' => ['Spryker\\Yves\\HealthCheck\\Controller\\IndexController', 'indexAction'], '_template' => 'HealthCheck/index/index', 'language' => 'en', 'store' => 'US'], null, ['GET' => 0], ['http' => 0], false, false, null]], But I still receive a redirect to https (status code 301). Any hints? Thx
    a
    • 2
    • 1
  • s

    silly-motherboard-93855

    02/13/2020, 10:58 AM
    In discounts, we have collectorquery which in the database holds for example
    sku CONTAINS 'CREME'
    in \Orm\Zed\Discount\Persistence\Base\SpyDiscount::getCollectorQueryString. Is there a method in Spryker which converts this to raw query part (I guess LIKE statement in this case)?
  • a

    acoustic-businessperson-27970

    02/13/2020, 1:19 PM
    Hello all, Does anyone know where does Spryker do the translation in the code? Let’s say I want to intercept every translation operation that happens accross the application! How can I do that? where is the central place that does this?! Thank you
    v
    m
    s
    • 4
    • 3
  • e

    early-art-81990

    02/14/2020, 7:23 AM
    Morning. does
    $this->zedStub->call()
    allways needs to return some TO when calling ZED from YVES via ZedRequestCLient? I tried without and got this error showing below. All examples I could find in vendor/spryker are returning a TO, so I assume I need to do this as well.
    s
    m
    • 3
    • 5
  • a

    acoustic-motherboard-16553

    02/14/2020, 12:03 PM
    Hi, for the latest spryker version... Should we use the searchClient or the searchElasticSearchClient?
    n
    • 2
    • 44
  • s

    strong-winter-32294

    02/14/2020, 12:08 PM
    Hello, is there an existing machanism to store a module’s state/config? For example to store a timestamp when a process run the last time, or which was the last offset it used to call an external api? So basically a simple (persisted) key-value store for zed?
    m
    q
    • 3
    • 10
  • s

    steep-receptionist-20341

    02/17/2020, 8:35 AM
    Copy code
    Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException thrown with message "An error has occurred resolving the options of the form "Symfony\Component\Form\Extension\Core\Type\TextareaType": The options "allowed_attributes", "allowed_html_tags", "sanitize_xss" do not exist. Defined options are: "action", "allow_extra_fields", "allow_file_upload", "attr", "attr_translation_parameters", "auto_initialize", "block_name", "block_prefix", "by_reference", "compound", "constraints", "csrf_field_name", "csrf_message", "csrf_protection", "csrf_token_id", "csrf_token_manager", "data", "data_class", "disabled", "empty_data", "error_bubbling", "error_mapping", "extra_fields_message", "help", "help_attr", "help_html", "help_translation_parameters", "inherit_data", "invalid_message", "invalid_message_parameters", "label", "label_attr", "label_format", "label_translation_parameters", "mapped", "method", "post_max_size_message", "property_path", "required", "row_attr", "translation_domain", "trim", "upload_max_size_message", "validation_groups"."
    
    Stacktrace:
    #38 Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException in /data/vendor/symfony/form/ResolvedFormType.php:99
    #37 Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException in /data/vendor/symfony/options-resolver/OptionsResolver.php:798
    #36 Symfony\Component\OptionsResolver\OptionsResolver:resolve in /data/vendor/symfony/form/ResolvedFormType.php:97
    #35 Symfony\Component\Form\ResolvedFormType:createBuilder in /data/vendor/symfony/form/FormFactory.php:76
    #34 Symfony\Component\Form\FormFactory:createNamedBuilder in /data/vendor/symfony/form/FormBuilder.php:94
    #33 Symfony\Component\Form\FormBuilder:create in /data/vendor/symfony/form/FormBuilder.php:244
    #32 Symfony\Component\Form\FormBuilder:resolveChildren in /data/vendor/symfony/form/FormBuilder.php:195
    #31 Symfony\Component\Form\FormBuilder:getForm in /data/vendor/symfony/form/Extension/Core/Type/CollectionType.php:40
    #30 Symfony\Component\Form\Extension\Core\Type\CollectionType:buildForm in /data/vendor/symfony/form/ResolvedFormType.php:128
    #29 Symfony\Component\Form\ResolvedFormType:buildForm in /data/vendor/symfony/form/FormFactory.php:80
    #28 Symfony\Component\Form\FormFactory:createNamedBuilder in /data/vendor/symfony/form/FormBuilder.php:94
    #27 Symfony\Component\Form\FormBuilder:create in /data/vendor/symfony/form/FormBuilder.php:235
    #26 Symfony\Component\Form\FormBuilder:resolveChild in /data/vendor/symfony/form/FormBuilder.php:110
    #25 Symfony\Component\Form\FormBuilder:get in /data/vendor/spryker/cms-gui/src/Spryker/Zed/CmsGui/Communication/Form/Glossary/CmsGlossaryAttributesFormType.php:177
    #24 Spryker\Zed\CmsGui\Communication\Form\Glossary\CmsGlossaryAttributesFormType:addTranslationsField in /data/vendor/spryker/cms-gui/src/Spryker/Zed/CmsGui/Communication/Form/Glossary/CmsGlossaryAttributesFormType.php:79
    #23 Spryker\Zed\CmsGui\Communication\Form\Glossary\CmsGlossaryAttributesFormType:buildForm in /data/vendor/symfony/form/ResolvedFormType.php:128
    #22 Symfony\Component\Form\ResolvedFormType:buildForm in /data/vendor/symfony/form/FormFactory.php:80
    #21 Symfony\Component\Form\FormFactory:createNamedBuilder in /data/vendor/symfony/form/FormBuilder.php:94
    #20 Symfony\Component\Form\FormBuilder:create in /data/vendor/symfony/form/Extension/Core/Type/CollectionType.php:39
    #19 Symfony\Component\Form\Extension\Core\Type\CollectionType:buildForm in /data/vendor/symfony/form/ResolvedFormType.php:128
    #18 Symfony\Component\Form\ResolvedFormType:buildForm in /data/vendor/symfony/form/FormFactory.php:80
    #17 Symfony\Component\Form\FormFactory:createNamedBuilder in /data/vendor/symfony/form/FormBuilder.php:94
    #16 Symfony\Component\Form\FormBuilder:create in /data/vendor/symfony/form/FormBuilder.php:235
    #15 Symfony\Component\Form\FormBuilder:resolveChild in /data/vendor/symfony/form/FormBuilder.php:110
    #14 Symfony\Component\Form\FormBuilder:get in /data/vendor/spryker/cms-gui/src/Spryker/Zed/CmsGui/Communication/Form/Glossary/CmsGlossaryFormType.php:67
    #13 Spryker\Zed\CmsGui\Communication\Form\Glossary\CmsGlossaryFormType:addCmsGlossaryAttributeFormCollection in /data/vendor/spryker/cms-gui/src/Spryker/Zed/CmsGui/Communication/Form/Glossary/CmsGlossaryFormType.php:38
    #12 Spryker\Zed\CmsGui\Communication\Form\Glossary\CmsGlossaryFormType:buildForm in /data/vendor/symfony/form/ResolvedFormType.php:128
    #11 Symfony\Component\Form\ResolvedFormType:buildForm in /data/vendor/symfony/form/FormFactory.php:80
    #10 Symfony\Component\Form\FormFactory:createNamedBuilder in /data/vendor/symfony/form/FormFactory.php:58
    #9 Symfony\Component\Form\FormFactory:createBuilder in /data/vendor/symfony/form/FormFactory.php:30
    #8 Symfony\Component\Form\FormFactory:create in /data/vendor/spryker/cms-gui/src/Spryker/Zed/CmsGui/Communication/CmsGuiCommunicationFactory.php:148
    #7 Spryker\Zed\CmsGui\Communication\CmsGuiCommunicationFactory:getCmsGlossaryForm in /data/vendor/spryker/cms-gui/src/Spryker/Zed/CmsGui/Communication/CmsGuiCommunicationFactory.php:134
    #6 Spryker\Zed\CmsGui\Communication\CmsGuiCommunicationFactory:createCmsGlossaryForm in /data/vendor/spryker/cms-gui/src/Spryker/Zed/CmsGui/Communication/Controller/CreateGlossaryController.php:120
    #5 Spryker\Zed\CmsGui\Communication\Controller\CreateGlossaryController:getGlossaryForm in /data/vendor/spryker/cms-gui/src/Spryker/Zed/CmsGui/Communication/Controller/CreateGlossaryController.php:46
    #4 Spryker\Zed\CmsGui\Communication\Controller\CreateGlossaryController:indexAction in /data/vendor/symfony/http-kernel/HttpKernel.php:146
    #3 Symfony\Component\HttpKernel\HttpKernel:handleRaw in /data/vendor/symfony/http-kernel/HttpKernel.php:68
    #2 Symfony\Component\HttpKernel\HttpKernel:handle in /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php:122
    #1 Spryker\Shared\Application\Application:handle in /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php:103
    #0 Spryker\Shared\Application\Application:run in /data/public/Zed/index.php:22
    c
    a
    • 3
    • 7
  • s

    steep-receptionist-20341

    02/17/2020, 8:35 AM
    I have the suspicion that the cms-gui is not compatible with that version of Symfony-Form, but the composer-Requirements check out ok. Spryker/symfony requires symfony/form 3.x or 4.x, I have 4.4.2 currently
    a
    a
    +2
    • 5
    • 14
  • s

    steep-receptionist-20341

    02/17/2020, 8:35 AM
    I’m trying to create a new CMS page, but when I hit save I get
  • s

    silly-motherboard-93855

    02/17/2020, 12:37 PM
    https://spryker.com/product/capability-detail-cross-sell-and-upsell/ describes there's crossell functionality, but I don't see this available in relation types at https://documentation.spryker.com/docs/product-relations-reference-information where can I see how to set up crosssells ?
    m
    a
    • 3
    • 16
  • s

    sparse-kangaroo-34355

    02/17/2020, 2:58 PM
    Hi, I am trying to access a function in the MerchantRelationshipProductListRepository, but I get an error upon calling. No connection defined for database "zed". Did you forget to define a connection or is it wrong written? I didn't change this class at all, so I'm a bit surprised that there's no stream already 🤔 (Full stacktrace in Thread)
    l
    i
    • 3
    • 13
  • a

    acoustic-whale-62254

    02/18/2020, 8:03 AM
    Can anybody help me with conditions in the statemachine? My Condition test does not work and I have no clue why? I'm runing the spryker b2c demo shop on docker. My statemachine code for the condition looks like:
    Copy code
    <transition condition="Oms/CheckInvoiceAmount" happy="true">
        <source>release</source>
        <target>payment pending</target>
        <event>check amount</event>
    </transition>
    
    <transition condition="Oms/CheckInvoiceAmount" happy="true">
        <source>release</source>
        <target>release order</target>
        <event>check amount</event>
    </transition>
    And the condition class check function:
    Copy code
    return $orderItem->getGrossPrice() > 500 ? true : false;
    The result of the condition check always ends in the "release order" state. Any suggestions?
    c
    q
    s
    • 4
    • 21
  • s

    sparse-kangaroo-34355

    02/18/2020, 11:33 AM
    Hi, has anyone had the behaviour, that items in an orderEntity have a wrong price when the quantity is >= 10? It seems like the quantity is involved while calculating the NetPrice 🤔. Didn't find the spot yet. Example: I have an item which costs 194.90€. Quantity 11:
    Copy code
    $orderItem[1]->getNetPrice(); // returns 214390 -> 2143,90€ per item
    Quantity 9:
    Copy code
    $orderItem[1]->getNetPrice(); // returns 19490 -> 194,90€ per item
    a
    s
    c
    • 4
    • 28
  • a

    acoustic-motherboard-16553

    02/19/2020, 7:36 AM
    Good morning, someone knows or had this error too?
    Copy code
    TypeError - Argument 1 passed to Spryker\Shared\Kernel\Communication\Application::Spryker\Shared\Kernel\Communication\{closure}() must be an instance of Symfony\Cmf\Component\Routing\ChainRouter, instance of Spryker\Yves\Kernel\Application given, called in /var/www/spryker/releases/current/vendor/spryker/container/src/Spryker/Service/Container/Container.php on line 420
    And if I remove the registerRouters() from YvesBootstrap in PYZ I get
    Copy code
    Spryker\Service\Container\Exception\NotFoundException - The requested service "routers" was not found in the container!
  • a

    acoustic-motherboard-16553

    02/19/2020, 11:12 AM
    Hi, it seems in actual vesion is a bug in
    vendor/spryker/log/src/Spryker/Zed/Log/Communication/Plugin/Handler/AbstractHandlerPlugin.php
    Copy code
    public function pushProcessor($callback): HandlerInterface
    is incompatible with Interface
    vendor/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php
    Copy code
    public function pushProcessor(callable $callback): HandlerInterface
    Copy code
    "spryker/log" 3.8.1
    "monolog/monolog" 2.0.2
    h
    • 2
    • 5
  • m

    mysterious-king-59256

    02/19/2020, 12:20 PM
    Hello, Do you know if in yves JavaScript is url to Glue available by default somewhere?
    a
    l
    • 3
    • 5
  • a

    ancient-apartment-59274

    02/19/2020, 4:17 PM
    Hello, i have a question for a general workflow in spryker. We want to create a user login workflow where some identity server is involved. So for the login of a customer (via /login endpoint in glue for example) there is an external id server which gets called from spryker and give back an user object and a token. But only if the user is allowed to login to this shop. Otherwise it should fail. When the user is granted, in the same call it takes this user object and looks in the spryker db if the user is already in spryker or not. If not -> create, if yes -> consider an update of the user data if user data changed. Yes, the creation/check of the user on the spryker side might be expensive but necessary in this case. The glue response would then only contain the token after this successful login process. So far so good. The problem what i see here is, that spryker has this async mechanism of publish and synchronization. Means there is a lag when creating the customer in ZED and when they is available via the glue API (which uses AFAIK only Redis data). My concerns here is, that this customer data isn’t fast enough available since the customer will start his shopping experience immediately right after the login. But the P&S process may take up to one minute i guess. Plus the login can’t promise if the data is ever available on glue (when P&S fails for example) So my question: Is there any mechanism in spryker to have that customer data immediately in redis without going the async way? Does somebody had a similar case? Any other ideas or thoughts? Thanks a lot!
    c
    • 2
    • 2
1...121314...102Latest