Active
Project:
Commerce File
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2013 at 21:39 UTC
Updated:
23 Jan 2019 at 03:15 UTC
Jump to comment: Most recent
Hello,
Is there a way to hide the "Files" tab is the user has not purchased any files?
Thanks!
Comments
Comment #1
saurabh.dhariwal commentedYou can make view with purchased file count. You can also refer view which exists for File tab.
Load your view programatically in your module and get total count of purchased file.
You need to alter menu to remove File tab with view result count.
Refer link of menu alter here.
Comment #2
damienmckenna