Skip to content

Commit

Permalink
added config for wishlist sidebar in config
Browse files Browse the repository at this point in the history
  • Loading branch information
torhoehn committed Dec 4, 2018
1 parent ab30035 commit 3539586
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/code/Magento/Wishlist/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="show_in_sidebar" translate="label" type="select" sortOrder="5" showInDefault="1" showinWebsite="1" showInStore="1" canRestore="1">
<label>Show in Sidebar</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
</group>
<group id="wishlist_link" translate="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="0">
<label>My Wish List Link</label>
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Wishlist/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<wishlist>
<general>
<active>1</active>
<show_in_sidebar>1</show_in_sidebar>
</general>
<email>
<email_identity>general</email_identity>
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Wishlist/view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</block>
</referenceBlock>
<referenceContainer name="sidebar.additional">
<block class="Magento\Wishlist\Block\Customer\Sidebar" name="wishlist_sidebar" as="wishlist" template="Magento_Wishlist::sidebar.phtml"/>
<block class="Magento\Wishlist\Block\Customer\Sidebar" name="wishlist_sidebar" as="wishlist" template="Magento_Wishlist::sidebar.phtml" ifconfig="wishlist/general/show_in_sidebar"/>
</referenceContainer>
</body>
</page>

0 comments on commit 3539586

Please sign in to comment.