Skip to content

Commit 2c0ac3d

Browse files
Merge pull request #12 from claudio-ferraro/feature/implement-core-extension
Implement JustBetter_Core module
2 parents 97a0995 + 634cd89 commit 2c0ac3d

File tree

5 files changed

+26
-7
lines changed

5 files changed

+26
-7
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"ext-json": "*",
2121
"magento/module-catalog": "*",
2222
"magento/module-customer": "*",
23-
"magento/module-eav": "*"
23+
"magento/module-eav": "*",
24+
"justbetter/magento2-core": "^1.0"
2425
},
2526
"autoload": {
2627
"files": [

src/etc/acl.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<?xml version="1.0"?>
2-
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
43
<acl>
54
<resources>
65
<resource id="Magento_Backend::admin">
6+
<resource id="JustBetter_Core::menu">
7+
<resource id="JustBetter_CustomerPricing::section" title="Customer Pricing" sortOrder="10">
8+
<resource id="JustBetter_CustomerPricing::home" title="Prices" sortOrder="10" />
9+
</resource>
10+
</resource>
711
<resource id="Magento_Backend::stores">
812
<resource id="Magento_Backend::stores_settings">
913
<resource id="Magento_Config::config">

src/etc/adminhtml/menu.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
33
<menu>
4-
<add id="JustBetter_CustomerPricing::home" title="Customer Specific Prices" module="JustBetter_CustomerPricing" sortOrder="1000" parent="Magento_Catalog::catalog_products" resource="Magento_Catalog::catalog" action="customerpricing/index/index" />
4+
<add
5+
id="JustBetter_CustomerPricing::section"
6+
title="Customer Pricing"
7+
module="JustBetter_CustomerPricing"
8+
sortOrder="10"
9+
parent="JustBetter_Core::menu"
10+
resource="JustBetter_CustomerPricing::section"
11+
/>
12+
<add
13+
id="JustBetter_CustomerPricing::home"
14+
title="Prices"
15+
module="JustBetter_CustomerPricing"
16+
sortOrder="10"
17+
parent="JustBetter_CustomerPricing::section"
18+
resource="JustBetter_CustomerPricing::home"
19+
action="customerpricing/index/index"
20+
/>
521
</menu>
622
</config>

src/etc/adminhtml/system.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
44
<system>
5-
<tab id="justbetter" translate="label" sortOrder="1">
6-
<label>justbetter</label>
7-
</tab>
85
<section id="customer_pricing" sortOrder="15" showInWebsite="1" showInStore="1" showInDefault="1" translate="label">
96
<label>Customer Pricing</label>
107
<tab>justbetter</tab>

src/etc/module.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<sequence>
55
<module name="Magento_Backend" />
66
<module name="Magento_Catalog"/>
7+
<module name="JustBetter_Core"/>
78
</sequence>
89
</module>
910
</config>

0 commit comments

Comments
 (0)