Version Notes
This Extension helps to create the customer attribute and provides the backend control to create and manage and create attribute will be used in customer general information
Download this release
Release Info
Developer | AmarInfotech |
Extension | Amar_Profile |
Version | 0.3.0 |
Comparing to | |
See all releases |
Code changes from version 0.2.0 to 0.3.0
- app/code/community/Amar/Profile/etc/config.xml +1 -1
- app/code/community/Amar/Profile/sql/profile_setup/{mysql4-install-0.2.0.php → mysql4-install-0.3.0.php} +0 -0
- app/design/frontend/base/default/layout/profile.xml +5 -5
- app/design/frontend/base/default/template/profile/customer/account/create.phtml +27 -35
- package.xml +4 -4
app/code/community/Amar/Profile/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Amar_Profile>
|
5 |
-
<version>0.
|
6 |
</Amar_Profile>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Amar_Profile>
|
5 |
+
<version>0.3.0</version>
|
6 |
</Amar_Profile>
|
7 |
</modules>
|
8 |
|
app/code/community/Amar/Profile/sql/profile_setup/{mysql4-install-0.2.0.php → mysql4-install-0.3.0.php}
RENAMED
File without changes
|
app/design/frontend/base/default/layout/profile.xml
CHANGED
@@ -3,19 +3,19 @@
|
|
3 |
<default>
|
4 |
</default>
|
5 |
<customer_account_create>
|
6 |
-
<reference name="
|
7 |
<block type="profile/customer_account_create" name="profile.form.additional.info" template="profile/customer/account/create.phtml" before="captcha" after="-" />
|
8 |
</reference>
|
9 |
</customer_account_create>
|
10 |
<customer_account_edit>
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
</customer_account_edit>
|
15 |
|
16 |
<!--
|
17 |
<checkout_onepage_index>
|
18 |
-
|
19 |
<reference name="form.additional.info">
|
20 |
<block type="profile/customer_account_create" name="profile.form.additional.info" template="profile/customer/account/edit.phtml" >
|
21 |
<action method="setData">
|
3 |
<default>
|
4 |
</default>
|
5 |
<customer_account_create>
|
6 |
+
<reference name="content">
|
7 |
<block type="profile/customer_account_create" name="profile.form.additional.info" template="profile/customer/account/create.phtml" before="captcha" after="-" />
|
8 |
</reference>
|
9 |
</customer_account_create>
|
10 |
<customer_account_edit>
|
11 |
+
<reference name='content'>
|
12 |
+
<block type="profile/customer_account_create" name="profile.form.additional.info" template="profile/customer/account/edit.phtml" />
|
13 |
+
</reference>
|
14 |
</customer_account_edit>
|
15 |
|
16 |
<!--
|
17 |
<checkout_onepage_index>
|
18 |
+
<reference name="checkout.onepage.billing">
|
19 |
<reference name="form.additional.info">
|
20 |
<block type="profile/customer_account_create" name="profile.form.additional.info" template="profile/customer/account/edit.phtml" >
|
21 |
<action method="setData">
|
app/design/frontend/base/default/template/profile/customer/account/create.phtml
CHANGED
@@ -1,50 +1,42 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*
|
4 |
* To change this template, choose Tools | Templates
|
5 |
* and open the template in the editor.
|
6 |
*/
|
7 |
?>
|
8 |
<?php
|
9 |
-
foreach($this->getAttributeCodes() as $_attributeCode)
|
10 |
-
{
|
11 |
?>
|
12 |
<li class="fields amar-profile">
|
13 |
-
|
14 |
</li>
|
15 |
-
|
16 |
-
}
|
17 |
-
?>
|
18 |
|
19 |
<script type="text/javascript">
|
20 |
document.observe("dom:loaded",function(){
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
ulElement.insert({"bottom":liElement});
|
44 |
-
}
|
45 |
-
el.remove();
|
46 |
-
});
|
47 |
-
}
|
48 |
-
});
|
49 |
});
|
50 |
</script>
|
1 |
<?php
|
|
|
2 |
/*
|
3 |
* To change this template, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
?>
|
7 |
<?php
|
8 |
+
foreach ($this->getAttributeCodes() as $_attributeCode) {
|
|
|
9 |
?>
|
10 |
<li class="fields amar-profile">
|
11 |
+
<?php echo $this->getAttributeFrontendHtmlControl($_attributeCode); ?>
|
12 |
</li>
|
13 |
+
<?php
|
14 |
+
}
|
15 |
+
?>
|
16 |
|
17 |
<script type="text/javascript">
|
18 |
document.observe("dom:loaded",function(){
|
19 |
+
var amarProfileLis = $$('li.amar-profile');
|
20 |
+
|
21 |
+
amarProfileLis.each(function(el,ind){
|
22 |
+
var liElement = new Element("li");
|
23 |
+
liElement.addClassName("fields");
|
24 |
+
liElement.innerHTML = el.innerHTML;
|
25 |
+
|
26 |
+
if($$("li.control").length > 0)
|
27 |
+
{
|
28 |
+
$$("li.control").each(function(e,i){
|
29 |
+
if((e.down("input",0).readAttribute("id") == 'is_subscribed') && (i == 0))
|
30 |
+
{
|
31 |
+
e.insert({"before":liElement});
|
32 |
+
}
|
33 |
+
});
|
34 |
+
}
|
35 |
+
else
|
36 |
+
{
|
37 |
+
ulElement.insert({"bottom":liElement});
|
38 |
+
}
|
39 |
+
el.remove();
|
40 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
});
|
42 |
</script>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Amar_Profile</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>This Extension helps to create the customer attribute and provides the backend control to create and manage and create attribute will be used in customer general information.</description>
|
11 |
<notes>This Extension helps to create the customer attribute and provides the backend control to create and manage and create attribute will be used in customer general information</notes>
|
12 |
<authors><author><name>AmarInfotech</name><user>Amar</user><email>info@amarinfotech.com</email></author></authors>
|
13 |
-
<date>2014-05-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Amar"><dir name="Profile"><dir name="Block"><dir name="Adminhtml"><dir name="Customer"><dir name="Attribute"><dir name="Edit"><file name="Form.php" hash="bc8725fc0ed75bfa0741eb38e6c77faf"/><dir name="Tab"><file name="Main.php" hash="de003fabb3f4c8a11e66f4b39ce89c26"/><file name="Options.php" hash="f8a9b18c7acf71ddf34b6f23ca24a57c"/><file name="System.php" hash="50d582b0f580a5a524700b6c59029bc5"/></dir><file name="Tabs.php" hash="c6680da61dda70e123412c47224919e5"/></dir><file name="Edit.php" hash="b0ec4086b79c6cd1fe43444523b9d2be"/><file name="Grid.php" hash="72120452b25513d160493c76403bce4d"/></dir><file name="Attribute.php" hash="ea0c9db354e9826536857059a84e14e7"/></dir></dir><dir name="Customer"><dir name="Account"><file name="Create.php" hash="0a8fdd9007f9bc1ea033c6ff835cfdbe"/></dir></dir><file name="Profile.php" hash="f64035ee37649dd45ad77720cc8226db"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Customer"><file name="AttributeController.php" hash="0e37edc5c370f2d3107fd860ab7f0313"/></dir></dir><file name="IndexController.php" hash="84f1bc97bba2242ed1319b4315ea62ff"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c0937f0cf17ab2a47d20027836b3a1cc"/><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Amar_Profile</name><channel>community</channel><min>1.6</min><max>1.9</max></package></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Amar_Profile</name>
|
4 |
+
<version>0.3.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>
|
10 |
<description>This Extension helps to create the customer attribute and provides the backend control to create and manage and create attribute will be used in customer general information.</description>
|
11 |
<notes>This Extension helps to create the customer attribute and provides the backend control to create and manage and create attribute will be used in customer general information</notes>
|
12 |
<authors><author><name>AmarInfotech</name><user>Amar</user><email>info@amarinfotech.com</email></author></authors>
|
13 |
+
<date>2014-05-23</date>
|
14 |
+
<time>11:00:06</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Amar"><dir name="Profile"><dir name="Block"><dir name="Adminhtml"><dir name="Customer"><dir name="Attribute"><dir name="Edit"><file name="Form.php" hash="bc8725fc0ed75bfa0741eb38e6c77faf"/><dir name="Tab"><file name="Main.php" hash="de003fabb3f4c8a11e66f4b39ce89c26"/><file name="Options.php" hash="f8a9b18c7acf71ddf34b6f23ca24a57c"/><file name="System.php" hash="50d582b0f580a5a524700b6c59029bc5"/></dir><file name="Tabs.php" hash="c6680da61dda70e123412c47224919e5"/></dir><file name="Edit.php" hash="b0ec4086b79c6cd1fe43444523b9d2be"/><file name="Grid.php" hash="72120452b25513d160493c76403bce4d"/></dir><file name="Attribute.php" hash="ea0c9db354e9826536857059a84e14e7"/></dir></dir><dir name="Customer"><dir name="Account"><file name="Create.php" hash="0a8fdd9007f9bc1ea033c6ff835cfdbe"/></dir></dir><file name="Profile.php" hash="f64035ee37649dd45ad77720cc8226db"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Customer"><file name="AttributeController.php" hash="0e37edc5c370f2d3107fd860ab7f0313"/></dir></dir><file name="IndexController.php" hash="84f1bc97bba2242ed1319b4315ea62ff"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c0937f0cf17ab2a47d20027836b3a1cc"/><file name="config.xml" hash="22aa1735c2baf8d46180a02a0098d698"/></dir><dir name="Helper"><file name="Data.php" hash="178a285868201245fb3081568b47d748"/><file name="Product.php" hash="5bbeb6168666b6298c0a8b6cf0da1f62"/></dir><dir name="Model"><dir name="Customer"><file name="Attribute.php" hash="d8eaeb270892965ab6f3515f6cf7d7c1"/></dir><dir name="Mysql4"><dir name="Customer"><dir name="Attribute"><file name="Collection.php" hash="7649220d3fbc1609540e8da38b5c5dbf"/></dir></dir><dir name="Profile"><file name="Collection.php" hash="cf117bb9387b6585138459e5e4893aab"/></dir><file name="Profile.php" hash="52e2360f0bd30ed858dd2cc7ef724a51"/><file name="Setup.php" hash="3ec40b3b2d0d7149503f2ab2f3683169"/></dir><file name="Profile.php" hash="ce2bc5a09bdb4fe4bec277462e6ac3f6"/></dir><dir name="sql"><dir name="profile_setup"><file name="mysql4-install-0.3.0.php" hash="d8834258f80ec582edb79d558bd747ae"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Amar_Profile.xml" hash="413caa965c13cb857187e5975a6a3015"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="profile.xml" hash="f8a396e7610ec278706485316bf2771a"/></dir><dir name="template"><dir name="profile"><dir name="customer"><dir name="attribute"><file name="js.phtml" hash="58c136f2c9a5408eff512b2c8ba6fc59"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="profile.xml" hash="7626b18d044cee5c000e3020c8d5676b"/></dir><dir name="template"><dir name="profile"><dir name="customer"><dir name="account"><file name="create.phtml" hash="931f0745196ae5cce269d86ea88c9aca"/><file name="edit.phtml" hash="68932091cccd0dba2655638df0ff1d3d"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="profile"><file name="conflictAttribute.js" hash="429061ff085844228016d377843929e8"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Amar_Profile</name><channel>community</channel><min>1.6</min><max>1.9</max></package></required></dependencies>
|
18 |
</package>
|