We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78302a6 commit 0cb86dbCopy full SHA for 0cb86db
src/Resources/views/Admin/Page/_showInShopButton.html.twig
@@ -1,7 +1,7 @@
1
{% set enabledChannels = resource.channels|filter(channel => channel.enabled == true) %}
2
3
{% if sylius_bundle_loaded_checker('SyliusShopBundle') %}
4
- {% if not resource.enabled or enabledChannels|length < 1 %}
+ {% if not resource.enabled or not resource.isPublished(date()) or enabledChannels|length < 1 %}
5
<a class="ui labeled icon button disabled" href="#">
6
<i class="angle right icon"></i>
7
{{ 'monsieurbiz_cms_page.ui.show_page_in_shop_page'|trans }}
0 commit comments