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

    wide-wolf-99519

    04/07/2021, 9:48 AM
    halp how can I deal with
    Copy code
    Spryker\Zed\Oms\Business\Exception\LockException - Exception: State machine trigger is locked. Propel exception: Failed to execute insert statement for Orm\Zed\Oms\Persistence\SpyOmsStateMachineLock. Error: SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "spy_oms_state_machine_lock-identifier"
    p
    • 2
    • 5
  • e

    enough-byte-77557

    04/07/2021, 2:02 PM
    Hi, we want to create discounts, where the discount applies to only the cheapest qualifying product. For example: a 3 for 2 type offer - "Buy 3 products from x brand, get the cheapest one free". I've not found a way to do this with the discounts module. Is there a way? Or an extension module to install?
    p
    • 2
    • 1
  • w

    wide-wolf-99519

    04/08/2021, 7:09 AM
    when writing plugins implementing QueueMessageProcessorPluginInterface is there anything that has to be done except setting acknowledge to true when processing queue messages? it seems that messages are not removed from the queue after processing in our project and I wonder what might be the cause
  • a

    ancient-apartment-59274

    04/08/2021, 7:31 AM
    Hello everybody, since today, at least one of our developers experiencing issues regarding composer. Since there was a change in sprykers docker PHP image files on dockerhub 17 hours ago … was there something changed regarding composer? One difference we see is the composer version (1.x on my working system, 2.x on the devs broken machine) … but also other developers have the 2.x version and don’t have issues, but we are not sure if they all did reset/bootstrap yet … Best
    h
    • 2
    • 2
  • f

    famous-ram-83696

    04/08/2021, 8:00 AM
    Hello again! After setting up the B2C Demo Shop, I wanted to use PhpStorm on my Windows 10 machine to start coding. However, the changes to the codebase (on Windows) do no reflect in the Vagrant Virtual Machine. I found some information about Synced Folders for Vagrant at https://www.vagrantup.com/docs/synced-folders/basic_usage, but changing the paths will break the project. Should the folders be synced out of the box after finishing installation? Or is there an extra step to do/is there something that I might be missing?
    a
    • 2
    • 5
  • s

    sparse-fall-78248

    04/09/2021, 6:59 AM
    Hello everyone, has anyone of you had this error message before? We've updated our composer dependencies and now we're getting this when at least one item is in the cart:
    Copy code
    YVES Exception
    Twig\Error\RuntimeError - An exception has been thrown during the rendering of a template ("Field "_token" has already been rendered, save the result of previous render call to a variable and output that instead.").
    
    in /data/vendor/spryker-shop/cart-page/src/SprykerShop/Yves/CartPage/Theme/default/views/remove-from-cart-form/remove-from-cart-form.twig (22)
    I've tried commenting out the specified file and that works well, however, of course this can't stay that way. I don't see the field being defined multiple times so I really don't get the issue. Thanks for any tips.
    • 1
    • 1
  • w

    wide-wolf-99519

    04/09/2021, 1:15 PM
    hey, I have couple questions about state machine assuming, I have multiple stores configured, if I run
    Copy code
    APPLICATION_STORE=EN oms:check-condition
    will conditions be verified only for EN store, or for all stores? could this command check conditions for other stores? what will happen if I run
    Copy code
    APPLICATION_STORE=EN oms:check-condition --store-name=DE
    m
    • 2
    • 4
  • a

    ancient-apartment-59274

    04/12/2021, 1:58 PM
    Hello, some questions about spryker product attributes in spryker docs there is a recommendation handling product attributes
    The attribute mechanism is only recommended if the information stored is for display purpose only. As soon as you want to program against it, we recommend extending one of the four tables.
    What does this exactly mean? As far as i understand: Just for displaying something like color:black, size:5, score:11 … simple key value pairs are meant that gets iterated by its key value in the corresponding template. You have not really control of styling etc since the keys are generic (the expected key can be there but also can be abscent). However, if it is some kind of information that is directly addressed and handled extra in a template (like the “description” field), it should be some extra column in the db, so that its definitely addressable in the template? Is that correct? Another question: what is the recommendation here, saving formatting stuff along the fields? I saw some fields having HTML tags, other not. Like for description etc. especially considering elasticsearch full text search etc. Best regards
    w
    l
    • 3
    • 6
  • a

    ancient-megabyte-55629

    04/13/2021, 8:18 AM
    Hello, This might seem basic but I don't know if anyone has ever faced this but is there a way to change the timezone in the Spryker application? I have updated the timezone in the configuration files but some how the Orders placed still come in UTC
    Copy code
    $config[ApplicationConstants::PROJECT_TIMEZONE] = 'Europe/Berlin';
    a
    • 2
    • 2
  • w

    wide-wolf-99519

    04/13/2021, 8:52 AM
    cannot run
    oms:check-condition
    with parameters, it works just fine without them, but once I run
    oms:check-condition --limit=1
    or
    oms:check-condition --store-name=AT
    Im getting
    Copy code
    Propel\Runtime\Exception\PropelException - Exception: Error populating \Orm\Zed\Sales\Persistence\SpySalesOrderItem object
    did anyone encounter similar problem?
    a
    l
    p
    • 4
    • 34
  • e

    echoing-notebook-55206

    04/13/2021, 11:13 AM
    Hello folks, we have a stage server where the customer is importing data. When an error occurs, I want to replicate it quickly. For that to work, I need the same product data as stage. Is there a quick way to dump a) PGSQL b) Redis c) Elasticsearch d) all of the above so I can insert that data into my local docker environment?
    w
    • 2
    • 4
  • e

    eager-beach-43647

    04/13/2021, 12:46 PM
    Hello everybody, I have some questions about Middleware. I am trying to export a XML file with the following structure:
    Copy code
    <?xml version="1.0" encoding="UTF-8"?> 
    <Feed>
        <Brands>
            <Brand>...</Brand>
            ...
        </Brands>
        <Categories>
            <Category>...</Category>
            ...
        </Categories>
        <Products>
            <Product>...</Product>
            ...
        </Products>
    </Feed>
    As you can see I have three different types of objects: Brand, Category and Product. Is it possible for a pipeline to have multiple read sources? I am trying to follow the Akeneo middleware on spryker-eco by using a PropelCriteriaReadStream to read the brand, category and product info from the database, however I am not sure how to use all three on one single pipeline.
  • i

    important-market-27247

    04/14/2021, 6:12 AM
    hello, I am adding sample product with image and variant and product is active but product is not searchable and i m unable to show frontend plz help
    c
    s
    • 3
    • 15
  • w

    wide-wolf-99519

    04/14/2021, 8:10 AM
    if I have multiple jobs processing oms/orders is it possible that one order is processed by multple times? I am experiencing weirdest state transitions and I am wondering what might be the cause of this
    w
    • 2
    • 8
  • c

    clean-glass-99425

    04/14/2021, 12:46 PM
    About https://github.com/spryker/company-role/blob/1.7.1/src/Spryker/Zed/CompanyRole/Persistence/Mapper/CompanyRoleCompanyUserMapper.php We have companies with many users. https://blackfire.io/profiles/d30d8669-c9fe-4e77-95d8-259f2b1dfc7a/graph As you can see in this case the hydration is called 48 times and we had around 100 test users. This resulted in three 2 x 4944 calls to
    fromArray()
    and
    toArray()
    as this transferObject ins converted. And 4944 other things that didn't have so much impact. And after that the whole data is loaded in the session and bloats the session beyond reasonable usage. So we decided to just do not load this Collection inside of
    Zed\CompanyRole\Persistence\CompanyRoleRepository::prepareCompanyRoleTransfer
    . We did this by inheritance which leaves a bad feeling if there are changes in any later version of spryker. By composition is not an option. Or we could rewrite a lot code paths in the system. So just load the User Collection on demand seemed to be the best option. Any ideas how this could be solved better? My best guess is that the core behaviour should be changed here. But maybe there is even a better solution we didn't guess?
    a
    m
    w
    • 4
    • 5
  • b

    billowy-eye-80487

    04/15/2021, 7:17 AM
    Hello, I need to find a category by its key. But the CategoryFacade::getCategoryByKey() is deprecated and no replacement is suggested. Why is this deprecated and what is the suggested replacement?
    w
    a
    • 3
    • 4
  • r

    rough-scientist-68683

    04/16/2021, 1:02 PM
    Hello guys, I wonder what's the easiest way to get an
    ItemTransfer
    from a
    SpySalesOrderItem
    . The
    fromArray / toArray
    solution doesn't seem to work since the ItemTransfer has many different properties. Or am I using the wrong transfer object for the SpySalesOrderItem?
    w
    a
    • 3
    • 11
  • a

    ancient-apartment-59274

    04/19/2021, 4:42 PM
    Hello again, does somebody know if there are other concepts than the product attributes in spryker to store product specific information? Technical product attributes are straight forward with this but what about editorial content that relates to a product but gets also imported (product specific texts, bullet points, etc.)? Are there any other capabilities here to persist this data related to a product or are these handled by spryker as just further attributes as well? The question raises because we are now at a point in the project were aggregating product information by using the data from external systems (PIM etc.) will get more and more complex (more than one description text per product, different sub-texts, information bubbles etc.) but in my opinion its not practical to represent this information extending the db schema, since its just displaying information and the incoming info may change fast. I know spryker has CMS capabilities but AFAIK they can not represent product specific information (or can they?). At the moment we are using attribute/value but it seems very limited since we can just commit to a key naming pattern to identify keys especially when there are collections of properties … Any ideas or experiences from other projects? Best regards
    d
    • 2
    • 3
  • e

    echoing-notebook-55206

    04/20/2021, 7:34 AM
    Hello people, can anyone tell me how I can provide a custom Storage KeyGeneratorPlugin for a module? I think I can write one, but I don't know where to "register" it.
    • 1
    • 1
  • d

    dazzling-yacht-89663

    04/20/2021, 8:30 AM
    Hello Everyone, is there a way to configure Spryker so that it adds the taxes to the net price based on the shipping country? Let's say I have got an article with a net price of 100€ if the customer shipping address is in Germany the gross price should be 119€ but if the shipping country is changes to e.g. Austria the gross price should be 120€. Thanks in advance!
  • r

    rhythmic-family-8648

    04/20/2021, 3:33 PM
    Hello everyone, I am trying to install Spryker using Docker on MacOS. I followed all the steps correctly given in the installation guide. However, when I try to start it, I am getting following error:
    Copy code
    /home/spryker/bin/cli.sh: line 17: /home/spryker/env/de.env: No such file or directory
    Can someone help me?
    i
    • 2
    • 2
  • r

    rhythmic-family-8648

    04/20/2021, 4:24 PM
    Hi all, I followed the steps to install using Docker on Macos, I am now getting following error:
    ERROR: Couldn't find env file: /opt/Work/Spryker/b2c-demo-shop/.env
    Can someone help, please?
    q
    m
    • 3
    • 8
  • m

    mysterious-king-59256

    04/21/2021, 7:39 AM
    Hello, Is there any option to use glossary translations in the TS? Now as far as I know we have to give every translated string to TS using attributes. This means, that every time we need "custom" solution and exact translations. Will be great if there would be a frontend (ts) scrript which for example reads all (marked) glossaries and work like glossary translator, but in the ts (eg
    Glossary.translate('my.custom.string', 'EN-us')
    d
    • 2
    • 1
  • w

    worried-chef-16639

    04/21/2021, 2:45 PM
    Product Image Set can have no locale. This https://github.com/spryker/product-relation-gui/blob/8ddfe786bb058c54359d3d486f11b[…]src/Spryker/Zed/ProductRelationGui/Presentation/View/index.twig condition then should be something like:
    (imageSet.locale IS NULL or imageSet.locale.idLocale == locale.idLocale)
    .
  • g

    great-cpu-16911

    04/21/2021, 5:04 PM
    Hi, everyone. Maybe is a tricky question, but: Wich is the better way to edit the code in some IDE? (Specific In PHPstorm) Because when I try open all the folder in phpstorm it just copied and it's not have been update.
  • q

    quick-exabyte-33910

    04/22/2021, 9:05 AM
    Hi everyone. What is the best and suggested way of overwriting the basic DataTables settings which are not included in TableConfig in ZED? For example I need to add lenghMenu
    $('#example').dataTable( {
      
    "lengthMenu": [ [10, 25, 50, -1], [10, 25, 50, "All"] ]
    } );
    and export buttons.
  • w

    wide-wolf-99519

    04/22/2021, 9:27 AM
    is there any piece of documentation on the topic of importing external orders, made in some other application, into oms?
    ➖ 1
  • l

    loud-rainbow-44827

    04/22/2021, 11:32 AM
    hello. question about frontend build. After updating spryker to 202009.0 i'm always getting this JS error
    [yves_default@error] application error -> Error: action-single-click-enforcer failed to be defined
    Failed to execute 'define' on 'CustomElementRegistry': the name "action-single-click-enforcer" has already been used with this registry
    I debugged a bit and found that bootstrap function here vendor/spryker-shop/shop-ui/src/SprykerShop/Yves/ShopUi/Theme/default/app/index.ts is calling twice from webpack module. As I see the build configuration was changed here frontend/configs/development.js to babel-loader. Maybe it is connected. Any ideas? thanks P.S. I'm using legacy mode
    d
    • 2
    • 3
  • h

    happy-addition-42792

    04/22/2021, 1:32 PM
    Hi everyone, we have some unexpected roundings in the cart/orders. What's the reason behind taking over the rounding delta from one calculation to another? https://github.com/spryker/tax/blob/master/src/Spryker/Zed/Tax/Business/Model/AccruedTaxCalculator.php#L46
    a
    • 2
    • 6
  • w

    wide-wolf-99519

    04/22/2021, 2:18 PM
    what could be the cause of (and solution for)
    Copy code
    "Propel\Runtime\Exception\PropelException: Cannot insert a value for auto-increment primary key (spy_sales_order_address.id_sales_order_address)"
    thrown while using SalesFacade saveSalesOrder?
1...363738...102Latest