3

I have extension with widget.xml file where there are 5 defined widgets. 1 of the widgets is available only to premium customers. I don't want this widget to show up inside Widget type selection in CMS->Pages when you click insert new widget icon.

Is there any way to programmatically remove widget without removing it from widget.xml?

1
  • Have you ever managed to solve this? Mar 12, 2018 at 6:58

1 Answer 1

-1

Easiest way I've found was to just hide the select options via CSS:

#select_widget_type option[value="sales/widget_guest_form"] {
    display: none;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.