Version Notes
Account navigation is a small, but very convenient application that allows managing customer account navigation menu.
Download this release
Release Info
| Developer | Magalter |
| Extension | magalter-accountnavigation |
| Version | 1.0.0.0 |
| Comparing to | |
| See all releases | |
Version 1.0.0.0
- app/code/local/Magalter/Accountnavigation/Block/Account/Navigation.php +28 -0
- app/code/local/Magalter/Accountnavigation/Helper/Data.php +6 -0
- app/code/local/Magalter/Accountnavigation/etc/config.xml +145 -0
- app/code/local/Magalter/Accountnavigation/etc/system.xml +177 -0
- app/code/local/Magalter/Config/Helper/Data.php +8 -0
- app/code/local/Magalter/Config/etc/config.xml +16 -0
- app/code/local/Magalter/Config/etc/system.xml +9 -0
- app/design/frontend/default/default/layout/accountnavigation.xml +33 -0
- app/design/frontend/default/default/template/accountnavigation/navigation.phtml +32 -0
- app/etc/modules/Magalter_Accountnavigation.xml +8 -0
- app/etc/modules/Magalter_Config.xml +8 -0
- app/locale/en_US/Magalter_Accountnavigation.csv +11 -0
- package.xml +23 -0
app/code/local/Magalter/Accountnavigation/Block/Account/Navigation.php
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class Magalter_Accountnavigation_Block_Account_Navigation extends Mage_Customer_Block_Account_Navigation {
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
public function addLink($name, $path, $label, $urlParams=array())
|
| 6 |
+
{
|
| 7 |
+
|
| 8 |
+
if(Mage::getStoreConfig("accountnavigation/integration/enable")) {
|
| 9 |
+
|
| 10 |
+
if (preg_match("#.+/$#is",$path)) {
|
| 11 |
+
$path = substr($path,0,-1);
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
$storePath = $path;
|
| 15 |
+
$storePath = trim(preg_replace("#/#is","_",$storePath));
|
| 16 |
+
|
| 17 |
+
if(Mage::getStoreConfig("accountnavigation/configuration/{$storePath}") === '0' ) {
|
| 18 |
+
return $this;
|
| 19 |
+
}
|
| 20 |
+
return parent::addLink($name, $path, $label, $urlParams=array());
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
return parent::addLink($name, $path, $label, $urlParams=array());
|
| 26 |
+
|
| 27 |
+
}
|
| 28 |
+
}
|
app/code/local/Magalter/Accountnavigation/Helper/Data.php
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class Magalter_Accountnavigation_Helper_Data extends Mage_Core_Helper_Abstract
|
| 3 |
+
{
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
}
|
app/code/local/Magalter/Accountnavigation/etc/config.xml
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<Magalter_Accountnavigation>
|
| 5 |
+
<version>1.0</version>
|
| 6 |
+
</Magalter_Accountnavigation>
|
| 7 |
+
</modules>
|
| 8 |
+
|
| 9 |
+
<frontend>
|
| 10 |
+
<translate>
|
| 11 |
+
<modules>
|
| 12 |
+
<Magalter_Accountnavigation>
|
| 13 |
+
<files>
|
| 14 |
+
<default>Magalter_Accountnavigation.csv</default>
|
| 15 |
+
</files>
|
| 16 |
+
</Magalter_Accountnavigation>
|
| 17 |
+
</modules>
|
| 18 |
+
</translate>
|
| 19 |
+
<routers>
|
| 20 |
+
<accountnavigation>
|
| 21 |
+
<use>standard</use>
|
| 22 |
+
<args>
|
| 23 |
+
<module>Magalter_Accountnavigation</module>
|
| 24 |
+
<frontName>accountnavigation</frontName>
|
| 25 |
+
</args>
|
| 26 |
+
</accountnavigation>
|
| 27 |
+
</routers>
|
| 28 |
+
<layout>
|
| 29 |
+
<updates>
|
| 30 |
+
<accountnavigation>
|
| 31 |
+
<file>accountnavigation.xml</file>
|
| 32 |
+
</accountnavigation>
|
| 33 |
+
</updates>
|
| 34 |
+
</layout>
|
| 35 |
+
</frontend>
|
| 36 |
+
<admin>
|
| 37 |
+
<routers>
|
| 38 |
+
<accountnavigation_admin>
|
| 39 |
+
<use>admin</use>
|
| 40 |
+
<args>
|
| 41 |
+
<module>Magalter_Accountnavigation</module>
|
| 42 |
+
<frontName>accountnavigation_admin</frontName>
|
| 43 |
+
</args>
|
| 44 |
+
</accountnavigation_admin>
|
| 45 |
+
</routers>
|
| 46 |
+
</admin>
|
| 47 |
+
|
| 48 |
+
<adminhtml>
|
| 49 |
+
<acl>
|
| 50 |
+
<resources>
|
| 51 |
+
<all>
|
| 52 |
+
<title>Allow Everything</title>
|
| 53 |
+
</all>
|
| 54 |
+
<admin>
|
| 55 |
+
<children>
|
| 56 |
+
<system>
|
| 57 |
+
<children>
|
| 58 |
+
<config>
|
| 59 |
+
<children>
|
| 60 |
+
<accountnavigation>
|
| 61 |
+
<title>Magalter - Accountnavigation</title>
|
| 62 |
+
</accountnavigation>
|
| 63 |
+
</children>
|
| 64 |
+
</config>
|
| 65 |
+
</children>
|
| 66 |
+
</system>
|
| 67 |
+
</children>
|
| 68 |
+
</admin>
|
| 69 |
+
</resources>
|
| 70 |
+
</acl>
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
<layout>
|
| 74 |
+
<updates>
|
| 75 |
+
<accountnavigation>
|
| 76 |
+
<file>do_wishbox.xml</file>
|
| 77 |
+
</accountnavigation>
|
| 78 |
+
</updates>
|
| 79 |
+
</layout>
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
</adminhtml>
|
| 84 |
+
|
| 85 |
+
<global>
|
| 86 |
+
<models>
|
| 87 |
+
<accountnavigation>
|
| 88 |
+
<class>Magalter_Accountnavigation_Model</class>
|
| 89 |
+
<resourceModel>accountnavigation_mysql4</resourceModel>
|
| 90 |
+
</accountnavigation>
|
| 91 |
+
<accountnavigation_mysql4>
|
| 92 |
+
<class>Magalter_Accountnavigation_Model_Mysql4</class>
|
| 93 |
+
</accountnavigation_mysql4>
|
| 94 |
+
</models>
|
| 95 |
+
<blocks>
|
| 96 |
+
<accountnavigation>
|
| 97 |
+
<class>Magalter_Accountnavigation_Block</class>
|
| 98 |
+
</accountnavigation>
|
| 99 |
+
<customer>
|
| 100 |
+
<rewrite>
|
| 101 |
+
<account_navigation>Magalter_Accountnavigation_Block_Account_Navigation</account_navigation>
|
| 102 |
+
</rewrite>
|
| 103 |
+
</customer>
|
| 104 |
+
</blocks>
|
| 105 |
+
<helpers>
|
| 106 |
+
<accountnavigation>
|
| 107 |
+
<class>Magalter_Accountnavigation_Helper</class>
|
| 108 |
+
</accountnavigation>
|
| 109 |
+
</helpers>
|
| 110 |
+
<resources>
|
| 111 |
+
<accountnavigation_write>
|
| 112 |
+
<connection>
|
| 113 |
+
<use>core_write</use>
|
| 114 |
+
</connection>
|
| 115 |
+
</accountnavigation_write>
|
| 116 |
+
<accountnavigation_read>
|
| 117 |
+
<connection>
|
| 118 |
+
<use>core_read</use>
|
| 119 |
+
</connection>
|
| 120 |
+
</accountnavigation_read>
|
| 121 |
+
</resources>
|
| 122 |
+
</global>
|
| 123 |
+
|
| 124 |
+
<default>
|
| 125 |
+
<accountnavigation>
|
| 126 |
+
<configuration>
|
| 127 |
+
<enable>1</enable>
|
| 128 |
+
<customer_account>1</customer_account>
|
| 129 |
+
<customer_account_edit>1</customer_account_edit>
|
| 130 |
+
<sales_billing_agreement>1</sales_billing_agreement>
|
| 131 |
+
<customer_address>1</customer_address>
|
| 132 |
+
<sales_order_history>1</sales_order_history>
|
| 133 |
+
<sales_recurring_profile>1</sales_recurring_profile>
|
| 134 |
+
<review_customer>1</review_customer>
|
| 135 |
+
<tag_customer>1</tag_customer>
|
| 136 |
+
<wishlist>1</wishlist>
|
| 137 |
+
<downloadable_customer_products>1</downloadable_customer_products>
|
| 138 |
+
<newsletter_manage>1</newsletter_manage>
|
| 139 |
+
</configuration>
|
| 140 |
+
<integration>
|
| 141 |
+
<enable>0</enable>
|
| 142 |
+
</integration>
|
| 143 |
+
</accountnavigation>
|
| 144 |
+
</default>
|
| 145 |
+
</config>
|
app/code/local/Magalter/Accountnavigation/etc/system.xml
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
|
| 4 |
+
<sections>
|
| 5 |
+
<accountnavigation translate="label" module="accountnavigation">
|
| 6 |
+
<label>Account Navigation</label>
|
| 7 |
+
<tab>magalter</tab>
|
| 8 |
+
<sort_order>10</sort_order>
|
| 9 |
+
<show_in_default>1</show_in_default>
|
| 10 |
+
<show_in_website>1</show_in_website>
|
| 11 |
+
<show_in_store>1</show_in_store>
|
| 12 |
+
|
| 13 |
+
<groups>
|
| 14 |
+
<configuration translate="label">
|
| 15 |
+
<label>Account settings</label>
|
| 16 |
+
<sort_order>2</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 |
+
|
| 21 |
+
<fields>
|
| 22 |
+
|
| 23 |
+
<enable translate="label">
|
| 24 |
+
<label>Show dashboard on frontend</label>
|
| 25 |
+
<frontend_type>select</frontend_type>
|
| 26 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 27 |
+
<sort_order>1</sort_order>
|
| 28 |
+
<show_in_default>1</show_in_default>
|
| 29 |
+
<show_in_website>1</show_in_website>
|
| 30 |
+
<show_in_store>1</show_in_store>
|
| 31 |
+
</enable>
|
| 32 |
+
|
| 33 |
+
<header>
|
| 34 |
+
<label>Dashboard header</label>
|
| 35 |
+
<frontend_type>text</frontend_type>
|
| 36 |
+
<comment>Leave blank if you want default value to be displayed</comment>
|
| 37 |
+
<sort_order>2</sort_order>
|
| 38 |
+
<show_in_default>1</show_in_default>
|
| 39 |
+
<show_in_website>1</show_in_website>
|
| 40 |
+
<show_in_store>1</show_in_store>
|
| 41 |
+
</header>
|
| 42 |
+
|
| 43 |
+
<customer_account translate="label">
|
| 44 |
+
<label>Enable "Account Dashboard" link</label>
|
| 45 |
+
<frontend_type>select</frontend_type>
|
| 46 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 47 |
+
<sort_order>20</sort_order>
|
| 48 |
+
<show_in_default>1</show_in_default>
|
| 49 |
+
<show_in_website>1</show_in_website>
|
| 50 |
+
<show_in_store>1</show_in_store>
|
| 51 |
+
</customer_account>
|
| 52 |
+
|
| 53 |
+
<customer_account_edit translate="label">
|
| 54 |
+
<label>Enable "Account information" link</label>
|
| 55 |
+
<frontend_type>select</frontend_type>
|
| 56 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 57 |
+
<sort_order>30</sort_order>
|
| 58 |
+
<show_in_default>1</show_in_default>
|
| 59 |
+
<show_in_website>1</show_in_website>
|
| 60 |
+
<show_in_store>1</show_in_store>
|
| 61 |
+
</customer_account_edit>
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
<sales_billing_agreement translate="label">
|
| 65 |
+
<label>Enable "Billing Agreements" link</label>
|
| 66 |
+
<frontend_type>select</frontend_type>
|
| 67 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 68 |
+
<sort_order>30</sort_order>
|
| 69 |
+
<show_in_default>1</show_in_default>
|
| 70 |
+
<show_in_website>1</show_in_website>
|
| 71 |
+
<show_in_store>1</show_in_store>
|
| 72 |
+
</sales_billing_agreement>
|
| 73 |
+
|
| 74 |
+
<customer_address translate="label">
|
| 75 |
+
<label>Enable "Address Book" link</label>
|
| 76 |
+
<frontend_type>select</frontend_type>
|
| 77 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 78 |
+
<sort_order>40</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 |
+
</customer_address>
|
| 83 |
+
|
| 84 |
+
<sales_order_history translate="label">
|
| 85 |
+
<label>Enable "My Orders" link</label>
|
| 86 |
+
<frontend_type>select</frontend_type>
|
| 87 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 88 |
+
<sort_order>41</sort_order>
|
| 89 |
+
<show_in_default>1</show_in_default>
|
| 90 |
+
<show_in_website>1</show_in_website>
|
| 91 |
+
<show_in_store>1</show_in_store>
|
| 92 |
+
</sales_order_history>
|
| 93 |
+
|
| 94 |
+
<sales_recurring_profile translate="label">
|
| 95 |
+
<label>Enable "Recurring Profiles" link</label>
|
| 96 |
+
<frontend_type>select</frontend_type>
|
| 97 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 98 |
+
<sort_order>50</sort_order>
|
| 99 |
+
<show_in_default>1</show_in_default>
|
| 100 |
+
<show_in_website>1</show_in_website>
|
| 101 |
+
<show_in_store>1</show_in_store>
|
| 102 |
+
</sales_recurring_profile>
|
| 103 |
+
|
| 104 |
+
<review_customer translate="label">
|
| 105 |
+
<label>Enable "My Product Reviews" link</label>
|
| 106 |
+
<frontend_type>select</frontend_type>
|
| 107 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 108 |
+
<sort_order>60</sort_order>
|
| 109 |
+
<show_in_default>1</show_in_default>
|
| 110 |
+
<show_in_website>1</show_in_website>
|
| 111 |
+
<show_in_store>1</show_in_store>
|
| 112 |
+
</review_customer>
|
| 113 |
+
|
| 114 |
+
<tag_customer translate="label">
|
| 115 |
+
<label>Enable "My Tags" link</label>
|
| 116 |
+
<frontend_type>select</frontend_type>
|
| 117 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 118 |
+
<sort_order>70</sort_order>
|
| 119 |
+
<show_in_default>1</show_in_default>
|
| 120 |
+
<show_in_website>1</show_in_website>
|
| 121 |
+
<show_in_store>1</show_in_store>
|
| 122 |
+
</tag_customer>
|
| 123 |
+
<wishlist translate="label">
|
| 124 |
+
<label>Enable "My Wishlist" link</label>
|
| 125 |
+
<frontend_type>select</frontend_type>
|
| 126 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 127 |
+
<sort_order>80</sort_order>
|
| 128 |
+
<show_in_default>1</show_in_default>
|
| 129 |
+
<show_in_website>1</show_in_website>
|
| 130 |
+
<show_in_store>1</show_in_store>
|
| 131 |
+
</wishlist>
|
| 132 |
+
<downloadable_customer_products translate="label">
|
| 133 |
+
<label>Enable "My Downloadable Products" link</label>
|
| 134 |
+
<frontend_type>select</frontend_type>
|
| 135 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 136 |
+
<sort_order>90</sort_order>
|
| 137 |
+
<show_in_default>1</show_in_default>
|
| 138 |
+
<show_in_website>1</show_in_website>
|
| 139 |
+
<show_in_store>1</show_in_store>
|
| 140 |
+
</downloadable_customer_products>
|
| 141 |
+
<newsletter_manage translate="label">
|
| 142 |
+
<label>Enable "Newsletter Subscriptions" link</label>
|
| 143 |
+
<frontend_type>select</frontend_type>
|
| 144 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 145 |
+
<sort_order>100</sort_order>
|
| 146 |
+
<show_in_default>1</show_in_default>
|
| 147 |
+
<show_in_website>1</show_in_website>
|
| 148 |
+
<show_in_store>1</show_in_store>
|
| 149 |
+
</newsletter_manage>
|
| 150 |
+
|
| 151 |
+
</fields>
|
| 152 |
+
</configuration>
|
| 153 |
+
<integration>
|
| 154 |
+
<label>Integration settings</label>
|
| 155 |
+
<sort_order>3</sort_order>
|
| 156 |
+
<show_in_default>1</show_in_default>
|
| 157 |
+
<show_in_website>1</show_in_website>
|
| 158 |
+
<show_in_store>1</show_in_store>
|
| 159 |
+
|
| 160 |
+
<fields>
|
| 161 |
+
|
| 162 |
+
<enable translate="label">
|
| 163 |
+
<label>All changes will affect native customer account dashboard</label>
|
| 164 |
+
<frontend_type>select</frontend_type>
|
| 165 |
+
<source_model>adminhtml/system_config_source_Yesno</source_model>
|
| 166 |
+
<sort_order>1</sort_order>
|
| 167 |
+
<show_in_default>1</show_in_default>
|
| 168 |
+
<show_in_website>1</show_in_website>
|
| 169 |
+
<show_in_store>1</show_in_store>
|
| 170 |
+
</enable>
|
| 171 |
+
</fields>
|
| 172 |
+
</integration>
|
| 173 |
+
</groups>
|
| 174 |
+
</accountnavigation>
|
| 175 |
+
</sections>
|
| 176 |
+
|
| 177 |
+
</config>
|
app/code/local/Magalter/Config/Helper/Data.php
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
class Magalter_Config_Helper_Data extends Mage_Core_Helper_Abstract
|
| 5 |
+
{
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
}
|
app/code/local/Magalter/Config/etc/config.xml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<Magalter_Config>
|
| 5 |
+
<version>1.0</version>
|
| 6 |
+
</Magalter_Config>
|
| 7 |
+
</modules>
|
| 8 |
+
|
| 9 |
+
<global>
|
| 10 |
+
<helpers>
|
| 11 |
+
<config>
|
| 12 |
+
<class>Magalter_Config_Helper</class>
|
| 13 |
+
</config>
|
| 14 |
+
</helpers>
|
| 15 |
+
</global>
|
| 16 |
+
</config>
|
app/code/local/Magalter/Config/etc/system.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<tabs>
|
| 4 |
+
<magalter translate="label" module="config">
|
| 5 |
+
<label>Magalter</label>
|
| 6 |
+
<sort_order>150</sort_order>
|
| 7 |
+
</magalter>
|
| 8 |
+
</tabs>
|
| 9 |
+
</config>
|
app/design/frontend/default/default/layout/accountnavigation.xml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
|
| 3 |
+
<layout version="0.1.0">
|
| 4 |
+
|
| 5 |
+
<default>
|
| 6 |
+
<reference name="right">
|
| 7 |
+
<block type="customer/account_navigation" name="accountnavigation_navigation" before="-" template="accountnavigation/navigation.phtml">
|
| 8 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/customer_account" translate="label" module="accountnavigation"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
|
| 9 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/customer_account_edit" translate="label" module="accountnavigation"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
|
| 10 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/sales_billing_agreement" translate="label" module="accountnavigation"><name>do_sales_billing_agreement</name><path>sales/billing_agreement/</path><label>Billing Agreements</label></action>
|
| 11 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/customer_address" translate="label" module="accountnavigation"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
|
| 12 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/sales_recurring_profile" translate="label" module="accountnavigation"><name>do_recurring_profiles</name><path>sales/recurring_profile/</path><label>Recurring Profiles</label></action>
|
| 13 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/review_customer" translate="label" module="accountnavigation"><name>do_product_reviews</name><path>review/customer/</path><label>My Product Reviews</label></action>
|
| 14 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/sales_order_history" translate="label" module="accountnavigation"><name>do_sales_order_history</name><path>sales/order/history</path><label>My Orders</label></action>
|
| 15 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/tag_customer" translate="label" module="accountnavigation"><name>do_product_tags</name><path>tag/customer/</path><label>My Tags</label></action>
|
| 16 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/wishlist" translate="label" module="accountnavigation"><name>do_customer_wishlist</name><path>wishlist/</path><label>My Wishlist</label></action>
|
| 17 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/downloadable_customer_products" translate="label" module="accountnavigation"><name>do_downloadable_products</name><path>downloadable/customer/products/</path><label>My Downloadable Products</label></action>
|
| 18 |
+
<action method="addLink" ifconfig="accountnavigation/configuration/newsletter_manage" translate="label" module="accountnavigation"><name>do_newsletter_subscriptions</name><path>newsletter/manage/</path><label>Newsletter Subscriptions</label></action>
|
| 19 |
+
</block>
|
| 20 |
+
</reference>
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
</default>
|
| 33 |
+
</layout>
|
app/design/frontend/default/default/template/accountnavigation/navigation.phtml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
<?php
|
| 3 |
+
|
| 4 |
+
$header = (string) Mage::getStoreConfig('accountnavigation/configuration/header');
|
| 5 |
+
if(trim($header) == "") {
|
| 6 |
+
$header = $this->__('My Account');
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
?>
|
| 10 |
+
|
| 11 |
+
<?php if(Mage::getSingleton('customer/session')->getCustomer()->getId() && Mage::app()->getRequest()->getModuleName() != 'customer' && Mage::getStoreConfig('accountnavigation/configuration/enable')): ?>
|
| 12 |
+
<div class="block block-account">
|
| 13 |
+
<div class="block-title">
|
| 14 |
+
<strong><span><?php echo $header; ?></span></strong>
|
| 15 |
+
</div>
|
| 16 |
+
<div class="block-content">
|
| 17 |
+
<ul>
|
| 18 |
+
<?php $_links = $this->getLinks(); ?>
|
| 19 |
+
<?php $_index = 1; ?>
|
| 20 |
+
<?php $_count = count($_links); ?>
|
| 21 |
+
<?php foreach ($_links as $_link): ?>
|
| 22 |
+
<?php $_last = ($_index++ >= $_count); ?>
|
| 23 |
+
<?php if ($this->isActive($_link)): ?>
|
| 24 |
+
<li class="current<?php echo ($_last ? ' last' : '') ?>"><strong><?php echo $_link->getLabel() ?></strong></li>
|
| 25 |
+
<?php else: ?>
|
| 26 |
+
<li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a></li>
|
| 27 |
+
<?php endif; ?>
|
| 28 |
+
<?php endforeach; ?>
|
| 29 |
+
</ul>
|
| 30 |
+
</div>
|
| 31 |
+
</div>
|
| 32 |
+
<?php endif; ?>
|
app/etc/modules/Magalter_Accountnavigation.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<config>
|
| 2 |
+
<modules>
|
| 3 |
+
<Magalter_Accountnavigation>
|
| 4 |
+
<active>true</active>
|
| 5 |
+
<codePool>local</codePool>
|
| 6 |
+
</Magalter_Accountnavigation>
|
| 7 |
+
</modules>
|
| 8 |
+
</config>
|
app/etc/modules/Magalter_Config.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<config>
|
| 2 |
+
<modules>
|
| 3 |
+
<Magalter_Config>
|
| 4 |
+
<active>true</active>
|
| 5 |
+
<codePool>local</codePool>
|
| 6 |
+
</Magalter_Config>
|
| 7 |
+
</modules>
|
| 8 |
+
</config>
|
app/locale/en_US/Magalter_Accountnavigation.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"Recurring Profiles","Recurring Profiles"
|
| 2 |
+
"Address Book","Address Book"
|
| 3 |
+
"My Product Reviews","My Product Reviews"
|
| 4 |
+
"My Orders","My Orders"
|
| 5 |
+
"My Tags","My Tags"
|
| 6 |
+
"My Wishlist","My Wishlist"
|
| 7 |
+
"My Downloadable Products","My Downloadable Products"
|
| 8 |
+
"Newsletter Subscriptions","Newsletter Subscriptions"
|
| 9 |
+
"Account Dashboard","Account Dashboard"
|
| 10 |
+
"Account Information","Account Information"
|
| 11 |
+
"Billing Agreements","Billing Agreements"
|
package.xml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>magalter-accountnavigation</name>
|
| 4 |
+
<version>1.0.0.0</version>
|
| 5 |
+
<stability>stable</stability>
|
| 6 |
+
<license uri="http://www.magalter.com/license">Custom License</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>Account navigation is a small, but very convenient application that allows managing customer account navigation menu.</summary>
|
| 10 |
+
<description>Account navigation is a small, but very convenient application that allows managing customer account navigation menu. Customer account menu can be configured to be displayed at any desired position on frontend, all or any of its components. By default the application makes a copy of standard menu and all changes don not affect the original view.
|
| 11 |
+

|
| 12 |
+
Main features:
|
| 13 |
+
Easy customization
|
| 14 |
+
Ability to hide or display customer menu at any position on frontend
|
| 15 |
+
Complete multistore support</description>
|
| 16 |
+
<notes>Account navigation is a small, but very convenient application that allows managing customer account navigation menu.</notes>
|
| 17 |
+
<authors><author><name>Magalter</name><user>magalter</user><email>admin@magalter.com</email></author></authors>
|
| 18 |
+
<date>2011-11-13</date>
|
| 19 |
+
<time>12:37:20</time>
|
| 20 |
+
<contents><target name="magelocal"><dir name="Magalter"><dir name="Accountnavigation"><dir name="Block"><dir name="Account"><file name="Navigation.php" hash="7d764590bba8418dad33f79852cdab30"/></dir></dir><dir name="Helper"><file name="Data.php" hash="9c4d4595951fb637020798604667858c"/></dir><dir name="etc"><file name="config.xml" hash="e4905abd8514d79a747c2393f7028cfb"/><file name="system.xml" hash="e30260dc05bb9f307b94a7e8656326fd"/></dir></dir><dir name="Config"><dir name="Helper"><file name="Data.php" hash="49377d074fbfce4b2c504c741d86cd5f"/></dir><dir name="etc"><file name="config.xml" hash="8011263061d73e74d4ee2298b6d01f4d"/><file name="system.xml" hash="841f6b6aa6034d5c4ddaa887f91d56ff"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="accountnavigation.xml" hash="6154fb788dc87cc3f57667dae8786d98"/></dir><dir name="template"><dir name="accountnavigation"><file name="navigation.phtml" hash="7d15522b246ea784e578e1fb270b3c0b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magalter_Accountnavigation.xml" hash="a0eee03d91056b661b1c0bba8fa84fde"/><file name="Magalter_Config.xml" hash="ab239b707d6a04aa4369ab322d8137c1"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magalter_Accountnavigation.csv" hash="7c7075ae238755182cc5bbcde12c6206"/></dir></target></contents>
|
| 21 |
+
<compatible/>
|
| 22 |
+
<dependencies><required><php><min>5.2.0</min><max>5.3.0</max></php></required></dependencies>
|
| 23 |
+
</package>
|
