Skip to content
Discussion options

You must be logged in to vote

Hi @mikesnoeren

Thank you for your feedback. Adding some form of configuration or settings for these is something we can consider in the future.

For the moment, you can achieve this with a small piece of code in a custom module.

use craft\base\Event;
use craft\events\RegisterCpNavItemsEvent;
use craft\web\twig\variables\Cp;

// ...

Event::on(Cp::class, Cp::EVENT_REGISTER_CP_NAV_ITEMS, function(RegisterCpNavItemsEvent $event) {
    foreach ($event->navItems as &$navItem) {
        if ($navItem['url'] !== 'commerce') {
            continue;
        }

        foreach (['donations', 'subscription-plans'] as $key) {
            unset($navItem['subnav'][$key]);
        }
    }
});

Hope this h…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lukeholder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants