Winkli Posted December 13, 2022 Share Posted December 13, 2022 I have PS 1.7.8.7 and wishlist module which has multiple wishlists for each customer. Actually I want to have only one wishlist, but I can't find code I need to change... Link to comment Share on other sites More sharing options...
Knowband Plugins Posted December 14, 2022 Share Posted December 14, 2022 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 More sharing options...
ZIKODK Posted December 14, 2022 Share Posted December 14, 2022 Is that a good solution: Once the customer has used wishlist #one, he is not able to create af new. Link to comment Share on other sites More sharing options...
Winkli Posted December 14, 2022 Author Share Posted December 14, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now