Skip to content

Commit 3539586

Browse files
committed
added config for wishlist sidebar in config
1 parent ab30035 commit 3539586

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

app/code/Magento/Wishlist/etc/adminhtml/system.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
<label>Enabled</label>
4040
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
4141
</field>
42+
<field id="show_in_sidebar" translate="label" type="select" sortOrder="5" showInDefault="1" showinWebsite="1" showInStore="1" canRestore="1">
43+
<label>Show in Sidebar</label>
44+
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
45+
</field>
4246
</group>
4347
<group id="wishlist_link" translate="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="0">
4448
<label>My Wish List Link</label>

app/code/Magento/Wishlist/etc/config.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<wishlist>
1111
<general>
1212
<active>1</active>
13+
<show_in_sidebar>1</show_in_sidebar>
1314
</general>
1415
<email>
1516
<email_identity>general</email_identity>

app/code/Magento/Wishlist/view/frontend/layout/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</block>
1919
</referenceBlock>
2020
<referenceContainer name="sidebar.additional">
21-
<block class="Magento\Wishlist\Block\Customer\Sidebar" name="wishlist_sidebar" as="wishlist" template="Magento_Wishlist::sidebar.phtml"/>
21+
<block class="Magento\Wishlist\Block\Customer\Sidebar" name="wishlist_sidebar" as="wishlist" template="Magento_Wishlist::sidebar.phtml" ifconfig="wishlist/general/show_in_sidebar"/>
2222
</referenceContainer>
2323
</body>
2424
</page>

0 commit comments

Comments
 (0)