cool-truck-47629
05/14/2021, 8:41 AMcomposer.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?loud-rainbow-44827
05/17/2021, 8:28 AMstrong-appointment-20631
05/17/2021, 10:25 AMplain-iron-29049
05/17/2021, 12:07 PMflat-plastic-27181
05/17/2021, 12:34 PMdocker/sdk up --build --assets --data
but get this error... It's looks like composer issue... What can I do?fresh-tent-43300
05/17/2021, 2:01 PMcart.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?plain-iron-29049
05/18/2021, 8:43 AMplain-iron-29049
05/18/2021, 8:49 AM$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:
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,
Vivekwide-wolf-99519
05/18/2021, 12:11 PMpublic function check(SpySalesOrderItem $item)
{
return true;
}
and orders are still stuck somehow o.O, halprough-scientist-68683
05/18/2021, 1:51 PMmammoth-autumn-37948
05/18/2021, 3:06 PM- 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?great-cpu-16911
05/18/2021, 4:16 PMplain-iron-29049
05/18/2021, 4:56 PMmicroscopic-spoon-7123
05/19/2021, 2:13 PMOrm\Zed\Antelope\Persistence\PyzAntelopeQuery
I went through all the steps in DataImport study but this class is not createdhappy-addition-42792
05/19/2021, 3:15 PMastonishing-lamp-41374
05/19/2021, 5:52 PMreserved
is a flag used in the system somehow ?
display
is sounds like is for yves?
<state name="exmaple" reserved="true" display="oms.state.example"/>
mammoth-painting-63509
05/20/2021, 6:26 AMoms: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?nutritious-angle-64267
05/20/2021, 8:32 AMsalmon-gold-17445
05/20/2021, 10:06 AMastonishing-lamp-41374
05/20/2021, 9:04 PM$commandCollection->add(new SendOrderConfirmationCommandPlugin(), 'Oms/SendOrderConfirmation');
which eventually gets around to this custom mail plugin
<?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?average-continent-3379
05/21/2021, 1:01 PMmysterious-king-59256
05/24/2021, 11:10 AMglamorous-finland-91316
05/24/2021, 4:12 PMvendor/spryker/zed-request/src/Spryker/Shared/ZedRequest/Client/AbstractHttpClient.php
there is a constant defined
protected const DEFAULT_XDEBUG_PROFILER_NAME = 'XDEBUG_PROFILE';
Can you show an example how to use it?
regards,
Alexanderglamorous-finland-91316
05/24/2021, 4:14 PMhttps://sprykercommunity.slack.com/files/U019D1B44E8/F022HR9SGSY/bildschirmfoto_2021-05-19_um_06.28.08.png▾
crooked-book-59650
05/25/2021, 11:17 AMwide-wolf-99519
05/25/2021, 1:25 PMArgument 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)silly-rose-85977
05/26/2021, 2:24 PM{% 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!quaint-midnight-78937
05/26/2021, 4:18 PMzed-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?astonishing-lamp-41374
05/26/2021, 10:54 PM$mailTransfer->setType(OrderConfirmationMailTypePlugin::MAIL_TYPE);
which I think is overriding the base spryker class
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
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.twigfull-rocket-52349
05/27/2021, 7:26 AM