Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CC-13685: Updated product quantity and total in Mini Cart Widget from catalog AJAX add-to-cart action. #412

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 26 additions & 28 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Pyz/Yves/CartPage/CartPageConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ class CartPageConfig extends SprykerCartPageConfig
* @var bool
*/
protected const IS_LOADING_UPSELLING_PRODUCTS_VIA_AJAX_ENABLED = true;

/**
* @var string
*/
protected const CART_BLOCK_MINI_CART_VIEW_TEMPLATE_PATH = '@ShopUi/components/organisms/navigation-top-async/navigation-top-async.twig';
}
43 changes: 1 addition & 42 deletions src/Pyz/Yves/CartPage/CartPageDependencyProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@

namespace Pyz\Yves\CartPage;

use Pyz\Yves\CartPage\Plugin\Cart\CartBlockMiniCartViewExpanderPlugin;
use Spryker\Yves\Kernel\Container;
use SprykerShop\Yves\CartPage\CartPageDependencyProvider as SprykerCartPageDependencyProvider;
use SprykerShop\Yves\CartPage\Plugin\CartPage\CartBlockMiniCartViewExpanderPlugin;
use SprykerShop\Yves\DiscountPromotionWidget\Plugin\CartPage\DiscountPromotionAddToCartFormWidgetParameterExpanderPlugin;
use SprykerShop\Yves\MerchantProductOfferWidget\Plugin\CartPage\MerchantProductOfferPreAddToCartPlugin;
use SprykerShop\Yves\MerchantProductWidget\Plugin\CartPage\MerchantProductPreAddToCartPlugin;
Expand All @@ -18,46 +17,6 @@

class CartPageDependencyProvider extends SprykerCartPageDependencyProvider
{
/**
* @var string
*/
public const TWIG_ENVIRONMENT = 'TWIG_ENVIRONMENT';

/**
* @uses \Spryker\Yves\Twig\Plugin\Application\TwigApplicationPlugin::SERVICE_TWIG
*
* @var string
*/
protected const SERVICE_TWIG = 'twig';

/**
* @param \Spryker\Yves\Kernel\Container $container
*
* @return \Spryker\Yves\Kernel\Container
*/
public function provideDependencies(Container $container): Container
{
$container = parent::provideDependencies($container);

$container = $this->addTwigService($container);

return $container;
}

/**
* @param \Spryker\Yves\Kernel\Container $container
*
* @return \Spryker\Yves\Kernel\Container
*/
protected function addTwigService(Container $container): Container
{
$container->set(static::TWIG_ENVIRONMENT, function (Container $container) {
return $container->getApplicationService(static::SERVICE_TWIG);
});

return $container;
}

/**
* @return array<\SprykerShop\Yves\CartPageExtension\Dependency\Plugin\CartItemTransformerPluginInterface>
*/
Expand Down
22 changes: 0 additions & 22 deletions src/Pyz/Yves/CartPage/CartPageFactory.php

This file was deleted.

This file was deleted.

Loading