Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: replicate recurring product registration options in catalog #219

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions etc/adminhtml/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@
<add action="pagarme_pagarme/recurrenceproducts/index" id="Pagarme::pagarme_recurrenceproducts_index" module="Pagarme_Pagarme" parent="Pagarme::pagarme_recurrence" resource="Magento_Config::config" sortOrder="1" title="Recurrence Products"/>
<add action="pagarme_pagarme/plans/index" id="Pagarme::pagarme_plans_index" module="Pagarme_Pagarme" parent="Pagarme::pagarme_recurrence" resource="Magento_Config::config" sortOrder="1" title="Plans"/>
<add action="pagarme_pagarme/subscriptions/index" id="Pagarme::pagarme_subscriptions_index" module="Pagarme_Pagarme" parent="Pagarme::pagarme_recurrence" resource="Magento_Config::config" sortOrder="1" title="Subscriptions"/>

<!-- Add recurence items in catalog menu -->
<add id="Pagarme::pagarme_recurrence_catalog" module="Pagarme_Pagarme" parent="Magento_Catalog::catalog" resource="Magento_Config::config" dependsOnConfig="pagarme_pagarme/recurrence/active" sortOrder="30" title="Recurrence"/>
<add action="pagarme_pagarme/recurrenceproducts/index" id="Pagarme::pagarme_recurrenceproducts_catalog" module="Pagarme_Pagarme" parent="Pagarme::pagarme_recurrence_catalog" resource="Magento_Config::config" sortOrder="1" title="Recurrence Products"/>
<add action="pagarme_pagarme/plans/index" id="Pagarme::pagarme_plans_catalog" module="Pagarme_Pagarme" parent="Pagarme::pagarme_recurrence_catalog" resource="Magento_Config::config" sortOrder="1" title="Plans"/>
</menu>
</config>