In catalog/view/theme/default/template/common/header.twig file,
find:
replace with:
Then, follow this FAQ post: viewtopic.php?f=134&t=215776#p718325
find:
Code: Select all
<li><a href="{{ wishlist }}" id="wishlist-total" title="{{ text_wishlist }}"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md">{{ text_wishlist }}</span></a></li>
Code: Select all
{% if logged %}<li><a href="{{ wishlist }}" id="wishlist-total" title="{{ text_wishlist }}"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md">{{ text_wishlist }}</span></a></li>{% endif %}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
It only hides a link to wishlist and doesn't restrict the access to it.straightlight wrote: ↑Wed May 05, 2021 7:49 amIn catalog/view/theme/default/template/common/header.twig file,
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
That is correct, the OP user specifically asked to: hide the wishlist link if customer is not logged in; not to restrict it.thekrotek wrote: ↑Wed May 05, 2021 3:25 pmIt only hides a link to wishlist and doesn't restrict the access to it.straightlight wrote: ↑Wed May 05, 2021 7:49 amIn catalog/view/theme/default/template/common/header.twig file,
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks for the help guys, I used the "% If Logged %" before the wishlist div tag and the closer "% end if%" after. And for some reason now, when someone tries to add something to their wishlist not logged in, a message pops up telling them they need to login/register first.
Cheers!
Cheers!
OC version. URL?Schwimpi wrote: ↑Sat May 08, 2021 12:30 amThanks for the help guys, I used the "% If Logged %" before the wishlist div tag and the closer "% end if%" after. And for some reason now, when someone tries to add something to their wishlist not logged in, a message pops up telling them they need to login/register first.
Cheers!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 324 guests