diff --git a/src/Resources/config/config.yaml b/src/Resources/config/config.yaml index 70cd072..6f01f2a 100644 --- a/src/Resources/config/config.yaml +++ b/src/Resources/config/config.yaml @@ -29,18 +29,3 @@ sylius_ui: banner: template: "@BitBagSyliusBannerPlugin/Shop/Homepage/_banner.html.twig" priority: 60 - latest_products: - template: "@SyliusShop/Homepage/_latestProducts.html.twig" - priority: 50 - latest_products_carousel: - template: "@SyliusShop/Homepage/_latestProductsCarousel.html.twig" - priority: 40 - newsletter: - template: "@SyliusShop/Homepage/_newsletter.html.twig" - priority: 30 - products_grid: - template: "@SyliusShop/Homepage/_productsGrid.html.twig" - priority: 20 - about_us: - template: "@SyliusShop/Homepage/_aboutUs.html.twig" - priority: 10 \ No newline at end of file diff --git a/tests/Application/config/packages/test/sylius_block_event.yaml b/tests/Application/config/packages/test/sylius_block_event.yaml new file mode 100644 index 0000000..a3d4e0a --- /dev/null +++ b/tests/Application/config/packages/test/sylius_block_event.yaml @@ -0,0 +1,7 @@ +sylius_ui: + events: + sylius.shop.homepage: + blocks: + banner: + template: "@SyliusShop/Homepage/_banner.html.twig" + priority: 60 diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig new file mode 100644 index 0000000..d3d00e7 --- /dev/null +++ b/tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig @@ -0,0 +1,8 @@ +{% set banners = getActiveAdsBanners("TEST-SECTION", 'en_US' ) %} +
+ {% for banner in banners %} + + {{banner.alt}} + + {% endfor %} +