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

    cool-truck-47629

    05/14/2021, 8:41 AM
    Hello everyone. Short question regarding composer. We noticed in our 
    composer.lock
      that 
    notification-url
      changed from 
    <https://packagist.org/downloads/>
      to 
    <https://code.foo.com/repo/private/downloads/>
     for some spryker packages. I know that in your repository you can define a url which will be called every time someone installs it, but there is no mention of this 
    <http://code.foo.com|code.foo.com>...
      anywhere. Did anyone else notice this? Do you know where it is coming from and why it changed?
    🤔 1
    s
    • 2
    • 4
  • l

    loud-rainbow-44827

    05/17/2021, 8:28 AM
    Hello guys. Question about themes. Is it possible to have different themes for different stores in spryker? In the docs I found only this https://documentation.spryker.com/docs/multi-theme-feature-overview. How can I specify the current theme for certain store? And what will be the folder structure? For exmaple now I have the folder structure like on the screenshot. Does it mean that I can create another folder under Theme folder with name newTheme for example and use it for new theme? And if yes - do I need to copy all components inside the new theme (with templates, css, js) or I can copy just css files, add additional styles and that it will be enough? Spryker version is 202009.0. Thanks.
    d
    • 2
    • 9
  • s

    strong-appointment-20631

    05/17/2021, 10:25 AM
    Hi, I have an issue with the agent function on an older release. The agent users can access to all customers even if I have assigned them to a specific agent user. Do you have any idea about fixing?
  • p

    plain-iron-29049

    05/17/2021, 12:07 PM
    Hi, Hope all is well. May I know the command to run XDebugger from CLI. I am trying to debug some class by running docker/sdk console dataimportstore command. Thanks in advance. Best regards, Vivek
    a
    p
    • 3
    • 4
  • f

    flat-plastic-27181

    05/17/2021, 12:34 PM
    Hi guys... I've got installed Spryker few months ago. It works well. But today I've trying to start it over with
    docker/sdk up --build --assets --data
    but get this error... It's looks like composer issue... What can I do?
    f
    • 2
    • 7
  • f

    fresh-tent-43300

    05/17/2021, 2:01 PM
    Hi @ll, we have an issue with the cart. With enough products in cart (needs to be 14 different abstracts), we are facing an error "Price in selected currency not found for product with sku '%sku%'. Please change the currency or remove product from order." I dont get the reason for the error, neither I can find the code which is using the specified glossary key
    cart.pre.check.price.failed
    . With removing
    data.isQuoteValid
    from twig at least the cart can be checked out. But the error message ofc still appear. Any idea?
    a
    m
    • 3
    • 15
  • p

    plain-iron-29049

    05/18/2021, 8:43 AM
    Hi All, Does Spryker admin dashboard supports localisation ? Currently if I login into http://zed.de.spryker.local/ although the store is DE but all labels are in English. Do we have OOTB capability to show these labels in German/Spanish etc language on Spryker admin dashboard. Best regards, Vivek
    g
    p
    a
    • 4
    • 10
  • p

    plain-iron-29049

    05/18/2021, 8:49 AM
    Hi All, I am trying to add a new store UK which will share the database with DE store. I have followed the Spryker documentation https://documentation.spryker.com/docs/multiple-stores. As per the documentation I have added the below code snippet inside store.php (complete store.php attached).
    Copy code
    $stores['UK'] = [
            'contexts' => [
                // shared settings for all contexts
                '*' => [
                    'timezone' => 'Europe/London',
                    'dateFormat' => [
                        // short date (01.02.12)
                        'short' => 'd/m/Y',
                        // medium Date (01. Feb 2012)
                        'medium' => 'd. M Y',
                        // date formatted as described in RFC 2822
                        'rfc' => 'r',
                        'datetime' => 'Y-m-d H:i:s',
                    ],
                ],
                // settings for contexts (overwrite shared)
                'yves' => [],
                'zed' => [
                    'dateFormat' => [
                        // short date (2012-12-28)
                        'short' => 'Y-m-d',
                    ],
                ],
            ],
            'locales' => [
                // first entry is default
                'en' => 'en_GB',
                'de' => 'de_DE',
            ],
            // first entry is default
            'countries' => ['GB'],
            // internal and shop
            'currencyIsoCode' => 'GBP',
            'currencyIsoCodes' => ['GBP', 'EUR'],
            'storesWithSharedPersistence' => ['DE'],
        ] + $stores['DE'];
    I have added config_default-development_UK.php file. I want to access the store with different domain name (http://yves.uk.spryker.local/en) hence I have added new entries inside deploy.dev.yml (refer to the attachment). After making the configuration changes I ran docker/sdk bootstrap deploy.dev.yml and docker/sdk up command. When I try to access http://yves.uk.spryker.local/en I am getting the below error:
    Copy code
    Fatal error: Uncaught Spryker\Shared\Kernel\CodeBucket\Exception\InvalidCodeBucketException: CodeBucket "UK" is not a valid option! in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php:47 Stack trace: #0 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php(27): Spryker\Shared\Kernel\CodeBucket\Config\AbstractCodeBucketConfig->assertCodeBucket('UK') #1 /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/CodeBucketConfig.php(40): Spryker\Shared\Kernel\CodeBucket\Config\AbstractCodeBucketConfig->getCurrentCodeBucket() #2 /data/vendor/spryker/config/src/Spryker/Shared/Config/Application/Environment.php(93): Spryker\Shared\Kernel\CodeBucket\Config\CodeBucketConfig->getCurrentCodeBucket() #3 /data/vendor/spryker/config/src/Spryker/Shared/Config/Application/Environment.php(25): Spryker\Shared\Config\Application\Environment::defineCodeBucket() #4 /data/public/Zed/index.php(14): Spryker\Shared\Config\Application\E in /data/vendor/spryker/kernel/src/Spryker/Shared/Kernel/CodeBucket/Config/AbstractCodeBucketConfig.php on line 47
    I am not sure what else I need to do to make it work. Any pointers and help will be highly appreciated . Best regards, Vivek
    stores.phpdeploy.dev.yml
    r
    • 2
    • 2
  • w

    wide-wolf-99519

    05/18/2021, 12:11 PM
    is there some nice way to debug OMS (except transition log?) Ive got this process, where orders cannot progress past a certain condition, and I was so desperate I simply changed that condition to read
    Copy code
    public function check(SpySalesOrderItem $item)
    {
      return true;
    }
    and orders are still stuck somehow o.O, halp
    a
    p
    h
    • 4
    • 8
  • r

    rough-scientist-68683

    05/18/2021, 1:51 PM
    Hello community, is it possible to add multiple outputstreams to a middleware? Use case: Create a product feed and upload it via API to a service and create a csv file with exactly the same contents to upload that file to another service.
  • m

    mammoth-autumn-37948

    05/18/2021, 3:06 PM
    Hi Guys, anyone know why with the last spryker/symfony release some library has been blocked with ^5.2.8 and not more ^5.0.0? -> https://github.com/spryker/symfony/releases/tag/3.7.0 If I run composer update then some library will be downgraded
    Copy code
    - Upgrading spryker/symfony (3.6.0 => 3.7.0)
      - Downgrading symfony/security-core (v5.2.8 => v4.4.23)
      - Downgrading symfony/security-guard (v5.2.8 => v4.4.23)
      - Downgrading symfony/security-http (v5.1.11 => v4.4.22)
    @fresh-horse-77069 maybe u can say here why this commit?
    w
    f
    • 3
    • 5
  • g

    great-cpu-16911

    05/18/2021, 4:16 PM
    Hi everyone, i have a problem when i create a cms page always receive 404. What is wrong? In this moment I try with "docker/sdk trouble && rm -rf vendor && rm -rf src/Generated && docker/sdk sync && docker/sdk up" 🤔
    • 1
    • 1
  • p

    plain-iron-29049

    05/18/2021, 4:56 PM
    Hi All, Due to my company policy I am not allowed to install docker and run Spryker on it. My IT Desktop team is trying to find a solution. Is there any way to install Spryker without docker either on Mac or Window ? Best regards, Vivek
    a
    h
    • 3
    • 3
  • m

    microscopic-spoon-7123

    05/19/2021, 2:13 PM
    Hi! Where should be generated this class?
    Copy code
    Orm\Zed\Antelope\Persistence\PyzAntelopeQuery
    I went through all the steps in DataImport study but this class is not created
    a
    q
    h
    • 4
    • 31
  • h

    happy-addition-42792

    05/19/2021, 3:15 PM
    How to edit the meta data for the home page? On the root category we can't save because the UI complains we didn't select a parent.
  • a

    astonishing-lamp-41374

    05/19/2021, 5:52 PM
    Hello -> state machine/OMS It sound like using reserved and other elements in state can effect perfomance: https://documentation.spryker.com/docs/order-process-modelling-state-machines#general-performance-recommendations So what are they for?
    reserved
    is a flag used in the system somehow ?
    display
    is sounds like is for yves?
    <state name="exmaple" reserved="true" display="oms.state.example"/>
    a
    m
    • 3
    • 3
  • m

    mammoth-painting-63509

    05/20/2021, 6:26 AM
    Hello there, we're running
    oms:check-condition
    every minute, but we have some Conditions, that we don't want to check every minute, like if an invoice was paid, since this can take a few days and fills the database with a lot of log messages. Is it somehow possible to check certain conditions only say every hour or once a day?
    p
    • 2
    • 12
  • n

    nutritious-angle-64267

    05/20/2021, 8:32 AM
    Hello All, getting this error while installing a spryker project in my system i have tried to update the composer also but there also i am getting an error. Do anyone have something for this ? Thanks.
    s
    s
    • 3
    • 3
  • s

    salmon-gold-17445

    05/20/2021, 10:06 AM
    Hello, im using Windows with the Vagrant Demoshop with PHPStorm. I want to debug some plugin within a Module (Screenshot 1), but it doesnt seem to reach my breakpoint that i've set. When i reload the page with debug enabled i get this result (Screenshot 2). Anyone got an idea, how to reach my breakpoint within xdebug? Greetings Leon
    s
    • 2
    • 2
  • a

    astonishing-lamp-41374

    05/20/2021, 9:04 PM
    Hey when you are setting up an email trigger in the oms, what are you looking for as a marker that your email plugin was successful? is the system configured to catch emails in a log somewhere or will the email actually go out? In my OMS state machine I’m triggering a command:
    $commandCollection->add(new SendOrderConfirmationCommandPlugin(), 'Oms/SendOrderConfirmation');
    which eventually gets around to this custom mail plugin
    Copy code
    <?php
    
    namespace Pyz\Zed\Oms\Communication\Plugin\Mail;
    
    use Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface;
    use Spryker\Zed\Oms\Communication\Plugin\Mail\OrderConfirmationMailTypePlugin as SprykerOrderConfirmationMailTypePlugin;
    
    class OrderConfirmationMailTypePlugin extends SprykerOrderConfirmationMailTypePlugin
    {
        public const MAIL_TYPE = 'Confirmation mail';
    
        /**
         * {@inheritDoc}
         *
         * @api
         *
         * @return string
         */
        public function getName()
        {
            return static::MAIL_TYPE;
        }
    
        /**
         * @api
         *
         * @param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder
         *
         * @return void
         */
        public function build(MailBuilderInterface $mailBuilder)
        {
            $this
                ->setSubject($mailBuilder)
                ->setHtmlTemplate($mailBuilder)
                ->setTextTemplate($mailBuilder)
                ->setRecipient($mailBuilder)
                ->setSender($mailBuilder);
        }
    
        /**
         * @param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder
         *
         * @return $this
         */
        protected function setSubject(MailBuilderInterface $mailBuilder)
        {
            $mailBuilder->setSubject('mail.confirmation.subject');
    
            return $this;
        }
    
        /**
         * @param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder
         *
         * @return $this
         */
        protected function setHtmlTemplate(MailBuilderInterface $mailBuilder)
        {
            $mailBuilder->setHtmlTemplate('oms/mail/order_confirmation.html.twig');
    
            return $this;
        }
    
        /**
         * @param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder
         *
         * @return $this
         */
        protected function setTextTemplate(MailBuilderInterface $mailBuilder)
        {
            $mailBuilder->setTextTemplate('oms/mail/order_confirmation.text.twig');
    
            return $this;
        }
    
        /**
         * @param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder
         *
         * @return $this
         */
        protected function setRecipient(MailBuilderInterface $mailBuilder)
        {
            $orderTransfer = $mailBuilder->getMailTransfer()->requireOrder()->getOrder();
    
            $mailBuilder->addRecipient(
                $orderTransfer->getEmail(),
                $orderTransfer->getFirstName() . ' ' . $orderTransfer->getLastName()
            );
    
            return $this;
        }
    
        /**
         * @param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder
         *
         * @return $this
         */
        protected function setSender(MailBuilderInterface $mailBuilder)
        {
            $mailBuilder->useDefaultSender();
    
            return $this;
        }
    
    }
    I’m past the point where I’m getting any errors, so where should I be looking?
    a
    a
    p
    • 4
    • 4
  • a

    average-continent-3379

    05/21/2021, 1:01 PM
    Hi all, a colleague of mine is having a really weird issue and I'm running out of ideas. He's set up his local shop and everything seemed to have run well, but apparently the shop can't get the environmental variables. Inside his VM, when he just does printenv from the console, the output is exactly as it should be, all the environmental variables are there, as they should be. But when he actually fires up the shop and checks the variable values in his config, e.g. in config_default_DE.php, the getenv('VM_PROJECT') command comes up empty. Even though, as mentioned above, when we check from the console, the value (with the same key) is clearly set and it's there. Any ideas to what could cause this and how it may be fixed? I'm suspecting some PHP config issue, but the strange thing is that he followed the same steps that I did too when I set up my shop and I didn't run into any such issues, so I don't really see what or how could have gone awry in his case.
    🤷 1
    p
    h
    • 3
    • 3
  • m

    mysterious-king-59256

    05/24/2021, 11:10 AM
    Hi, Is there any chance to display completly different product detail page for the specific product in Spryker? In catalog page I can select template. Do you know if there is similar feature, or for example product types for detail page?
    b
    • 2
    • 1
  • g

    glamorous-finland-91316

    05/24/2021, 4:12 PM
    Is it possible to also configure and trigger the Xdebug Function Trace or Xdebug Profiler on our development setup? In 
    vendor/spryker/zed-request/src/Spryker/Shared/ZedRequest/Client/AbstractHttpClient.php
     there is a constant defined
    Copy code
    protected const DEFAULT_XDEBUG_PROFILER_NAME = 'XDEBUG_PROFILE';
    Can you show an example how to use it? regards, Alexander
    m
    • 2
    • 1
  • g

    glamorous-finland-91316

    05/24/2021, 4:14 PM
    I would need to access the local yves through a public domain. For example when integrating a payment provider and we have to configure a webhook. I tried with ngrok, but always get a 502 Bad Gateway response.

    https://sprykercommunity.slack.com/files/U019D1B44E8/F022HR9SGSY/bildschirmfoto_2021-05-19_um_06.28.08.png▾

  • c

    crooked-book-59650

    05/25/2021, 11:17 AM
    Can Spryker have module to integrate with OKTA?
  • w

    wide-wolf-99519

    05/25/2021, 1:25 PM
    hello, I am getting following error when trying to display state machine graph
    Copy code
    Argument 2 passed to phpDocumentor\GraphViz\Edge::__construct() must be an instance of phpDocumentor\GraphViz\Node, null given, called in /data/shop/development/current/vendor/spryker/graph/src/Spryker/Shared/Graph/Adapter/PhpDocumentorGraphAdapter.php on line 95
    any Idea what's causing this and how to fix that? is seems that there is transition from a state in one subprocess to a state in another subprocess and the second one cannot be found for some reason (but it's there)
    g
    • 2
    • 2
  • s

    silly-rose-85977

    05/26/2021, 2:24 PM
    Hello all, I am currently trying to make a CMS Page only available to logged in users. A working solution of mine was to do something like this in a new CMS Template:
    Copy code
    {% if app.session.get('customer data') %}
      <p>Show Stuff</p>
    {% endif %}
    It works, but I feel like that is not the proper way to do it. How would one do it properly though? Thanks in advance!
    a
    • 2
    • 4
  • q

    quaint-midnight-78937

    05/26/2021, 4:18 PM
    Hi there! I am facing an issue after updating some modules related to the merchant portal, but most notably the package
    zed-ui:0.4.1
    . However, this - somehow - implicitly updated
    symfony-security-core
    from
    4.4.24
    to
    5.2.6
    as well. This leads now to the following error on Zed:
    ErrorException - FATAL ERROR - Declaration of Spryker\Zed\SecurityOauthUser\Communication\Plugin\Security\Provider\OauthUserProvider::loadUserByUsername(string $username) must be compatible with Symfony\Component\Security\Core\User\UserProviderInterface::loadUserByUsername($username)
    which is really strange, because PhpStorm indicates me that those two classes still have the same signature and the relationship is recognized. Has anybody an idea what went wrong here?
    a
    • 2
    • 8
  • a

    astonishing-lamp-41374

    05/26/2021, 10:54 PM
    Hey y’all triggering an email/notification send in my OMS state tree, it’s sending an email but it looks like it’s not wired up correctly to the CMS to run the template. I’m using the standard spryker OMS confirmation. but maybe it’s not keyed correctly? The type is being set to
    $mailTransfer->setType(OrderConfirmationMailTypePlugin::MAIL_TYPE);
    which I think is overriding the base spryker class
    Copy code
    class OrderConfirmationMailTypePlugin extends SprykerOrderConfirmationMailTypePlugin
    {
        /**
         * @api
         *
         * @param \Spryker\Zed\Mail\Business\Model\Mail\Builder\MailBuilderInterface $mailBuilder
         *
         * @return void
         */
        public function build(MailBuilderInterface $mailBuilder)
        {
            $this
                ->setSubject($mailBuilder)
                ->setRecipient($mailBuilder)
                ->setSender($mailBuilder);
    setHtmlTemplate doesn’t exist in the extended class, but… in the base spryker class it looks like the template is getting set
    Copy code
    protected function setHtmlTemplate(MailBuilderInterface $mailBuilder)
        {
            $mailBuilder->setHtmlTemplate('oms/mail/order_confirmation.html.twig');
    
            return $this;
        }
    which should be referenced to the local order_confirmation html:
    src/Pyz/Zed/Oms/Presentation/Mail/order_confirmation.html.twig
    Which is the same as the base html template https://github.com/spryker-shop/b2c-demo-shop/blob/master/src/Pyz/Zed/Oms/Presentation/Mail/order_confirmation.html.twig
    • 1
    • 2
  • f

    full-rocket-52349

    05/27/2021, 7:26 AM
    Hi all, have any of you ever had the case and wanted to create a URL for a concrete product? If so, do you have any tips for me on how best to start? The background is that we need to find a way to call up a concrete product directly. So that we can, for example, call up the selected variant directly from the cart.
    p
    • 2
    • 2
1...383940...102Latest