cancel
Showing results for 
Search instead for 
Did you mean: 

Show wishlist

SOLVED

Show wishlist

I am trying to show the wishlist sidebar on a custom page, I have tried the following but cant seem to get it to show

 {{block class="Magento\Wishlist\Block\Customer" name="customer.wishlist" template="sidebar.phtml"}}
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Show wishlist

Hello @miller75 

 

Check if your custom page layout is not 1 column it could be  layout="2columns-left" or  layout="2columns-right"  c
 
Change that and check again.
 
After the layout is changed, if you still get the issue, add this to xml file:
 
<referenceContainer name="sidebar.additional">
   <block class="Magento\Wishlist\Block\Customer\Sidebar" name="wishlist_sidebar_c" as="wishlistc" template="Magento_Wishlist::sidebar.phtml"/>
</referenceContainer>
And, also check if  <referenceContainer name="sidebar.additional" remove="true"/> is not in any custom/theme layout file.
 
Thanks.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

View solution in original post

2 REPLIES 2

Re: Show wishlist

Hello @miller75 

 

Check if your custom page layout is not 1 column it could be  layout="2columns-left" or  layout="2columns-right"  c
 
Change that and check again.
 
After the layout is changed, if you still get the issue, add this to xml file:
 
<referenceContainer name="sidebar.additional">
   <block class="Magento\Wishlist\Block\Customer\Sidebar" name="wishlist_sidebar_c" as="wishlistc" template="Magento_Wishlist::sidebar.phtml"/>
</referenceContainer>
And, also check if  <referenceContainer name="sidebar.additional" remove="true"/> is not in any custom/theme layout file.
 
Thanks.
Problem solved? Click Kudos and "Accept as Solution".
200+ Magento 2 Extensions for Enhanced Shopping Experience.

Re: Show wishlist

@Sanjay Jethva 

 

Thanks, got it working now