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

    clever-student-2834

    09/02/2022, 10:56 AM
    I am new to Spryker and have a General Question: How do we decide when to use Client, Yves, Zed, Service, Shared etc. I understand Yves is used for frontend funcitonality of a module and Zed for Backoffice part. But Im not sure if this is correct understanding. The first module we are making is a common Class which would be responsible for API logging(Request and Response). This class would extend Guzzle Cient and will be used to call APIs instead of guzzle client. We want this class to be used instead of default Guzzle Client to have some control over API calls.(Example logging the calls) Where shall we keep the Class? IMO it should be in a client. How do we decide the best approach and folder.
    w
    e
    m
    • 4
    • 8
  • b

    bright-airport-9052

    09/02/2022, 12:27 PM
    Hello Team, We are using Spryker Middle ware to process data. In our case, we are getting category data from third party API (JSON Format). How we can process this data into Spryker using Middlerware. We have additional category attributes and additional custom data as well (Which is link with category id)? Is there any way to bypass -i -o parameters in middleare process command? Please suggest it. Thanks in advance.
    k
    • 2
    • 1
  • g

    green-engine-89301

    09/05/2022, 8:13 AM
    Can anyone help me on this :- How we can extend Internalization and State Model. We need to add some custom fields.
  • i

    icy-sundown-8018

    09/05/2022, 8:17 AM
    Hey all, we are currently facing a problem with typescript eslint parser. Our IDE (PHPStorm) marks a lot of problems based on the current ".eslintrc.js"- configuration file. When you are running ESLint on default suite or b2b code base, ESLint will found a lot of problems. In addition ESLint with the ".eslintrc.js"- configuration file only seems to be used by the IDE (e.g. PHPStorm) and not by CI checks or pre-commit hook so far. Tslint is marked as deprecated since 2019 (https://blog.palantir.com/tslint-in-2019-1a144c2317a9, https://github.com/palantir/tslint/issues/4534). Are there any plans by spryker to fully replace tslint with eslint? Thanks in advance!
  • p

    polite-lunch-97479

    09/05/2022, 9:46 AM
    I updated
    spryker/git-hook
    recently and my pre commit hook is failing now with:
    Copy code
    ERROR: the "APPLICATION_ROOT_DIR/phpcs.xml" coding standard is not installed. The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz, Zend, config, mpdf, SlevomatCodingStandard, decimal-object, development, GlueStreamSpecific, Spryker and SprykerStrict
    Seems it's related to this commit: https://github.com/spryker/git-hook/commit/ce5f46583fb9d98db7983c08b89187915c0d06b9 I haven't had a phpcs.xml on project level so far and I'd like to keep using it from the core. What would I have to do to accomplish that?
    👀 1
    m
    a
    • 3
    • 17
  • r

    rapid-night-92661

    09/05/2022, 12:40 PM
    Hi everyone 🙂 We are using spryker cloud, do you have any good solution to log exceptions/application metrics? We thought about using logstash and kibana, what do you think about this? Do you have any better solution for spryker cloud, any php libraries to log exceptions (other than monolog), etc?
    a
    e
    • 3
    • 8
  • a

    acceptable-sundown-99280

    09/05/2022, 12:56 PM
    Hello, I have created custom Glue api endpoint
    custom/{{abstract_product_id}}
    . Using this endpoint, I want to retrieve abstract product details. It means when I pass abstract_product_id value to my custom end point, it should return the content of default api:
    /abstract-products/{abstractProductId}
    Is that possible?
  • b

    bright-airport-9052

    09/06/2022, 5:42 AM
    Hello Everyone, I am trying to save data into table but I am getting below error: Unable to execute INSERT statement [INSERT INTO pyz_bsl_data_range_channels_details (id_channel_detail, fk_id_category, key, title, seo_alias, fk_locale) VALUES (:p0, :p1, :p2, :p3, :p4, :p5)]; INSERT INTO pyz_bsl_data_range_channels_details (id_channel_detail, fk_id_category, key, title, seo_alias, fk_locale, created_at) VALUES (:p0, :p1, :p2, :p3, :p4, :p5, :p6) Error - Exception: Object of class Propel\Runtime\Connection\StatementWrapper could not be converted to string Before inserting data into table, prepare data like below: $channelEntity = PyzBslDataRangeChannelsDetailsQuery::create() ->filterByFkIdCategory($categoryId) ->filterByKey($channel['key']) ->filterByFkLocale($localeId) ->findOneOrCreate(); // convert into data set $channelDataSet = new DataSet([ 'fk_id_category' => $categoryId, 'key' => $channel['key'], 'title' => $channel['title'], 'seo_alias' => $channel['seoAlias'], 'fk_locale' => $localeId ]); // update data $channelEntity = $channelEntity->fromArray($channelDataSet->getArrayCopy()); $channelEntity->save(); Do you have any idea what is issue in it? Thanks
    c
    w
    • 3
    • 3
  • g

    green-engine-89301

    09/06/2022, 10:49 AM
    Hello Everyone , I had already extend the database column for custom fields in product table (database). But, when I am trying to get (render) these custom field in the product section in Backoffice, we are not able to show the fields . I have attached the screenshot where we want to show the custom field. I have followed this documentation ("https://docs.spryker.com/docs/scos/dev/tutorials-and-howtos/advanced-tutorials/tutorial-creating-a-table-view.html#create-the-twig-template") But its not give any result. This documentation working fine in custom module table. Do you have any idea related to add custom field in the product table? Thanks
    f
    p
    w
    • 4
    • 11
  • g

    green-dinner-62699

    09/06/2022, 11:25 AM
    Hello, I was wondering if someone could explain where the data comes from to populate
    spy_locale
    table within the database. there doesn’t seem to be a related .csv file, so I’m just wondering how it works. thanks in advance.
    p
    r
    • 3
    • 4
  • e

    early-army-90039

    09/06/2022, 11:42 AM
    Hi Team I am taking reference for logs in custom command from
    vendor/spryker/console/src/Spryker/Zed/Console/Communication/Plugin/ConsoleLogPlugin.php
    I have created
    BSLSprykerDataMappingConsoleLogPlugin
    class in same manner in this location
    src/Pyz/Zed/BSLSprykerDataMapping/Communication/Plugin/BSLSprykerDataMappingConsoleLogPlugin.php
    Taking reference from https://docs.spryker.com/docs/scos/dev/back-end-development/console-commands/implementing-a-new-console-command.html#event-listener I have registerd
    BSLSprykerDataMappingConsoleLogPlugin
    in ConsoleDependencyProvider too. Please let me know how can i check logs when command is getting executed.
  • b

    bright-airport-9052

    09/06/2022, 1:03 PM
    Hello Everyone, Query related to custom attribute/field against Category: We have custom data based on locale like long_description, short_description for category. Also we have custom data on category level like is_erp_active, is_b2b etc. How we can handle custom attributes value in category? Do we need to add columns in spy_category table (For is_erp_active, is_b2b) and spy_category_attribute table for (long_description, short_description)? Or there is a other way to handle category attributes? Also we want to display attribute in admin section. Please share any idea for it. Thanks
    w
    • 2
    • 1
  • s

    some-stone-92221

    09/07/2022, 5:27 AM
    Hi Everyone, I have ran the code sniffer architecture command on the module i created and fixed the issues and ran again still i am getting the same issues even the functions don't exists in the class now.
  • l

    late-tiger-76201

    09/07/2022, 5:46 AM
    Good Morning, does anybody has a link for me how to develop an own module in spryker? Got this strange error and could not figure out what it causes:
    Copy code
    Fatal error: Uncaught Error: Class 'Spryker\Shared\Kernel\ClassResolver\ModuleNamePostfixProvider\ModuleNamePostfixProvider' not found in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/KernelSharedFactory.php:68
    Stack trace:
    #0 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/KernelSharedFactory.php(60): Spryker\Shared\Kernel\KernelSharedFactory->createModuleNamePostfixProvider()
    #1 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/KernelSharedFactory.php(52): Spryker\Shared\Kernel\KernelSharedFactory->createModuleNameCandidatesBuilder()
    #2 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/KernelSharedFactory.php(34): Spryker\Shared\Kernel\KernelSharedFactory->createClassNameCandidatesBuilder()
    #3 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/ClassResolver/AbstractClassResolver.php(289): Spryker\Shared\Kernel\KernelSharedFactory->createClassNameFinder()
    #4 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/ClassResolver/AbstractClassResolver.php(268): Spryker\Shared\Kernel\ClassResolver\Abst in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/KernelSharedFactory.php on line 68
  • m

    mysterious-ambulance-11183

    09/07/2022, 6:53 AM
    Good morning, short question regarding DB maintenance. I observed, that especially spy_oms_transition_log can grow quite big quite fast. How do handle that?
    g
    • 2
    • 11
  • e

    early-army-90039

    09/07/2022, 8:10 AM
    Hi Team Please let me know which layer should be used to consume third-party APIs.
    solved 1
    e
    g
    • 3
    • 10
  • c

    calm-france-15664

    09/07/2022, 8:46 AM
    Hi , we would like to change checkout process so that one initial step is run every time customer begins with checkout. - we need this step to be called only once in the beginning, it should not iterate on every subsequent step. - when customer exits checkout (goes on the homepage for example) and then starts with the checkout again, this step should be called. Is there any elegant solution for this? Thanks in advance
    a
    • 2
    • 8
  • g

    green-dinner-62699

    09/07/2022, 9:35 AM
    Hello, just wondering if anyone else has encountered an error related to
    docker/sdk console data:import
    the category import is throwing an error
    Copy code
    Store: DE | Environment: docker.dev
    Starting import with /data/data/import/local/full_EU.yml configuration file.
    Error - Exception: Call to undefined method Pyz\Zed\CategoryDataImport\Business\CategoryDataImportBusinessFactory::createPyzCategoryImporter()
    in /data/src/Pyz/Zed/CategoryDataImport/Business/CategoryDataImportFacade.php (31)
    
    Command: /data/vendor/bin/console data:import
    
    Trace:
    #0 /data/vendor/spryker/category-data-import/src/Spryker/Zed/CategoryDataImport/Communication/Plugin/CategoryDataImportPlugin.php(32): Pyz\Zed\CategoryDataImport\Business\CategoryDataImportFacade->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
    #1 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporterCollection.php(205): Spryker\Zed\CategoryDataImport\Communication\Plugin\CategoryDataImportPlugin->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
    #2 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporterCollection.php(156): Spryker\Zed\DataImport\Business\Model\DataImporterCollection->executeDataImporter(Object(Spryker\Zed\CategoryDataImport\Communication\Plugin\CategoryDataImportPlugin), Object(Generated\Shared\Transfer\DataImporterReportTransfer), Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
    #3 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/DataImportFacade.php(53): Spryker\Zed\DataImport\Business\Model\DataImporterCollection->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
    #4 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/Executor/DataImportExecutor.php(92): Spryker\Zed\DataImport\Business\DataImportFacade->importByAction(Object(Generated\Shared\Transfer\DataImportConfigurationActionTransfer), Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
    #5 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/DataImportConsole.php(240): Spryker\Zed\DataImport\Communication\Console\Executor\DataImportExecutor->executeByConfigAndImporterType(Object(Symfony\Component\Console\Input\ArgvInput), '/data/data/impo...', 'full')
    #6 /data/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/DataImportConsole.php(222): Spryker\Zed\DataImport\Communication\Console\DataImportConsole->executeByConfigAndImporterType(Object(Symfony\Component\Console\Input\ArgvInput), '/data/data/impo...', 'full')
    #7 /data/vendor/symfony/console/Command/Command.php(299): Spryker\Zed\DataImport\Communication\Console\DataImportConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #8 /data/vendor/symfony/console/Application.php(996): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #9 /data/vendor/symfony/console/Application.php(295): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\DataImport\Communication\Console\DataImportConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #10 /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))
    #11 /data/vendor/symfony/console/Application.php(167): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
    #12 /data/vendor/spryker/console/bin/console(26): Symfony\Component\Console\Application->run()
    #13 /data/vendor/bin/console(112): include('/data/vendor/sp...')
    d
    r
    a
    • 4
    • 6
  • c

    clever-jelly-54786

    09/08/2022, 6:29 AM
    Hello, I have created a new console command and i want that command to be run during deployment so for that where i should add my command? Any help?
    a
    • 2
    • 2
  • b

    broad-mouse-68653

    09/08/2022, 12:53 PM
    Hey guys, I perform an ajax call via the ajax provider molecule and render a component asynchronously. However, if I do that, the javascript/ css of that component isn't loaded properly. I assume because at the moment the page is requested, it isn't needed and thus not loaded. Can someone point me into the right direction on how to properly load the component ahead of time? Is there maybe a way to specify explicitly what components should be loaded on a given page? I found a workaround, but its kinda ugly: Include the component (e.g. in a hidden div) and then once the component actually is loaded, call the init/ mountCallback in javascript to initialize the functionality. Thank you! Tom
    m
    • 2
    • 3
  • d

    damp-area-26048

    09/08/2022, 2:26 PM
    Hi has anyone seen
    Copy code
    Missing required property \"method\" for transfer Generated\\Shared\\Transfer\\ShipmentTransfer
    when trying to send a checkout request to Glue API
    ➕ 1
  • e

    early-army-90039

    09/09/2022, 6:04 AM
    Hi Team I am getting product details from third-party API. I need to create product in spryker from the details getting from API, Please let me know which approach should I use to create product.
    a
    • 2
    • 9
  • q

    quiet-lawyer-83327

    09/09/2022, 11:01 AM
    Hello!
  • q

    quiet-lawyer-83327

    09/09/2022, 11:01 AM
    I recently tried to install spryker with docker on windows, got through all the steps but I can't seem to reach the endpoints on either the b2b or b2c demo.
  • q

    quiet-lawyer-83327

    09/09/2022, 11:02 AM
    The container is running on docker and I can only reach the backoffice endpoint
    c
    p
    +2
    • 5
    • 14
  • g

    great-byte-99546

    09/09/2022, 1:16 PM
    How can I add custom CSS styles to Zed Table ?
  • g

    gorgeous-doctor-10272

    09/09/2022, 4:55 PM
    Hi everyone! Does anyone know what is the recommended approach in Spryker to replace the Image URL field with a file upload when creating/updating a product?
  • b

    bright-airport-9052

    09/12/2022, 4:55 AM
    Hello Team, Is there any way to export Spryker local database without adding any new repository?
  • e

    early-army-90039

    09/12/2022, 9:16 AM
    Hi Team While doing publish and synchronize, I am getting following output in RabbitMq:
    {"additional_values":[],"id":3,"event":"Entity.pyz_data_tracker_category_test_detail_initial.create","name":"pyz_data_tracker_category_test_detail_initial","foreign_keys":[],"modified_columns":["<http://pyz_data_tracker_category_test_detail_initial.fk|pyz_data_tracker_category_test_detail_initial.fk>_id_category_initial","pyz_data_tracker_category_test_detail_initial.bsl_entity_id","pyz_data_tracker_category_test_detail_initial.parent_id","pyz_data_tracker_category_test_detail_initial.relationship_maintained","pyz_data_tracker_category_test_detail_initial.record_created_in_spryker","pyz_data_tracker_category_test_detail_initial.entity_json","pyz_data_tracker_category_test_detail_initial.created_at","pyz_data_tracker_category_test_detail_initial.updated_at"],"original_values":[]}
    But when I am putting any custom column to publish:
    <behavior name="event">
    <parameter name="pyz_data_tracker_category_test_detail_initial_all" column="entity_json" />
    </behavior>
    Still I am getting above json in RabbitMq. Please let me know how can I save any other column in RabbitMq except id.
  • s

    some-stone-92221

    09/12/2022, 9:30 AM
    Hello Everyone, Is there any API to get the category data for a specific category id or key ?
    o
    • 2
    • 2
1...656667...102Latest