Skip to content

Commit 6e0b654

Browse files
authored
ENGCOM-3617: added config for wishlist sidebar in config #19554
2 parents 902d314 + cfdbd59 commit 6e0b654

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
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/i18n/en_US.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,5 @@ Action,Action
118118
Configure,Configure
119119
Delete,Delete
120120
"Product Details and Comment","Product Details and Comment"
121-
"You must login or register to add items to your wishlist.","You must login or register to add items to your wishlist."
121+
"You must login or register to add items to your wishlist.","You must login or register to add items to your wishlist."
122+
"Show in Sidebar","Show in Sidebar"

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)