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

    billowy-xylophone-80304

    10/28/2020, 7:50 PM
    I updated composer dependencies. Everything went fine, however, when trying to open a website, I receive the following error, why? (see the screenshot)
    p
    s
    +3
    • 6
    • 8
  • i

    icy-hydrogen-3905

    10/29/2020, 8:59 AM
    Hey guys, I am wondering if the B2B Suite has the opportunity to configure multilevel navigations with preview images like the B2C Suite. Here is what I would like to have (from B2C) and what I see in B2B
    d
    c
    • 3
    • 6
  • b

    billowy-xylophone-80304

    10/29/2020, 12:21 PM
    Another problem with a CMS page... After renaming the directory 'template' to 'templates', I've managed to create and publish a template-based page. The URL for the de_DE locale has been set to /de/unternehmen. Pressing the button "At the shop" redirects me to that URL, but it gives me a 404 Not Found error. The page template now contains just a characters sequence
    arst
    .
    s
    • 2
    • 5
  • b

    billowy-xylophone-80304

    10/29/2020, 12:30 PM
    Symfony toolbar gives an error 500 in Zed dashboard. After opening the URL in a new tab, I see that the URL differs from what we have in Yves: http://zed.de.oneal.local/cms-gui/edit-page/_wdt?token=5fb54a VS http://zed.de.oneal.local/_profiler/_wdt?token=5fb54a
    a
    h
    s
    • 4
    • 7
  • c

    careful-country-34175

    10/29/2020, 1:31 PM
    Hello all, is there any way to display all routes? I tried already the inviqa/spryker-debug-package, but the version of the spryker shop is outdated.
    m
    s
    • 3
    • 6
  • a

    acoustic-painter-45206

    10/29/2020, 4:33 PM
    Hello everyone! Yesterday, I've made the demo stand installation, and everything seemed to be OK, yet today I started to see the index issue each time I'm trying to access just any category:
    Copy code
    Search failed with the following reason: no such index [index: de_page]. Query: {"query":{"bool":{"must":[{"match_all":{}},{"match":{"type":"product_abstract"}},{"match":{"store":"DE"}},{"match":{"locale":"de_DE"}},{"match":{"is-active":true}},{"bool":{"should":[{"range":{"active-from":{"lte":"now"}}},{"bool":{"must_not":[{"exists":{"field":"active-from"}}]}}]}},{"bool":{"should":[{"range":{"active-to":{"gte":"now"}}},{"bool":{"must_not":[{"exists":{"field":"active-to"}}]}}]}}],"filter":[{"nested":{"query":{"term":{"integer-facet.facet-name":{"value":"price-DEFAULT-EUR-GROSS_MODE","boost":1}}},"path":"integer-facet"}},{"term":{"category.all-parents":...
    It looks like some process is missing in my setup, what kind of a process it is?
    a
    • 2
    • 1
  • r

    rough-scientist-68683

    10/30/2020, 9:26 AM
    Happy Friday everyone, I've got a question regarding GLUE Tests with fixtures like it's done here. My question is: Do you use a dedicated redis (or redis db) for the test data?
    a
    • 2
    • 1
  • a

    acoustic-painter-45206

    11/01/2020, 5:04 PM
    Hello everyone! Since Spryker is using some kind of a wrapper for propel cli, I'm confused on how could I run
    propel migration:down
    command?
    m
    • 2
    • 2
  • a

    acoustic-painter-45206

    11/02/2020, 2:37 PM
    Another question, our frontend developers experience: after running the
    npm run yves:watch
    , for some reason, all slots are stopping to render (which is generally makes page to become pretty much blank with only a few components on it). Restarting the docker container fixes the issue, still. How can we solve that, since it looks like restarting containers takes a lot of their time?
    q
    h
    +2
    • 5
    • 31
  • b

    billowy-xylophone-80304

    11/02/2020, 2:41 PM
    According to the documentation (https://documentation.spryker.com/docs/ht-create-cms-templates#template-with-slots), the third step to create a template with slots is import. Did I get it right that the only way to have a template with slots and title in the admin dashboard is to add it to a CSV file (cms_slot_template.csv) and then reimport templates?
  • c

    careful-country-34175

    11/02/2020, 3:12 PM
    Hello together, i am facing a problem with the ShoppingList in a MultiStore-Shop. The problem is, that every ShoppingList-Route throws an 404. I have already debugged a lot and found, that the
    ShoppingListPageControllerProvider
    is getting called correctly (it’s an old Spryker-Shop and it is getting called in the YvesBootstrap) and is added to the App-Dependencies. So it is getting registered in
    YvesControllerProvider
    as:
    controller.service.shopping-list-page.shopping-list-overview.index
    When calling it, is getting resolved in
    CallbackResolver
    as
    controller.service.shopping-list-page.shopping-list-overview.index
    . So that’s the same and you can see the registered service in the attached Screenshot (dd($this->app) in CallbackResolver::convertCallback()). The problem is, that the callback of that service returns
    error/404
    - and i have no clue, why. Is there any possibility to debug the callback of that service? I would expect that the return should be
    ShoppingListOverviewController
    .
  • a

    ancient-apartment-59274

    11/02/2020, 4:34 PM
    Hello everybody, does somebody know if its possible to have more than just a flat key->value structure for product attributes? Something like nested attributes? Background: Our concrete products consists (phyisically) of multiple items which are not sellable in spryker but necessary for determining a price. So we have to transmit them along the cart calculation or checkout to the ERP system. So in the end its just some kind of meta information, which normally would fit into something like product attributes. Is it somehow possible to reflect that using product attributes on the concrete product or is this a fully custom implementation? The added data has something like: part_id, quantity, description … so the amount of rows of the party will differ for each concrete product. Any other suggestions or experience? Best regards.
    m
    • 2
    • 9
  • a

    acoustic-painter-45206

    11/02/2020, 5:44 PM
    Hello everyone! I'm experiencing weird behaviour trying to run `vendor/bin/console searchsetupsources`:
    Copy code
    Elastica\Exception\ResponseException - Exception: analyzer [fulltext_search_analyzer] not found for field [full-text]
    in /data/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php (182)
    
    Command: vendor/bin/console search:setup:sources
    
    Trace:
    #0 /data/vendor/ruflin/elastica/lib/Elastica/Request.php(194): Elastica\Transport\Http->exec(Object(Elastica\Request), Array)
    #1 /data/vendor/ruflin/elastica/lib/Elastica/Client.php(689): Elastica\Request->send()
    #2 /data/vendor/ruflin/elastica/lib/Elastica/Client.php(721): Elastica\Client->request('de_page/_mappin...', 'PUT', Array, Array)
    The command runs smooth on one environment, and fails on another one, yet codebase is the same.
  • s

    sparse-fall-78248

    11/04/2020, 7:31 AM
    Hello everyone! We've just completed upgrading Spryker to the latest release (202009.0). Now I'm still getting these when I run `composer update`:
    Copy code
    Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
    Package guzzlehttp/ringphp is abandoned, you should avoid using it. No replacement was suggested.
    Package guzzlehttp/streams is abandoned, you should avoid using it. No replacement was suggested.
    Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
    Package sebastian/finder-facade is abandoned, you should avoid using it. No replacement was suggested.
    Package spryker/silex is abandoned, you should avoid using it. No replacement was suggested.
    Package spryker/zend is abandoned, you should avoid using it. No replacement was suggested.
    Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.
    Package flow/jsonpath is abandoned, you should avoid using it. Use softcreatr/jsonpath instead.
    Package zendframework/zend-config is abandoned, you should avoid using it. Use laminas/laminas-config instead.
    Package zendframework/zend-filter is abandoned, you should avoid using it. Use laminas/laminas-filter instead.
    Package zendframework/zend-servicemanager is abandoned, you should avoid using it. Use laminas/laminas-servicemanager instead.
    Package zendframework/zend-stdlib is abandoned, you should avoid using it. Use laminas/laminas-stdlib instead.
    Which of them can I remove or switch to the suggested dependency instead? Thanks for your help!
    t
    s
    • 3
    • 3
  • k

    kind-tomato-4671

    11/05/2020, 3:11 PM
    Hello! Is there an available list of design elements for spryker? Buttons, columns, rows, input fields
    q
    q
    • 3
    • 4
  • w

    wooden-dress-65386

    11/06/2020, 1:14 PM
    hey folks, short general question: On the docs page for the WebProfiler module[1], it says:
    Copy code
    composer require spryker/web-profiler --dev
    and:
    To be able to use Web Profiler, add `\Spryker\Zed\WebProfiler\Communication\Plugin\Application\WebProfilerApplicationPlugin`of the`spryker-shop/web-profiler-widget`module to
    \Pyz\Zed\Application\ApplicationDependencyProvider::getApplicationPlugins()
    .
    So, the package is being installed with
    --dev
    , but it should be added normally to the ApplicationPlugins... Now my question: Does this mean we always should deploy Spryker with
    composer install --dev
    also on production systems? Because else the getApplicationPlugins() will contain a fatal error (class not found). Sounds a bit strange to me. How would I solve this?
    p
    f
    • 3
    • 7
  • l

    little-secretary-81579

    11/06/2020, 3:24 PM
    Hi all, did anybody implement a deposit for certain products? I was thinking about abusing product options, however it would not be optional 😉 Glad about any thoughts on this topic.
    d
    • 2
    • 3
  • m

    mysterious-king-59256

    11/09/2020, 10:49 AM
    Hi all, We created our internal composer module (package) for spryker and now we have little problem with unit tests. One class which we need to test works on and creates transfer objects. As long as this module was just in Pyz namespace, there was no problem, because transfer objects are generated by spryker and visible. But now, when this package is separate one, we don't have access (or we can't do it) to transfer objects generator and tests are failing on "FooTransfer" doesn't exist". Mock won't work in this case, because transfer is created inside class logic. Do you know how can we generate transfers or what can we do to make tests work?
    q
    a
    • 3
    • 5
  • m

    modern-van-15222

    11/12/2020, 11:15 AM
    Hi all!, Is there any integration between spryker and algolia?
    b
    • 2
    • 1
  • w

    worried-chef-16639

    11/12/2020, 1:34 PM
    Hello, I have such case: I run
    vendor/bin/console event:trigger -r product_category_filter
    Event queue is populated with EventTransfers having
    id_product_category_filter
    as id (nothing more) Then when I consume the event queue the message goes to
    ProductCategoryFilterPublishStorageListener
    Here as you see it tries to collect categoryIds from the EventTransfers but they are not set by the event:trigger command. https://github.com/spryker/product-category-filter-storage/blob/master/src/Spryker/Zed/ProductCategoryFilterStorage/Communication/Plugin/Event/Listener/ProductCategoryFilterPublishStorageListener.php#L36 I had to override the
    ProductCategoryFilterPublishStorageListener::handleBulk
    method for it to work:
    Copy code
    public function handleBulk(array $eventTransfers, $eventName)
    {
        $this->preventTransaction();
    
        $categoryIds = $this->getFactory()->getEventBehaviorFacade()->getEventTransferForeignKeys($eventTransfers, SpyProductCategoryFilterTableMap::COL_FK_CATEGORY);
    
        if (empty($categoryIds)) {
            $eventTransferIds = $this->getFactory()->getEventBehaviorFacade()->getEventTransferIds($eventTransfers);
            $categoryIds = $this
                ->getQueryContainer()
                ->queryProductCategoryByCategoryFilterIds($eventTransferIds)
                ->select([SpyProductCategoryFilterTableMap::COL_FK_CATEGORY])
                ->find()
                ->getData();
        }
    
        $this->getFacade()->publish($categoryIds);
    }
    Am I missing something? It seems to be some problem within the
    event:trigger
    🧐
  • c

    careful-country-34175

    11/12/2020, 3:04 PM
    Hello together, is it possible to suppress spryker architecture-sniffer for one specific line (like e.g. for phpcs per comment)?
    q
    • 2
    • 5
  • a

    acoustic-musician-21045

    11/13/2020, 9:34 AM
    Hi together, is there any way to only copy over CMS-related over to another fresh system? We tried so with importing only selected spy_cms_* tables, but this breaks most of Zed functionality.
    m
    • 2
    • 1
  • c

    crooked-house-89121

    11/13/2020, 9:58 AM
    Hey together, I extended the agent functionality so that users can be searched by a id that we store in each BU. My problem is that the search is supposed to show all the users that match the search with their corresponding BUs and if you click on them it is supposed to impersonate the user in the specific BU. I’ve not read through all the code but as far as I can see at the moment you can only select customers. What would be a good way to implement this behavior?
    l
    • 2
    • 2
  • g

    glamorous-quill-49387

    11/16/2020, 9:17 AM
    is it possible to override package.json from a module inside vendor (let's say spryker-gui's package.json) The repo name for package pace changed and it is neccessairy in spryker/gui. You can see that https://git@github.com/hubspot/pace.git#c6846cbf6b928e9903b569269fa9fbf32f2554f4 redirects you. I was wondering if packagej.json was extendable and how?
    a
    l
    • 3
    • 17
  • a

    acoustic-painter-45206

    11/16/2020, 11:47 AM
    Hello! I'm trying to implement data publishing, however, it looks like Spryker generates incorrect SQL query for one of my entities: Schema:
    Copy code
    <table name="oneal_dealer_store_storage" phpName="DealerStoreStorage">
            <column name="id" type="integer" autoIncrement="true" primaryKey="true" />
            <column name="dealer_store_id" type="INTEGER" required="true"/>
            <behavior name="synchronization">
                <parameter name="resource" value="dealer_store"></parameter>
                <parameter name="key_suffix_column" value="dealer_store_id"></parameter>
                <parameter name="queue_group" value="sync.storage.dealer_stores"></parameter>
            </behavior>
            <behavior name="timestampable"/>
        </table>
    Code:
    Copy code
    $object = new DealerStoreStorage();
            $object->setDealerStoreId($store->getId());
            $object->setData($store);
            $object->save();
    So calling it fails like this:
    Copy code
    SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for ▶
    \n
    Executed query: \n
    INSERT INTO oneal_dealer_store_storage (id, dealer_store_id, data, key, created_at, updated_at) VALUES (:p0, :p1, :p2, :p3, :p4, :p5)
    It looks like I have an issue with column named 'key', since it's reserved in MySQL. So now I'm confused a little, what should I do about it? Another weird thing is that
    spy_product_abstract_group_storage
    table, to say, has column named key as well, but I still see some records in thre.
    • 1
    • 1
  • q

    quick-megabyte-3337

    11/16/2020, 12:14 PM
    Hello there 👋 I have a wonderful questions for wonderful Spryker experts. On my current project I've faced a little confusion. As you're already know when we are talking about total price calculation at checkout process we always working with
    TotalsTransfer
    .
    TotalsTransfer
    contains several price properties but I'm interesting in two of them. It's grandTotal and priceToPay. As I understand when we need to reduce or increase some price and show it on some summary page we always working with priceToPay. But I was surprised when found out that we don't save priceToPay property into database by default. So my questions: 1. What a difference between grandTotal and priceToPay? 2. Why we don't save priceToPay? 3. Should I provide additional recalculation of existing order prices if I need to show for customer priceToPay at customer order history page ?
    l
    • 2
    • 2
  • b

    billions-knife-68708

    11/16/2020, 2:14 PM
    Hey guys, did you encounter any errors while trying to install the b2c shop using vagrant? I have this error that I can’t get past:
    a
    • 2
    • 13
  • a

    ancient-apartment-59274

    11/17/2020, 8:44 AM
    Hello, we experienced an issue today that might concern us in the future. Our customer has abstract products that get drilled down to a concrete product using many super attributes. Today we had 9 in sum, with two options each … which is not that much in my opinion. However, with 8 attributes we had no problems before, but today with 9 we got a memory allocation issue in the AttributePermutationGenerator while generating the attribute permutations for the product detail page. The limit of 1024MB was exceeded. So, yes, this one case is solvable increasing the memory limit. But I am worry about further limitations since it’s very likely that we get additional attributes. Also, this permutation generation stuff seems not to progress linear because the problem at all is not a linear problem. The memory consumption will explode at a specific point. So my question here: What are the limitations? Any experiences from other projects handling many super attributes? Best
    d
    p
    +5
    • 8
    • 40
  • e

    echoing-notebook-55206

    11/17/2020, 3:17 PM
    Hey folks! I have a problem with my Spryker installation. I just bootstrapped and booted a new docker installation on my Macbook. It seems the messages in my RabbitMQ event queue are not being processed. Jenkins jobs are progressing as normal, but don't seem to work on any messages. After a docker/sdk reset, I have over 14,000 messages in the queue. Any idea what I can do to fix this?
    p
    • 2
    • 2
  • g

    glamorous-finland-91316

    11/17/2020, 9:02 PM
    Hi there, I have problem with a middleware ValidationRuleSet
    Copy code
    /**
     * @return array
     */
    protected function getRules(): array
    {
        return [
            'meta_info.errcode' => [
                ['EqualTo', 'options' => ['value' => AgErpConstants::AG_ERP_NO_ERROR]],
            ],
            'meta_info.aes' => [
                ['InList', 'options' => ['values' => [AgErpConstants::AG_ERP_AES_STATUS_NEW, AgErpConstants::AG_ERP_AES_STATUS_UPDATE]]],
            ],
            'konto' => 'NotBlank',
            'address' => ['Type', 'options' => ['type' => 'array']],
        ];
    }
    the TypeValidator for "address" complains (throws an exception) that no required options are provided. I am using
    'options' => ['type' => 'array']
    What I want to do is to check if
    address
    is of type
    array
    Would appreciate your help.
    p
    • 2
    • 2
1...272829...102Latest