Jump to content

Wishlist module ps 1.7.8.7


Winkli

Recommended Posts

In "modules\blockwishlist\views\templates\pages\lists.tpl", Replace the content with the below one :

 

{extends file='customer/page.tpl'}

{block name='page_header_container'}
{/block}

{block name='page_content_container'}
  <div
    class="wishlist-container"
    data-url="{$url}"
    data-title="{$wishlistsTitlePage}"
    data-empty-text="{l s='No wishlist found.' d='Modules.Blockwishlist.Shop'}"
    data-rename-text="{l s='Rename' d='Modules.Blockwishlist.Shop'}"
    data-share-text="{l s='Share' d='Modules.Blockwishlist.Shop'}"
    {*data-add-text="{$newWishlistCTA}"*}
    
  ></div>
    <style>
    .wishlist-container .wishlist-add-to-new{
        display:none !important;
    }
</style>
  {include file="module:blockwishlist/views/templates/components/modals/share.tpl" url=$shareUrl}
  {include file="module:blockwishlist/views/templates/components/modals/rename.tpl" url=$renameUrl}
{/block}


{block name='page_footer_container'}
  <div class="wishlist-footer-links">
    <a href="{$link->getPageLink('my-account', true)|escape:'html'}" class="text-primary"><i class="material-icons">chevron_left</i>{l s='Return to your account' d='Modules.Blockwishlist.Shop'}</a>
    <a href="{$urls.base_url}" class="text-primary"><i class="material-icons">home</i>{l s='Home' d='Shop.Theme.Global'}</a>
  </div>
{/block}

 

As the above code will hide the Add new wishlist Icon so thar customer cannot add any wishlist by their own and use default wishlist.

Link to comment
Share on other sites

Yes, I don't need to create a new one, one is enough.

This is good but only on that page. Acctually I don't need that page at all: I want to make link from "my wishlist" in customer account to the only one wishlist page.

The same with "add to wishlist" hart on product page, I don't need the choice window, it has to add a product to that one wishlist.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...