bright-rainbow-76614
07/25/2023, 7:57 AM@include helper-import(molecule, password-complexity-indicator) {
@include shop-ui-password-complexity-indicator;
}
I have checked that if I remove this helper-import and replace it with the styles, it overrides the styles like expected. I've seen this pattern in other components and I have the same behaviour. What would be the best way to override this components without removing the helper-import? And what is the reason to use this pattern in this components instead of just using the component's mixin without the helper-import?wooden-needle-52499
07/25/2023, 2:47 PMDependencyProvider
(AbstractBundleDependencyProvider
, AbstractDependencyProvider
) and their methods such as setGlobal
in one module or using configure()
to set it to global like proposed here https://docs.spryker.com/docs/scos/dev/back-end-development/factory/inject-dependencies-within-factories-container-globals.html. Unfortunately, this didn't help. When adding logs I see that the code tries to access the provided dependency before it is being added. Any ideas what else I can try?swift-plastic-31133
07/26/2023, 6:05 AMfresh-tent-43300
07/26/2023, 9:35 PMdamp-traffic-95195
07/27/2023, 6:16 AMgreat-byte-99546
07/27/2023, 7:56 AMhallowed-eye-69242
07/27/2023, 12:41 PMpermissions
. So, in my b2b shop
customers can add to cart even when they are not logged.
Now I'm adding the quick-order
functionality, but when I'm trying to add to cart a have a message This action is forbidden
.
While investigating, I found that we use AddCartItemPermissionPlugin
for this purposes (\SprykerShop\Yves\QuickOrderPage\Controller\QuickOrderController::executeAddToCartAction
).
I have this plugin registered in Zed.PermissionDependencyProvider
and Client.PermissionDependencyProvider
.
Also, I found another plugin SeeOrderPlaceSubmitPermissionPlugin
. I don't understand the difference between these two plugins, but in the \Spryker\Client\CustomerAccessPermission\CustomerAccessPermissionConfig::CONTENT_TYPE_PERMISSION_PLUGIN
we use it in line 50: self::_CONTENT_TYPE_ADD_TO_CART_ => SeeAddToCartPermissionPlugin::_KEY_,
If I replace it with AddCartItemPermissionPlugin
I can perform add-to-cart operation in quick-order
, but can't do it in catalog.
Also I found that if I change the AddCartItemPermissionPlugin::KEY
to SeeAddToCartPermissionPlugin
- it works fine. But, probably, it's bad solution.
So, what I'm doing wrong? How can I add permission for not-logged customers to add products to the cart on the quick-order
page?bright-architect-19696
07/27/2023, 1:06 PM#0 /data/vendor/spryker/product-bundle/src/Spryker/Zed/ProductBundle/Business/ProductBundleFacade.php(43): Spryker\Zed\ProductBundle\Business\ProductBundle\Cart\ProductBundleCartExpander->expandBundleItems(Object(Generated\Shared\Transfer\CartChangeTransfer))
#1 /data/vendor/spryker/product-bundle/src/Spryker/Zed/ProductBundle/Communication/Plugin/Cart/ExpandBundleItemsPlugin.php(33): Spryker\Zed\ProductBundle\Business\ProductBundleFacade->expandBundleItems(Object(Generated\Shared\Transfer\CartChangeTransfer))
#2 /data/vendor/spryker/cart/src/Spryker/Zed/Cart/Business/Model/Operation.php(557): Spryker\Zed\ProductBundle\Communication\Plugin\Cart\ExpandBundleItemsPlugin->expandItems(Object(Generated\Shared\Transfer\CartChangeTransfer))
#3 /data/src/Pyz/Zed/Cart/Business/Model/Operation.php(52): Spryker\Zed\Cart\Business\Model\Operation->expandChangedItems(Object(Generated\Shared\Transfer\CartChangeTransfer))
#4 /data/vendor/spryker/cart/src/Spryker/Zed/Cart/Business/CartFacade.php(60): Pyz\Zed\Cart\Business\Model\Operation->addToCart(Object(Generated\Shared\Transfer\CartChangeTransfer))
#5 /data/vendor/spryker/persistent-cart/src/Spryker/Zed/PersistentCart/Dependency/Facade/PersistentCartToCartFacadeBridge.php(46): Spryker\Zed\Cart\Business\CartFacade->addToCart(Object(Generated\Shared\Transfer\CartChangeTransfer))
#6 /data/vendor/spryker/persistent-cart/src/Spryker/Zed/PersistentCart/Business/Model/QuoteItemOperation.php(92): Spryker\Zed\PersistentCart\Dependency\Facade\PersistentCartToCartFacadeBridge->addToCart(Object(Generated\Shared\Transfer\CartChangeTransfer))
#7 /data/vendor/spryker/persistent-cart/src/Spryker/Zed/PersistentCart/Business/Model/CartOperation.php(90): Spryker\Zed\PersistentCart\Business\Model\QuoteItemOperation->addItems(Array, Object(Generated\Shared\Transfer\QuoteTransfer))
#8 /data/vendor/spryker/persistent-cart/src/Spryker/Zed/PersistentCart/Business/PersistentCartFacade.php(36): Spryker\Zed\PersistentCart\Business\Model\CartOperation->add(Object(Generated\Shared\Transfer\PersistentCartChangeTransfer))
#9 /data/vendor/spryker/persistent-cart/src/Spryker/Zed/PersistentCart/Communication/Controller/GatewayController.php(32): Spryker\Zed\PersistentCart\Business\PersistentCartFacade->add(Object(Generated\Shared\Transfer\PersistentCartChangeTransfer))
#10 /data/vendor/spryker/zed-request/src/Spryker/Zed/ZedRequest/Communication/Plugin/GatewayControllerListenerPlugin.php(61): Spryker\Zed\PersistentCart\Communication\Controller\GatewayController->addItemAction(Object(Generated\Shared\Transfer\PersistentCartChangeTransfer), Object(Spryker\Zed\ZedRequest\Business\Client\Request))
#11 /data/vendor/symfony/http-kernel/HttpKernel.php(163): Spryker\Zed\ZedRequest\Communication\Plugin\GatewayControllerListenerPlugin->Spryker\Zed\ZedRequest\Communication\Plugin\{closure}()
freezing-guitar-75665
07/27/2023, 4:41 PMancient-apartment-59274
07/28/2023, 9:59 AMclean-sundown-47111
07/28/2023, 10:03 AMstale-battery-68732
07/28/2023, 11:40 AMaloof-australia-98953
07/28/2023, 3:11 PMacoustic-terabyte-93857
07/29/2023, 12:50 PMdocker/sdk console twig:cache:warmer
. It raise error Template "@HomePage/views/home/home.twig" is not defined.
Any suggest for this issue ?damp-traffic-95195
07/31/2023, 3:22 AMthankful-dog-19953
07/31/2023, 7:43 AMbland-yacht-60252
07/31/2023, 8:11 AMthankful-dog-19953
07/31/2023, 8:17 AMstale-battery-68732
07/31/2023, 11:55 AMbland-yacht-60252
07/31/2023, 12:07 PMbland-yacht-60252
07/31/2023, 12:07 PMbland-yacht-60252
07/31/2023, 12:07 PMbland-yacht-60252
07/31/2023, 12:08 PMbland-yacht-60252
07/31/2023, 12:08 PMbright-architect-19696
07/31/2023, 2:11 PMbrash-umbrella-65522
08/01/2023, 3:14 AMnumerous-crowd-1561
08/01/2023, 6:54 AMblue-carpenter-85560
08/01/2023, 9:58 AMancient-apartment-59274
08/01/2023, 2:04 PMrich-guitar-29888
08/02/2023, 9:09 AM