HetNieuweWeb_CustomerNavigation - Version 0.1.0

Version Notes

Stable release of 'Manage Customer Navigation', version 0.1.0.

Download this release

Release Info

Developer Gerard de Visser
Extension HetNieuweWeb_CustomerNavigation
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/community/HetNieuweWeb/CustomerNavigation/Block/Customer/Account/Navigation.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class HetNieuweWeb_CustomerNavigation_Block_Customer_Account_Navigation extends Mage_Customer_Block_Account_Navigation
3
+ {
4
+ public function removeLinkByName() {
5
+ $NavigationLinks = array('account'=>'account', 'account_edit'=>'account_edit', 'address_book'=>'address_book', 'orders'=>'orders', 'billing_agreements'=>'billing_agreements', 'recurring_profiles'=>'recurring_profiles', 'reviews'=>'reviews', 'tags'=>'tags', 'wishlist'=>'wishlist', 'OAuth Customer Tokens'=>'oauth_customer_tokens', 'newsletter'=>'newsletter', 'downloadable_products'=>'downloadable_products');
6
+
7
+ foreach ($NavigationLinks as $link => $configName) {
8
+ $display = Mage::getStoreConfig('customer_navigation/settings/'.$configName);
9
+ if (! $display) {
10
+ unset($this->_links[$link]);
11
+ }
12
+ }
13
+ }
14
+ }
15
+ ?>
app/code/community/HetNieuweWeb/CustomerNavigation/Helper/Data.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ class HetNieuweWeb_CustomerNavigation_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+
5
+ }
6
+ ?>
app/code/community/HetNieuweWeb/CustomerNavigation/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+
3
+ <config>
4
+ <acl>
5
+ <resources>
6
+ <admin>
7
+ <children>
8
+ <system>
9
+ <children>
10
+ <config>
11
+ <children>
12
+ <customer_navigation>
13
+ <title>Het Nieuwe Web - Customer Navigation</title>
14
+ </customer_navigation>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/HetNieuweWeb/CustomerNavigation/etc/config.xml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+
3
+ <config>
4
+ <modules>
5
+ <HetNieuweWeb_CustomerNavigation>
6
+ <version>0.1.0</version>
7
+ </HetNieuweWeb_CustomerNavigation>
8
+ </modules>
9
+
10
+ <global>
11
+ <helpers>
12
+ <customerNavigation>
13
+ <class>HetNieuweWeb_CustomerNavigation_Helper</class>
14
+ </customerNavigation>
15
+ </helpers>
16
+
17
+ <blocks>
18
+ <customer>
19
+ <rewrite>
20
+ <account_navigation>HetNieuweWeb_CustomerNavigation_Block_Customer_Account_Navigation</account_navigation>
21
+ </rewrite>
22
+ </customer>
23
+ </blocks>
24
+ </global>
25
+
26
+ <frontend>
27
+ <layout>
28
+ <updates>
29
+ <HetNieuweWeb_CustomerNavigation>
30
+ <file>hetnieuweweb_customernavigation.xml</file>
31
+ </HetNieuweWeb_CustomerNavigation>
32
+ </updates>
33
+ </layout>
34
+ </frontend>
35
+
36
+ <default>
37
+ <customer_navigation>
38
+ <settings>
39
+ <account>1</account>
40
+ <account_edit>1</account_edit>
41
+ <address_book>1</address_book>
42
+ <orders>1</orders>
43
+ <billing_agreements>1</billing_agreements>
44
+ <recurring_profiles>1</recurring_profiles>
45
+ <reviews>1</reviews>
46
+ <tags>1</tags>
47
+ <wishlist>1</wishlist>
48
+ <oauth_customer_tokens>1</oauth_customer_tokens>
49
+ <newsletter>1</newsletter>
50
+ <downloadable_products>1</downloadable_products>
51
+ </settings>
52
+ </customer_navigation>
53
+ </default>
54
+ </config>
app/code/community/HetNieuweWeb/CustomerNavigation/etc/system.xml ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+
3
+ <config>
4
+ <tabs>
5
+ <hetnieuweweb translate="label">
6
+ <label>Het Nieuwe Web<![CDATA[<div style="display:inline-block; float:right; margin-right:5px;"><a href="http://www.hetnieuweweb.nl/" target="_blank" style="background: none;"><img src="http://hetnieuweweb.nl/wp-content/themes/HetNieuweWeb-v4/img/hetnieuweweb_twister_color.png" width="20" height="20"/></a></div>]]></label>
7
+ <sort_order>150</sort_order>
8
+ </hetnieuweweb>
9
+ </tabs>
10
+
11
+ <sections>
12
+ <customer_navigation translate="label">
13
+ <label>Customer Navigation</label>
14
+ <tab>hetnieuweweb</tab>
15
+ <frontend_type>text</frontend_type>
16
+ <sort_order>10</sort_order>
17
+ <show_in_default>1</show_in_default>
18
+ <show_in_website>1</show_in_website>
19
+ <show_in_store>1</show_in_store>
20
+ <groups>
21
+ <settings translate="label">
22
+ <label>Display Links</label>
23
+ <frontend_type>text</frontend_type>
24
+ <sort_order>10</sort_order>
25
+ <show_in_default>1</show_in_default>
26
+ <show_in_website>1</show_in_website>
27
+ <show_in_store>1</show_in_store>
28
+ <fields>
29
+ <account translate="label">
30
+ <label>Account</label>
31
+ <frontend_type>select</frontend_type>
32
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
33
+ <sort_order>10</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ </account>
38
+ <account_edit translate="label">
39
+ <label>Account Edit</label>
40
+ <frontend_type>select</frontend_type>
41
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
42
+ <sort_order>20</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ </account_edit>
47
+ <address_book translate="label">
48
+ <label>Address Book</label>
49
+ <frontend_type>select</frontend_type>
50
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
51
+ <sort_order>30</sort_order>
52
+ <show_in_default>1</show_in_default>
53
+ <show_in_website>1</show_in_website>
54
+ <show_in_store>1</show_in_store>
55
+ </address_book>
56
+ <orders translate="label">
57
+ <label>Orders</label>
58
+ <frontend_type>select</frontend_type>
59
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
60
+ <sort_order>40</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>1</show_in_website>
63
+ <show_in_store>1</show_in_store>
64
+ </orders>
65
+ <billing_agreements translate="label">
66
+ <label>Billing Agreement</label>
67
+ <frontend_type>select</frontend_type>
68
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
69
+ <sort_order>50</sort_order>
70
+ <show_in_default>1</show_in_default>
71
+ <show_in_website>1</show_in_website>
72
+ <show_in_store>1</show_in_store>
73
+ </billing_agreements>
74
+ <recurring_profiles translate="label">
75
+ <label>Recurring Profiles</label>
76
+ <frontend_type>select</frontend_type>
77
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
78
+ <sort_order>60</sort_order>
79
+ <show_in_default>1</show_in_default>
80
+ <show_in_website>1</show_in_website>
81
+ <show_in_store>1</show_in_store>
82
+ </recurring_profiles>
83
+ <reviews translate="label">
84
+ <label>Reviews</label>
85
+ <frontend_type>select</frontend_type>
86
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
87
+ <sort_order>70</sort_order>
88
+ <show_in_default>1</show_in_default>
89
+ <show_in_website>1</show_in_website>
90
+ <show_in_store>1</show_in_store>
91
+ </reviews>
92
+ <tags translate="label">
93
+ <label>Tags</label>
94
+ <frontend_type>select</frontend_type>
95
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
96
+ <sort_order>80</sort_order>
97
+ <show_in_default>1</show_in_default>
98
+ <show_in_website>1</show_in_website>
99
+ <show_in_store>1</show_in_store>
100
+ </tags>
101
+ <wishlist translate="label">
102
+ <label>Wishlist</label>
103
+ <frontend_type>select</frontend_type>
104
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
105
+ <sort_order>90</sort_order>
106
+ <show_in_default>1</show_in_default>
107
+ <show_in_website>1</show_in_website>
108
+ <show_in_store>1</show_in_store>
109
+ </wishlist>
110
+ <oauth_customer_tokens translate="label">
111
+ <label>OAuth Customer Tokens</label>
112
+ <frontend_type>select</frontend_type>
113
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
114
+ <sort_order>100</sort_order>
115
+ <show_in_default>1</show_in_default>
116
+ <show_in_website>1</show_in_website>
117
+ <show_in_store>1</show_in_store>
118
+ </oauth_customer_tokens>
119
+ <newsletter translate="label">
120
+ <label>Newsletter</label>
121
+ <frontend_type>select</frontend_type>
122
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
123
+ <sort_order>110</sort_order>
124
+ <show_in_default>1</show_in_default>
125
+ <show_in_website>1</show_in_website>
126
+ <show_in_store>1</show_in_store>
127
+ </newsletter>
128
+ <downloadable_products translate="label">
129
+ <label>Downloadable Products</label>
130
+ <frontend_type>select</frontend_type>
131
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
132
+ <sort_order>120</sort_order>
133
+ <show_in_default>1</show_in_default>
134
+ <show_in_website>1</show_in_website>
135
+ <show_in_store>1</show_in_store>
136
+ </downloadable_products>
137
+ </fields>
138
+ </settings>
139
+ </groups>
140
+ </customer_navigation>
141
+ </sections>
142
+ </config>
app/design/frontend/base/default/layout/hetnieuweweb_customernavigation.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+ <layout version="0.1.0">
3
+ <customer_account>
4
+ <reference name="customer_account_navigation">
5
+ <action method="removeLinkByName" />
6
+ </reference>
7
+ </customer_account>
8
+ </layout>
app/etc/modules/HetNieuweWeb_CustomerNavigation.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+
3
+ <config>
4
+ <modules>
5
+ <HetNieuweWeb_CustomerNavigation>
6
+ <active>true</active>
7
+ <codePool>community</codePool>
8
+ </HetNieuweWeb_CustomerNavigation>
9
+ </modules>
10
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>HetNieuweWeb_CustomerNavigation</name>
4
+ <version>0.1.0</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Manage customer dashboard navigation menu.</summary>
10
+ <description>Manage customer dashboard navigation. Easily enable/disable links of customer dashboard menu in Magento backend.</description>
11
+ <notes>Stable release of 'Manage Customer Navigation', version 0.1.0.</notes>
12
+ <authors><author><name>Gerard de Visser</name><user>Gerard_de_V</user><email>gerarddevisser@gmail.com</email></author></authors>
13
+ <date>2014-09-08</date>
14
+ <time>11:49:57</time>
15
+ <contents><target name="mageetc"><dir><dir name="modules"><file name="HetNieuweWeb_CustomerNavigation.xml" hash="f1a404ca632ad00a7a47442ef2527587"/></dir></dir></target><target name="magecommunity"><dir><dir name="HetNieuweWeb"><dir name="CustomerNavigation"><dir name="Block"><dir name="Customer"><dir name="Account"><file name="Navigation.php" hash="420f1a4e5abad77095e7465297e999d2"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="1a716d6550b0ed31fbd5a3aed150af38"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f14a49ac17637530cb6fa53f82abfb26"/><file name="config.xml" hash="041a2768bb7ac7ffdf8a154f55965ccb"/><file name="system.xml" hash="674ce9c1b23c4b84804af660d9f658b5"/></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="hetnieuweweb_customernavigation.xml" hash="0ed6433cea1398c7ea9066ea2ac96faf"/></dir></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>