Skip to content

Commit 0cb86db

Browse files
committed
Show in shop is disabled if page is not published
1 parent 78302a6 commit 0cb86db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/views/Admin/Page/_showInShopButton.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% set enabledChannels = resource.channels|filter(channel => channel.enabled == true) %}
22

33
{% if sylius_bundle_loaded_checker('SyliusShopBundle') %}
4-
{% if not resource.enabled or enabledChannels|length < 1 %}
4+
{% if not resource.enabled or not resource.isPublished(date()) or enabledChannels|length < 1 %}
55
<a class="ui labeled icon button disabled" href="#">
66
<i class="angle right icon"></i>
77
{{ 'monsieurbiz_cms_page.ui.show_page_in_shop_page'|trans }}

0 commit comments

Comments
 (0)