Version Notes
Locale language file was added. So the front end box can be translated now
Download this release
Release Info
Developer | Magento Core Team |
Extension | Manufacturer_Model_Number |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
app/code/local/Pektsekye/Mmn/etc/config.xml
CHANGED
@@ -21,7 +21,16 @@
|
|
21 |
<file>mmn.xml</file>
|
22 |
</mmn>
|
23 |
</updates>
|
24 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
</frontend>
|
26 |
<admin>
|
27 |
<routers>
|
21 |
<file>mmn.xml</file>
|
22 |
</mmn>
|
23 |
</updates>
|
24 |
+
</layout>
|
25 |
+
<translate>
|
26 |
+
<modules>
|
27 |
+
<Pektsekye_Mmn>
|
28 |
+
<files>
|
29 |
+
<default>Pektsekye_Mmn.csv</default>
|
30 |
+
</files>
|
31 |
+
</Pektsekye_Mmn>
|
32 |
+
</modules>
|
33 |
+
</translate>
|
34 |
</frontend>
|
35 |
<admin>
|
36 |
<routers>
|
app/design/frontend/default/default/template/mmn/mmn.phtml
CHANGED
@@ -18,9 +18,9 @@ $rows = $read->fetchAll($select);
|
|
18 |
|
19 |
if (count($rows) > 0) {
|
20 |
|
21 |
-
$Manufacturer_array[] = array('id' => 'all', 'text' => 'Choose Manufacturer');
|
22 |
-
$Model_array[] = array('id' => 'all', 'text' => 'Choose Model');
|
23 |
-
$Number_array[] = array('id' => 'all', 'text' => 'Choose Number');
|
24 |
|
25 |
$javascript = '<script language="javascript" type="text/javascript">
|
26 |
var a = new Array();
|
@@ -61,7 +61,7 @@ var c = new Array();';
|
|
61 |
$javascript .= '
|
62 |
function pop_model(){
|
63 |
|
64 |
-
var o ="<select name=\"Model\" onChange=\"pop_number();\" style=\"width: 100%\"><option value=\"all\">Choose Model</option>";
|
65 |
var sv = document.manufacturer_model_number.Manufacturer.value;
|
66 |
if(sv != "all"){
|
67 |
var v = a.length;
|
@@ -71,11 +71,11 @@ function pop_model(){
|
|
71 |
}
|
72 |
o+="</select>";
|
73 |
document.getElementById("model_select").innerHTML= o;
|
74 |
-
document.getElementById("number_select").innerHTML= "<select name=\"Number\" style=\"width: 100%\"><option value=\"all\">Choose Number</option></select>";
|
75 |
}
|
76 |
function pop_number(){
|
77 |
|
78 |
-
var o ="<select name=\"Number\" style=\"width: 100%\" onChange=\"document.manufacturer_model_number.submit();\"><option value=\"all\">Choose Number</option>";
|
79 |
var sv = document.manufacturer_model_number.Manufacturer.value;
|
80 |
if(sv != "all"){
|
81 |
var v = a.length;
|
@@ -128,7 +128,7 @@ function pop_number(){
|
|
128 |
?>
|
129 |
<div class="box base-mini mini-poll">
|
130 |
<div class="head">
|
131 |
-
<h4><span><?php echo $this->__('Select Printer') ?></span></h4>
|
132 |
</div>
|
133 |
<form name="manufacturer_model_number" action="<?php
|
134 |
$hidden = '';
|
@@ -165,7 +165,7 @@ function pop_number(){
|
|
165 |
</select></span><br><br>
|
166 |
</div>
|
167 |
<div class="actions">
|
168 |
-
<button class="form-button-alt right" type="submit"><span><?php echo $this->__('Go') ?></span></button>
|
169 |
<?php if(isset($Manufacturer_selected_var)): ?>
|
170 |
<a href="<?php
|
171 |
if($module == 'catalog_category_view'){
|
@@ -175,7 +175,7 @@ function pop_number(){
|
|
175 |
} else {
|
176 |
echo Mage::getBaseUrl() . '?';
|
177 |
}
|
178 |
-
?>Manufacturer=all&Model=all&Number=all"
|
179 |
<?php endif ?>
|
180 |
</div>
|
181 |
</form>
|
18 |
|
19 |
if (count($rows) > 0) {
|
20 |
|
21 |
+
$Manufacturer_array[] = array('id' => 'all', 'text' => $this->__('Choose Manufacturer'));
|
22 |
+
$Model_array[] = array('id' => 'all', 'text' => $this->__('Choose Model'));
|
23 |
+
$Number_array[] = array('id' => 'all', 'text' => $this->__('Choose Number'));
|
24 |
|
25 |
$javascript = '<script language="javascript" type="text/javascript">
|
26 |
var a = new Array();
|
61 |
$javascript .= '
|
62 |
function pop_model(){
|
63 |
|
64 |
+
var o ="<select name=\"Model\" onChange=\"pop_number();\" style=\"width: 100%\"><option value=\"all\">' . $this->__('Choose Model') . '</option>";
|
65 |
var sv = document.manufacturer_model_number.Manufacturer.value;
|
66 |
if(sv != "all"){
|
67 |
var v = a.length;
|
71 |
}
|
72 |
o+="</select>";
|
73 |
document.getElementById("model_select").innerHTML= o;
|
74 |
+
document.getElementById("number_select").innerHTML= "<select name=\"Number\" style=\"width: 100%\"><option value=\"all\">' . $this->__('Choose Number') . '</option></select>";
|
75 |
}
|
76 |
function pop_number(){
|
77 |
|
78 |
+
var o ="<select name=\"Number\" style=\"width: 100%\" onChange=\"document.manufacturer_model_number.submit();\"><option value=\"all\">' . $this->__('Choose Number') . '</option>";
|
79 |
var sv = document.manufacturer_model_number.Manufacturer.value;
|
80 |
if(sv != "all"){
|
81 |
var v = a.length;
|
128 |
?>
|
129 |
<div class="box base-mini mini-poll">
|
130 |
<div class="head">
|
131 |
+
<h4><span><?php echo $this->__('Select Printer'); ?></span></h4>
|
132 |
</div>
|
133 |
<form name="manufacturer_model_number" action="<?php
|
134 |
$hidden = '';
|
165 |
</select></span><br><br>
|
166 |
</div>
|
167 |
<div class="actions">
|
168 |
+
<button class="form-button-alt right" type="submit"><span><?php echo $this->__('Go'); ?></span></button>
|
169 |
<?php if(isset($Manufacturer_selected_var)): ?>
|
170 |
<a href="<?php
|
171 |
if($module == 'catalog_category_view'){
|
175 |
} else {
|
176 |
echo Mage::getBaseUrl() . '?';
|
177 |
}
|
178 |
+
?>Manufacturer=all&Model=all&Number=all"><?php echo $this->__('Clear Printer'); ?></a>
|
179 |
<?php endif ?>
|
180 |
</div>
|
181 |
</form>
|
app/locale/en_US/Pektsekye_Mmn.csv
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Select Printer","Select Printer"
|
2 |
+
"Choose Manufacturer","Choose Manufacturer"
|
3 |
+
"Choose Model","Choose Model"
|
4 |
+
"Choose Number","Choose Number"
|
5 |
+
"Go","Go"
|
6 |
+
"Clear Printer","Clear Printer"
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Manufacturer_Model_Number</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -11,11 +11,11 @@
|
|
11 |
|
12 |
HOW TO USE:
|
13 |
Go to your Magento admin panel ->Mmn -> Manage Items and add MMN items to all your products.</description>
|
14 |
-
<notes>
|
15 |
<authors><author><name>Stanislav</name><user>auto-converted</user><email>pektsekye@gmail.com</email></author></authors>
|
16 |
-
<date>2009-08-
|
17 |
-
<time>
|
18 |
-
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mmn.xml" hash="ccce6ec54f314a5cba835ed503aab154"/></dir><dir name="template"><dir name="mmn"><file name="importExport.phtml" hash="23a7b58d473f29f66b943f5ca678dd8f"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="mmn.xml" hash="8252b14ca06d69664202ed9cbdd7a41b"/></dir><dir name="template"><dir name="mmn"><file name="mmn.phtml" hash="
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Manufacturer_Model_Number</name>
|
4 |
+
<version>1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
11 |
|
12 |
HOW TO USE:
|
13 |
Go to your Magento admin panel ->Mmn -> Manage Items and add MMN items to all your products.</description>
|
14 |
+
<notes>Locale language file was added. So the front end box can be translated now</notes>
|
15 |
<authors><author><name>Stanislav</name><user>auto-converted</user><email>pektsekye@gmail.com</email></author></authors>
|
16 |
+
<date>2009-08-16</date>
|
17 |
+
<time>23:59:44</time>
|
18 |
+
<contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mmn.xml" hash="ccce6ec54f314a5cba835ed503aab154"/></dir><dir name="template"><dir name="mmn"><file name="importExport.phtml" hash="23a7b58d473f29f66b943f5ca678dd8f"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="mmn.xml" hash="8252b14ca06d69664202ed9cbdd7a41b"/></dir><dir name="template"><dir name="mmn"><file name="mmn.phtml" hash="6760228899a34961124a2cffd791532a"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Pektsekye_Mmn.csv" hash="3b26c323d14dbeb131a21770ab5de639"/></dir></target><target name="mageetc"><dir name="modules"><file name="Pektsekye_Catalog.xml" hash="89e3ec6056b4ba53d06df1370b347d42"/><file name="Pektsekye_CatalogSearch.xml" hash="c1152b8350ae4906db9736369c8e5edf"/><file name="Pektsekye_Mmn.xml" hash="44dbf66ea36b134b159edb1d51878a2a"/></dir></target><target name="magelocal"><dir name="Pektsekye"><dir name="Catalog"><dir name="Model"><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Category.php" hash="581fafac71ce0965cb48543bc8b26d80"/></dir></dir></dir><file name="Category.php" hash="418df457636d063fbcbc0e7266b2cf0b"/></dir></dir><dir name="CatalogSearch"><dir name="Model"><file name="Layer.php" hash="92da80a8187107d6eeebd25eaa718655"/></dir></dir><dir name="Mmn"><dir name="Block"><dir name="Adminhtml"><dir name="Mmn"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="c43285bb92566f85d1451297cb83f81a"/></dir><file name="Form.php" hash="3e2719346ecd021383a091efa5621611"/><file name="Tabs.php" hash="566c0485654104d853ccc55c78336cc4"/></dir><file name="Edit.php" hash="75610373c3eb5e335a3ff344716a1ea3"/><file name="Grid.php" hash="f0c4dbcbc1272a417780865d959da86f"/><file name="ImportExport.php" hash="a475879ab7f6c831aa01fc9927fda212"/></dir><file name="Mmn.php" hash="6ff0685d30001b1d32511bc0cd091c02"/></dir><dir name="Product"><file name="Result.php" hash="00641875e34a3bc2851f6785a9975f81"/></dir><file name="Mmn.php" hash="9c6bc640466ef349fc9fac3023f9f332"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MmnController.php" hash="23e03d59bdf2065d3d6bd9b3e6edd36b"/></dir><file name="IndexController.php" hash="aa43963369f7166820a20bec5c2d1c8b"/><file name="ProductController.php" hash="6f36953551c101f2d0e890b2569b8444"/></dir><dir name="etc"><file name="config.xml" hash="d04db3df66ea8f2f26da21101537392b"/><file name="system.xml" hash="9d2b000bba821307bde419a4e2b2fb13"/></dir><dir name="Helper"><file name="Data.php" hash="8b54f296fe7c06784a9fba900f9b0c35"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Mmn"><file name="Collection.php" hash="7a9240e2cef54b5e1796fb12d2d9369f"/></dir><file name="Mmn.php" hash="c67333dbda050636e9a85e7cfd963bdb"/></dir><file name="Mmn.php" hash="cef143b02735b99c273a8188efee3a38"/><file name="Status.php" hash="7706d422d80badeac80e81985fc2fe79"/></dir><dir name="sql"><dir name="mmn_setup"><file name="mysql4-install-0.1.0.php" hash="e0b1a7ec159b3ff8aa0d16cc4c3d32a0"/></dir></dir></dir></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies/>
|
21 |
</package>
|