├── .gitignore
├── README.md
├── composer.json
├── doc
├── connect.html
├── faq.txt
├── screenshot
│ ├── a1.png
│ ├── a2.png
│ ├── b.png
│ ├── c.png
│ ├── d.png
│ └── e.png
├── thumb.png
├── thumb.svg
├── thumb_2.png
├── thumb_2.svg
├── thumb_3.png
└── thumb_3.svg
├── modman
└── src
└── app
├── code
└── community
│ └── IntegerNet
│ └── RemoveCustomerAccountLinks
│ ├── Block
│ └── Navigation.php
│ ├── Helper
│ └── Data.php
│ ├── Model
│ └── System
│ │ └── Source
│ │ └── Link.php
│ ├── etc
│ ├── config.xml
│ └── system.xml
│ └── sql
│ └── integernet_removecustomeraccountlinks_setup
│ └── mysql4-install-2.0.0.2.php
├── etc
└── modules
│ └── IntegerNet_RemoveCustomerAccountLinks.xml
└── locale
├── de_DE
└── IntegerNet_RemoveCustomerAccountLinks.csv
└── en_US
└── IntegerNet_RemoveCustomerAccountLinks.csv
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | RemoveCustomerAccountLinks
2 | ==========================
3 |
4 | Removes customer account links in Magento.
5 |
6 | Facts
7 | -----
8 | - version: 2.0.0.2
9 | - extension key: IntegerNet_RemoveCustomerAccountLinks
10 | - extension on [GitHub](https://github.com/integer-net/RemoveCustomerAccountLinks)
11 | - extension on [Magento Connect](http://www.magentocommerce.com/magento-connect/remove-customer-account-links-5854.html)
12 |
13 | Description
14 | -----------
15 | Removes customer account links in Magento.
16 | With this easy to install extension, you can switch off the menu points in frontend user account easily by select in magento backend.
17 |
18 | Requirements
19 | ------------
20 | - PHP >= 5.2.0
21 | - PHP <= 5.5.x
22 |
23 | Compatibility
24 | -------------
25 | - Magento 1.4.0.0
26 | - Magento 1.4.0.1
27 | - Magento 1.4.1.0
28 | - Magento 1.4.1.1
29 | - Magento 1.4.2.0
30 | - Magento 1.5.0.1
31 | - Magento 1.5.1.0
32 | - Magento 1.6.0.0
33 | - Magento 1.6.1.0
34 | - Magento 1.6.2.0
35 | - Magento 1.7.0.0
36 | - Magento 1.7.0.1
37 | - Magento 1.7.0.2
38 | - Magento 1.8.0.0
39 | - Magento 1.8.1.0
40 | - Magento 1.9.0.0
41 | - Magento 1.9.0.1
42 |
43 | Installation Instructions
44 | -------------------------
45 | 1. Install the extension by copying the `app` directory into your Magento document root.
46 | 2. Clear the cache.
47 | 3. Configure the extension under ***System >> Configuration >> Customer Configuration >> Customer Account Links***.
48 | 4. Choose menu points, which should not be shown.
49 |
50 | Uninstallation
51 | --------------
52 | 1. Remove all extension files from your Magento installation
53 | - app/code/community/IntegerNet/RemoveCustomerAccountLinks
54 | - app/etc/modules/IntegerNet_RemoveCustomerAccountLinks.xml
55 | - app/locale/de_DE/IntegerNet_RemoveCustomerAccountLinks.csv
56 | - app/locale/en_US/IntegerNet_RemoveCustomerAccountLinks.csv
57 | 2. Clear the cache.
58 |
59 | Support
60 | -------
61 | If you have any issues with this extension, open an issue on [GitHub](https://github.com/integer-net/RemoveCustomerAccountLinks/issues).
62 |
63 | Contribution
64 | ------------
65 | Any contribution is highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).
66 |
67 | Developer
68 | ---------
69 | Christian Philipp
70 | Viktor Franz
71 |
72 | WWW [http://www.integer-net.de/](http://www.integer-net.de/)
73 | Twitter [@integer_net](https://twitter.com/integer_net)
74 |
75 | Licence
76 | -------
77 | [OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)
78 |
79 | Copyright
80 | ---------
81 | (c) 2013-2014 integer_net GmbH
82 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "integer-net/removecustomeraccountlinks",
3 | "type": "magento-module",
4 | "license": "OSL-3.0",
5 | "homepage": "https://github.com/integer-net/RemoveCustomerAccountLinks",
6 | "description": "Removes customer account links in Magento.",
7 | "keywords": ["magento", "customer", "account"],
8 | "authors": [
9 | {
10 | "name": "integer_net GmbH",
11 | "email": "info@integer-net.de",
12 | "homepage": "http://www.integer-net.de/",
13 | "role": "Company"
14 | },
15 | {
16 | "name": "Christian Philipp",
17 | "email": "cp@integer-net.de",
18 | "homepage": "http://www.integer-net.de/",
19 | "role": "Developer"
20 | },
21 | {
22 | "name": "Viktor Franz",
23 | "email": "vf@integer-net.de",
24 | "homepage": "http://www.integer-net.de/",
25 | "role": "Developer"
26 | }
27 | ],
28 | "require": {
29 | "magento-hackathon/magento-composer-installer": "*"
30 | },
31 | "extra": {
32 | "map": [
33 | ["src/app/code/community/IntegerNet/RemoveCustomerAccountLinks", "app/code/community/IntegerNet/RemoveCustomerAccountLinks"],
34 | ["src/app/etc/modules/IntegerNet_RemoveCustomerAccountLinks.xml", "app/etc/modules/IntegerNet_RemoveCustomerAccountLinks.xml"],
35 | ["src/app/locale/de_DE/IntegerNet_RemoveCustomerAccountLinks.csv", "app/locale/de_DE/IntegerNet_RemoveCustomerAccountLinks.csv"],
36 | ["src/app/locale/en_US/IntegerNet_RemoveCustomerAccountLinks.csv", "app/locale/en_US/IntegerNet_RemoveCustomerAccountLinks.csv"]
37 | ],
38 | "magento_connect": {
39 | "name": "IntegerNet_RemoveCustomerAccountLinks",
40 | "license_uri": "http://opensource.org/licenses/osl-3.0.php",
41 | "channel": "community",
42 | "php_min": "5.2.0",
43 | "php_max": "7.9.9",
44 | "stability": "stable",
45 | "content": [
46 | {
47 | "type": "magecommunity",
48 | "structure": "dir",
49 | "path": "IntegerNet/RemoveCustomerAccountLinks"
50 | },
51 | {
52 | "type": "mageetc",
53 | "structure": "file",
54 | "path": "modules/IntegerNet_RemoveCustomerAccountLinks.xml"
55 | },
56 | {
57 | "type": "magelocale",
58 | "structure": "file",
59 | "path": "de_DE/IntegerNet_RemoveCustomerAccountLinks.csv"
60 | },
61 | {
62 | "type": "magelocale",
63 | "structure": "file",
64 | "path": "en_US/IntegerNet_RemoveCustomerAccountLinks.csv"
65 | }
66 | ]
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/doc/connect.html:
--------------------------------------------------------------------------------
1 |
Manage customer account links in Magento.
2 | With this easy-to-install extension, you can switch on/off menu items in frontend user account easily via Magento backend.
3 |
4 | Installation Instructions
5 |
6 | Install the extension.
7 | Clear the cache.
8 | Configure the extension under: System >> Configuration >> Customer Configuration >> Customer Account Links .
9 | Choose menu items, which should not be shown, save, clear cache.
10 |
11 | The extension has also been tested and is confirmed to work with Magento 1.4.0.0, 1.4.0.1, 1.4.1.0 1.4.1.1 and 1.4.2.0. To install the extension on Magento 1.4 you can download the extension on GitHub and copy the app directory into your Magento document root.
12 |
13 | Support
14 | If you have any issues with this extension, you are welcome to send a message via Magento Connect: Reviews >> Support for this Extension
15 |
16 | Reviews
17 | If you like this extension or have constructive criticism please feel free to write a review.
18 |
19 | Extension Homepage
20 | RemoveCustomerAccountLinks @ GitHub
--------------------------------------------------------------------------------
/doc/faq.txt:
--------------------------------------------------------------------------------
1 | Q:Why doesn't the extension work with my custom theme?
2 | A:Please make sure that the custom theme you are using does not override Magento's default customer account links block. The extension will not work with custom blocks.
--------------------------------------------------------------------------------
/doc/screenshot/a1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/screenshot/a1.png
--------------------------------------------------------------------------------
/doc/screenshot/a2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/screenshot/a2.png
--------------------------------------------------------------------------------
/doc/screenshot/b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/screenshot/b.png
--------------------------------------------------------------------------------
/doc/screenshot/c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/screenshot/c.png
--------------------------------------------------------------------------------
/doc/screenshot/d.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/screenshot/d.png
--------------------------------------------------------------------------------
/doc/screenshot/e.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/screenshot/e.png
--------------------------------------------------------------------------------
/doc/thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/thumb.png
--------------------------------------------------------------------------------
/doc/thumb.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
16 |
18 |
19 |
21 | image/svg+xml
22 |
24 |
25 |
26 |
27 |
28 |
31 |
35 |
38 |
41 |
45 |
49 |
53 |
57 |
61 |
65 |
69 |
70 |
73 |
77 |
81 |
85 |
89 |
93 |
97 |
98 |
99 |
103 |
107 |
110 |
112 |
119 |
126 | MY ACCOUNT
136 |
137 |
139 |
146 |
153 | Account Dashboard
163 |
164 |
167 |
174 |
181 | Account Information
191 |
192 |
195 |
202 |
209 | Address Book
219 |
220 |
223 |
230 |
237 | My Orders
247 |
248 |
251 |
258 |
265 | Billing Agreements
275 |
276 |
279 |
286 |
293 | Recurring Profiles
303 |
304 |
307 |
314 |
321 | Newsletter Subscriptions
331 |
332 |
333 |
336 |
344 |
353 |
354 |
357 |
365 |
374 |
375 | Remove Customer Account Links
386 | by
396 |
397 |
398 |
--------------------------------------------------------------------------------
/doc/thumb_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/thumb_2.png
--------------------------------------------------------------------------------
/doc/thumb_2.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
21 |
23 |
41 |
43 |
44 |
46 | image/svg+xml
47 |
49 |
50 |
51 |
52 |
53 |
61 |
65 |
68 |
70 |
77 |
84 | MY ACCOUNT
95 |
96 |
98 |
105 |
112 | Account Dashboard
123 |
124 |
127 |
134 |
141 | Account Information
152 |
153 |
156 |
163 |
170 | Address Book
181 |
182 |
185 |
192 |
199 | My Orders
210 |
211 |
214 |
221 |
228 | Billing Agreements
239 |
240 |
243 |
250 |
257 | Recurring Profiles
268 |
269 |
272 |
279 |
286 | Newsletter Subscriptions
297 |
298 |
299 |
302 |
310 |
319 |
320 |
323 |
331 |
340 |
341 |
342 |
345 |
349 |
354 |
359 |
364 |
369 |
374 |
379 |
384 |
389 |
394 |
399 |
404 |
409 |
414 |
419 |
424 |
429 |
434 |
439 |
444 |
449 |
454 |
459 |
464 |
469 |
474 |
475 |
479 |
484 |
489 |
494 |
499 |
504 |
509 |
514 |
519 |
524 |
529 |
534 |
539 |
544 |
549 |
554 |
559 |
564 |
569 |
574 |
579 |
584 |
589 |
594 |
599 |
604 |
605 |
606 |
609 |
612 | by
624 | by
636 |
637 |
640 |
644 |
647 |
652 |
657 |
662 |
667 |
672 |
677 |
682 |
683 |
686 |
691 |
696 |
701 |
706 |
711 |
716 |
717 |
718 |
721 |
724 |
729 |
734 |
739 |
744 |
749 |
754 |
759 |
760 |
763 |
768 |
773 |
778 |
783 |
788 |
793 |
794 |
795 |
796 |
797 |
798 |
--------------------------------------------------------------------------------
/doc/thumb_3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/integer-net/RemoveCustomerAccountLinks/17f5b20de146f40c8b7b4cb94fdea61b3df714b3/doc/thumb_3.png
--------------------------------------------------------------------------------
/modman:
--------------------------------------------------------------------------------
1 | src/app/code/community/IntegerNet/RemoveCustomerAccountLinks app/code/community/IntegerNet/RemoveCustomerAccountLinks
2 | src/app/etc/modules/IntegerNet_RemoveCustomerAccountLinks.xml app/etc/modules/IntegerNet_RemoveCustomerAccountLinks.xml
3 | src/app/locale/de_DE/IntegerNet_RemoveCustomerAccountLinks.csv app/locale/de_DE/IntegerNet_RemoveCustomerAccountLinks.csv
4 | src/app/locale/en_US/IntegerNet_RemoveCustomerAccountLinks.csv app/locale/en_US/IntegerNet_RemoveCustomerAccountLinks.csv
5 |
--------------------------------------------------------------------------------
/src/app/code/community/IntegerNet/RemoveCustomerAccountLinks/Block/Navigation.php:
--------------------------------------------------------------------------------
1 |
10 | * @author Viktor Franz
11 | */
12 |
13 | /**
14 | * Enter description here ...
15 | */
16 | class IntegerNet_RemoveCustomerAccountLinks_Block_Navigation extends Mage_Customer_Block_Account_Navigation
17 | {
18 | /**
19 | * @return $this
20 | */
21 | public function removeLink()
22 | {
23 | foreach (Mage::helper('integernet_removecustomeraccountlinks')->getNavigationLinksToRemove() as $link) {
24 | unset($this->_links[$link]);
25 | }
26 |
27 | return $this;
28 | }
29 |
30 | /**
31 | * @return mixed
32 | */
33 | protected function _toHtml()
34 | {
35 | $this->removeLink();
36 | return parent::_toHtml();
37 | }
38 | }
--------------------------------------------------------------------------------
/src/app/code/community/IntegerNet/RemoveCustomerAccountLinks/Helper/Data.php:
--------------------------------------------------------------------------------
1 |
10 | * @author Viktor Franz
11 | */
12 |
13 | /**
14 | * Enter description here ...
15 | */
16 | class IntegerNet_RemoveCustomerAccountLinks_Helper_Data extends Mage_Core_Helper_Abstract
17 | {
18 |
19 | /**
20 | * @param mixed $store
21 | * @return array
22 | */
23 | public function getNavigationLinksToRemove($store = null)
24 | {
25 | $items = Mage::getStoreConfig('customer/integernet_removecustomeraccountlinks/items', $store);
26 | return explode(',', $items);
27 | }
28 | }
--------------------------------------------------------------------------------
/src/app/code/community/IntegerNet/RemoveCustomerAccountLinks/Model/System/Source/Link.php:
--------------------------------------------------------------------------------
1 |
10 | * @author Viktor Franz
11 | */
12 |
13 | /**
14 | * Enter description here ...
15 | */
16 | class IntegerNet_RemoveCustomerAccountLinks_Model_System_Source_Link
17 | {
18 | /**
19 | * @return array
20 | */
21 | public function toOptionArray()
22 | {
23 | $options = array(array(
24 | 'value' => '-',
25 | 'label' => '',
26 | ));
27 |
28 | foreach($this->getLinks() as $link) {
29 | $options[] = array(
30 | 'value' => $link->getName(),
31 | 'label' => Mage::helper('customer')->__($link->getLabel()),
32 | );
33 | }
34 |
35 | return $options;
36 | }
37 |
38 | /**
39 | * Fetch all customer account navigation links from layout-block
40 | *
41 | * @return array of Varien_Object(s)
42 | */
43 | public function getLinks()
44 | {
45 | $links = array();
46 |
47 | /**
48 | * Save current store and design package
49 | */
50 | $currentStoreId = Mage::app()->getStore()->getId();
51 | $currentDesign = Mage::registry('_singleton/core/design_package');
52 |
53 | /**
54 | * Fetch all links from customer account navigation block
55 | */
56 | foreach (Mage::app()->getStores(true) as $store) {
57 |
58 | Mage::app()->setCurrentStore($store->getId());
59 | Mage::unregister('_singleton/core/design_package');
60 |
61 | /** @var $layout Mage_Core_Model_Layout */
62 | $layout = Mage::getModel('core/layout');
63 | $layout->getUpdate()->load('customer_account');
64 | $layout->generateXml();
65 | $layout->generateBlocks();
66 |
67 | /** @var $navigation Mage_Customer_Block_Account_Navigation */
68 | $navigation = $layout->getBlock('customer_account_navigation');
69 |
70 | if($navigation instanceof Mage_Customer_Block_Account_Navigation) {
71 | $storeNavigationLinks = $navigation->getLinks();
72 | $links = array_merge($links, $storeNavigationLinks);
73 | }
74 | }
75 |
76 | /**
77 | * Restore store and design package
78 | */
79 | Mage::app()->setCurrentStore($currentStoreId);
80 | Mage::unregister('_singleton/core/design_package');
81 | Mage::register('_singleton/core/design_package', $currentDesign);
82 |
83 | return $links;
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/src/app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
16 |
17 | 2.0.0.2
18 |
19 |
20 |
21 |
22 |
23 |
24 | IntegerNet_RemoveCustomerAccountLinks_Block_Navigation
25 |
26 |
27 |
28 |
29 |
30 | IntegerNet_RemoveCustomerAccountLinks_Helper
31 |
32 |
33 |
34 |
35 | IntegerNet_RemoveCustomerAccountLinks_Model
36 |
37 |
38 |
39 |
40 |
41 | IntegerNet_RemoveCustomerAccountLinks
42 | Mage_Core_Model_Resource_Setup
43 |
44 |
45 | core_setup
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 | IntegerNet_RemoveCustomerAccountLinks.csv
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/src/app/code/community/IntegerNet/RemoveCustomerAccountLinks/etc/system.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 |
22 |
23 | Remove Customer Account Links
24 | 120
25 | 1
26 | 1
27 | 1
28 |
29 |
30 | Remove links
31 | multiselect
32 | integernet_removecustomeraccountlinks/system_source_link
33 | 10
34 | 1
35 | 1
36 | 1
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/src/app/code/community/IntegerNet/RemoveCustomerAccountLinks/sql/integernet_removecustomeraccountlinks_setup/mysql4-install-2.0.0.2.php:
--------------------------------------------------------------------------------
1 |
11 | */
12 |
13 | /**
14 | * Enter description here ...
15 | */
16 |
17 | /* @var $installer Mage_Core_Model_Resource_Setup */
18 | /* @var $installer Mage_Core_Model_Resource_Setup */
19 | $installer = $this;
20 |
21 | $installer->startSetup();
22 |
23 | $configTable = $this->getTable('core/config_data');
24 | $oldConfigPath = 'removecustomeraccountlinks/settings/remove';
25 | $newConfigPath = 'customer/integernet_removecustomeraccountlinks/items';
26 |
27 | $query = sprintf("UPDATE %s SET path = '%s' WHERE path = '%s'", $configTable, $newConfigPath, $oldConfigPath);
28 | $installer->getConnection()->query($query);
29 |
30 | $installer->endSetup();
--------------------------------------------------------------------------------
/src/app/etc/modules/IntegerNet_RemoveCustomerAccountLinks.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 |
20 |
21 | true
22 | community
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/app/locale/de_DE/IntegerNet_RemoveCustomerAccountLinks.csv:
--------------------------------------------------------------------------------
1 | "Remove Customer Account Links","Entferne Benutzerkonto Links"
2 | "Remove links","Entferne Menüpunkte"
--------------------------------------------------------------------------------
/src/app/locale/en_US/IntegerNet_RemoveCustomerAccountLinks.csv:
--------------------------------------------------------------------------------
1 | "Remove Customer Account Links","Remove Customer Account Links"
2 | "Remove links","Remove links"
--------------------------------------------------------------------------------