Version Notes
First Preview Release
Download this release
Release Info
Developer | NetGo |
Extension | Netgo_Ultrafastproduct |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/community/Netgo/Ultrafastproduct/Helper/Data.php +45 -0
- app/code/community/Netgo/Ultrafastproduct/Model/Attributes/Stockavail.php +24 -0
- app/code/community/Netgo/Ultrafastproduct/Model/Attributes/Visibility.php +20 -0
- app/code/community/Netgo/Ultrafastproduct/Model/Observer.php +93 -0
- app/code/community/Netgo/Ultrafastproduct/etc/adminhtml.xml +36 -0
- app/code/community/Netgo/Ultrafastproduct/etc/config.xml +45 -0
- app/code/community/Netgo/Ultrafastproduct/etc/system.xml +262 -0
- app/etc/modules/Netgo_Ultrafastproduct.xml +23 -0
- package.xml +20 -0
app/code/community/Netgo/Ultrafastproduct/Helper/Data.php
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/***************************************
|
3 |
+
*** Ultra Fast Product Extension ***
|
4 |
+
***************************************
|
5 |
+
*
|
6 |
+
* @copyright Copyright (c) 2015
|
7 |
+
* @company NetAttingo Technologies
|
8 |
+
* @package Netgo_Prohistory
|
9 |
+
* @author Vipin
|
10 |
+
* @dev 77vips@gmail.com
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
class Netgo_Ultrafastproduct_Helper_Data extends Mage_Core_Helper_Abstract
|
14 |
+
{
|
15 |
+
|
16 |
+
public function __construct()
|
17 |
+
{
|
18 |
+
//if module is disabled then return from here.
|
19 |
+
$isactive=Mage::getStoreConfig('ufp_settings/ufpset_general/active');//die;
|
20 |
+
if($isactive==0){
|
21 |
+
return;
|
22 |
+
}
|
23 |
+
}
|
24 |
+
public function getByName($name)
|
25 |
+
{
|
26 |
+
return Mage::getStoreConfig('ufp_settings/ufpset_settings/'.$name);
|
27 |
+
}
|
28 |
+
|
29 |
+
public function getMetaData($name)
|
30 |
+
{
|
31 |
+
return Mage::getStoreConfig('ufp_settings/ufpset_metadata/'.$name);
|
32 |
+
}
|
33 |
+
|
34 |
+
public function getPriceTabValues($name)
|
35 |
+
{
|
36 |
+
return Mage::getStoreConfig('ufp_settings/ufpset_prices/'.$name);
|
37 |
+
}
|
38 |
+
|
39 |
+
public function getStockData($name)
|
40 |
+
{
|
41 |
+
return Mage::getStoreConfig('ufp_settings/ufpset_inventory/'.$name);
|
42 |
+
}
|
43 |
+
|
44 |
+
}
|
45 |
+
|
app/code/community/Netgo/Ultrafastproduct/Model/Attributes/Stockavail.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/***************************************
|
3 |
+
*** Ultra Fast Product Extension ***
|
4 |
+
***************************************
|
5 |
+
*
|
6 |
+
* @copyright Copyright (c) 2015
|
7 |
+
* @company NetAttingo Technologies
|
8 |
+
* @package Netgo_Prohistory
|
9 |
+
* @author Vipin
|
10 |
+
* @dev 77vips@gmail.com
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
class Netgo_Ultrafastproduct_Model_Attributes_Stockavail
|
14 |
+
{
|
15 |
+
|
16 |
+
public function toOptionArray()
|
17 |
+
{
|
18 |
+
return array(
|
19 |
+
array('value' => 0, 'label' => Mage::helper('catalog')->__('Out of Stock')),
|
20 |
+
array('value' => 1, 'label' => Mage::helper('catalog')->__('In Stock')),
|
21 |
+
);
|
22 |
+
}
|
23 |
+
}
|
24 |
+
?>
|
app/code/community/Netgo/Ultrafastproduct/Model/Attributes/Visibility.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/***************************************
|
3 |
+
*** Ultra Fast Product Extension ***
|
4 |
+
***************************************
|
5 |
+
*
|
6 |
+
* @copyright Copyright (c) 2015
|
7 |
+
* @company NetAttingo Technologies
|
8 |
+
* @package Netgo_Prohistory
|
9 |
+
* @author Vipin
|
10 |
+
* @dev 77vips@gmail.com
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
class Netgo_Ultrafastproduct_Model_Attributes_Visibility
|
14 |
+
{
|
15 |
+
public function toOptionArray()
|
16 |
+
{
|
17 |
+
return Mage::getSingleton('catalog/product_visibility')->getOptionArray();
|
18 |
+
}
|
19 |
+
}
|
20 |
+
?>
|
app/code/community/Netgo/Ultrafastproduct/Model/Observer.php
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/***************************************
|
3 |
+
*** Ultra Fast Product Extension ***
|
4 |
+
***************************************
|
5 |
+
*
|
6 |
+
* @copyright Copyright (c) 2015
|
7 |
+
* @company NetAttingo Technologies
|
8 |
+
* @package Netgo_Prohistory
|
9 |
+
* @author Vipin
|
10 |
+
* @dev 77vips@gmail.com
|
11 |
+
*
|
12 |
+
*/
|
13 |
+
class Netgo_Ultrafastproduct_Model_Observer
|
14 |
+
{
|
15 |
+
|
16 |
+
|
17 |
+
public function initProduct(Varien_Event_Observer $observer)
|
18 |
+
{
|
19 |
+
|
20 |
+
$isactive=Mage::getStoreConfig('ufp_settings/ufpset_general/active');
|
21 |
+
|
22 |
+
if($isactive==0)
|
23 |
+
return;
|
24 |
+
|
25 |
+
$product = $observer->getEvent()->getProduct();
|
26 |
+
//$product->setWeight(1);
|
27 |
+
$product->setWebsiteIds(array('0'=>'1'));
|
28 |
+
$hplObj = Mage::helper('ultrafastproduct');
|
29 |
+
|
30 |
+
/*Get all values*/
|
31 |
+
//GENERAL TAB VALUES
|
32 |
+
$name = $hplObj->getByName('NAME');//$this->helper('Alfsft')->getName();
|
33 |
+
$desc = $hplObj->getByName('DESCRIPTION');
|
34 |
+
$SHORTDESC = $hplObj->getByName('SHORTDESC');
|
35 |
+
$SKU = $hplObj->getByName('SKU');
|
36 |
+
$WEIGHT = $hplObj->getByName('WEIGHT');
|
37 |
+
$STATUS = $hplObj->getByName('STATUS');
|
38 |
+
$CUSVISIBILITY = $hplObj->getByName('CUSVISIBILITY');
|
39 |
+
|
40 |
+
//PRICE TAB VALUES
|
41 |
+
$PRICE = $hplObj->getPriceTabValues('PRICE');
|
42 |
+
$SPLPRICE = $hplObj->getPriceTabValues('SPLPRICE');
|
43 |
+
$TAX = $hplObj->getPriceTabValues('TAX');
|
44 |
+
|
45 |
+
//GET META DATA.
|
46 |
+
$METATITLE = $hplObj->getMetaData('METATITLE');
|
47 |
+
$METADESCRIPTION = $hplObj->getMetaData('METADESCRIPTION');
|
48 |
+
$METAKEYWORD = $hplObj->getMetaData('METAKEYWORD');
|
49 |
+
//GET META DATA ENDS
|
50 |
+
|
51 |
+
//GET INVENTORY DATA
|
52 |
+
$STOCKAVAIL =$hplObj->getStockData('STOCKAVAIL');
|
53 |
+
$QTY =$hplObj->getStockData('QTY');
|
54 |
+
//GET INVENTORY DATA ENDS
|
55 |
+
/*Get all values ends*/
|
56 |
+
//set name
|
57 |
+
$product->setName($name);
|
58 |
+
//set description
|
59 |
+
$product->setDescription($desc);
|
60 |
+
//set short description
|
61 |
+
$product->setShortDescription($SHORTDESC);
|
62 |
+
//set sku
|
63 |
+
$product->setSku($SKU);
|
64 |
+
//set weight
|
65 |
+
$product->setWeight($WEIGHT);
|
66 |
+
//set price
|
67 |
+
$product->setPrice($PRICE);
|
68 |
+
//set special price
|
69 |
+
$product->setSpecialPrice($SPLPRICE);
|
70 |
+
//set status
|
71 |
+
$product->setStatus($STATUS);
|
72 |
+
//set tax class id
|
73 |
+
$product->setTaxClassId($TAX);
|
74 |
+
//set visibility
|
75 |
+
$product->setVisibility($CUSVISIBILITY);
|
76 |
+
//SET meta data
|
77 |
+
$product->setMetaTitle($METATITLE);
|
78 |
+
$product->setMetaDescription($METADESCRIPTION);
|
79 |
+
$product->setMetaKeyword($METAKEYWORD);
|
80 |
+
|
81 |
+
//UPDATE STOCK DATA
|
82 |
+
$stockItem = Mage::getModel('cataloginventory/stock_item');
|
83 |
+
$stockItem->assignProduct($product);
|
84 |
+
$stockItem->setData('is_in_stock',$STOCKAVAIL);
|
85 |
+
$stockItem->setData('qty', $QTY);
|
86 |
+
$product->setStockItem($stockItem);
|
87 |
+
//UPDATE STOCK DATA ENDS
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
}
|
92 |
+
|
93 |
+
}
|
app/code/community/Netgo/Ultrafastproduct/etc/adminhtml.xml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/***************************************
|
4 |
+
*** Ultra Fast Product Extension ***
|
5 |
+
***************************************
|
6 |
+
*
|
7 |
+
* @copyright Copyright (c) 2015
|
8 |
+
* @company NetAttingo Technologies
|
9 |
+
* @package Netgo_Prohistory
|
10 |
+
* @author Vipin
|
11 |
+
* @dev 77vips@gmail.com
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
-->
|
15 |
+
<config>
|
16 |
+
<acl>
|
17 |
+
<resources>
|
18 |
+
<admin>
|
19 |
+
<children>
|
20 |
+
<system>
|
21 |
+
<children>
|
22 |
+
<config>
|
23 |
+
<children>
|
24 |
+
<ufp_settings translate="title" module="ultrafastproduct">
|
25 |
+
<title>Ultra Fast Product Settings</title>
|
26 |
+
<sort_order>0</sort_order>
|
27 |
+
</ufp_settings>
|
28 |
+
</children>
|
29 |
+
</config>
|
30 |
+
</children>
|
31 |
+
</system>
|
32 |
+
</children>
|
33 |
+
</admin>
|
34 |
+
</resources>
|
35 |
+
</acl>
|
36 |
+
</config>
|
app/code/community/Netgo/Ultrafastproduct/etc/config.xml
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/***************************************
|
4 |
+
*** Ultra Fast Product Extension ***
|
5 |
+
***************************************
|
6 |
+
*
|
7 |
+
* @copyright Copyright (c) 2015
|
8 |
+
* @company NetAttingo Technologies
|
9 |
+
* @package Netgo_Prohistory
|
10 |
+
* @author Vipin
|
11 |
+
* @dev 77vips@gmail.com
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
-->
|
15 |
+
<config>
|
16 |
+
<modules>
|
17 |
+
<Netgo_Ultrafastproduct>
|
18 |
+
<version>0.0.9</version>
|
19 |
+
</Netgo_Ultrafastproduct>
|
20 |
+
</modules>
|
21 |
+
<global>
|
22 |
+
<helpers>
|
23 |
+
<ultrafastproduct>
|
24 |
+
<class>Netgo_Ultrafastproduct_Helper</class>
|
25 |
+
</ultrafastproduct>
|
26 |
+
</helpers>
|
27 |
+
<events>
|
28 |
+
<catalog_product_new_action> <!-- identifier of the event we want to catch -->
|
29 |
+
<observers>
|
30 |
+
<ultrafast_product_new_action_handler> <!-- identifier of the event handler -->
|
31 |
+
<type>model</type> <!-- class method call type; valid are model, object and singleton -->
|
32 |
+
<class>Netgo_Ultrafastproduct_Model_Observer</class> <!-- observers class alias -->
|
33 |
+
<method>initProduct</method> <!-- observer's method to be called -->
|
34 |
+
<args></args> <!-- additional arguments passed to observer -->
|
35 |
+
</ultrafast_product_new_action_handler>
|
36 |
+
</observers>
|
37 |
+
</catalog_product_new_action>
|
38 |
+
</events>
|
39 |
+
<models>
|
40 |
+
<ultrafastproduct>
|
41 |
+
<class>Netgo_Ultrafastproduct_Model</class>
|
42 |
+
</ultrafastproduct>
|
43 |
+
</models>
|
44 |
+
</global>
|
45 |
+
</config>
|
app/code/community/Netgo/Ultrafastproduct/etc/system.xml
ADDED
@@ -0,0 +1,262 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/***************************************
|
4 |
+
*** Ultra Fast Product Extension ***
|
5 |
+
***************************************
|
6 |
+
*
|
7 |
+
* @copyright Copyright (c) 2015
|
8 |
+
* @company NetAttingo Technologies
|
9 |
+
* @package Netgo_Prohistory
|
10 |
+
* @author Vipin
|
11 |
+
* @dev 77vips@gmail.com
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
-->
|
15 |
+
<config>
|
16 |
+
<tabs>
|
17 |
+
<netgo translate="label" module="ultrafastproduct">
|
18 |
+
<label>Netgo</label>
|
19 |
+
<sort_order>2000</sort_order>
|
20 |
+
</netgo>
|
21 |
+
</tabs>
|
22 |
+
<sections>
|
23 |
+
<ufp_settings translate="label" module="ultrafastproduct">
|
24 |
+
<label>Ultra Fast Product</label>
|
25 |
+
<tab>netgo</tab>
|
26 |
+
<frontend_type>text</frontend_type>
|
27 |
+
<sort_order>770</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 |
+
<groups>
|
32 |
+
<ufpset_general translate="label">
|
33 |
+
|
34 |
+
<label>Enable/Disable Module</label>
|
35 |
+
<frontend_type>text</frontend_type>
|
36 |
+
<sort_order>0</sort_order>
|
37 |
+
<show_in_default>1</show_in_default>
|
38 |
+
<show_in_website>1</show_in_website>
|
39 |
+
<show_in_store>1</show_in_store>
|
40 |
+
<fields>
|
41 |
+
<active translate="label">
|
42 |
+
<label>Enable</label>
|
43 |
+
<frontend_type>select</frontend_type>
|
44 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
45 |
+
<sort_order>0</sort_order>
|
46 |
+
<show_in_default>1</show_in_default>
|
47 |
+
<show_in_website>1</show_in_website>
|
48 |
+
<show_in_store>1</show_in_store>
|
49 |
+
<comment>Enable Module</comment>
|
50 |
+
</active>
|
51 |
+
|
52 |
+
</fields>
|
53 |
+
|
54 |
+
</ufpset_general>
|
55 |
+
<ufpset_settings translate="label">
|
56 |
+
|
57 |
+
<label>General Settings</label>
|
58 |
+
<frontend_type>text</frontend_type>
|
59 |
+
<sort_order>1</sort_order>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<show_in_website>1</show_in_website>
|
62 |
+
<show_in_store>1</show_in_store>
|
63 |
+
<fields>
|
64 |
+
|
65 |
+
<NAME translate="label comment">
|
66 |
+
<label>Name</label>
|
67 |
+
<comment>
|
68 |
+
<![CDATA[Name of the product
|
69 |
+
]]>
|
70 |
+
</comment>
|
71 |
+
<frontend_type>Text</frontend_type>
|
72 |
+
<sort_order>1</sort_order>
|
73 |
+
<show_in_default>1</show_in_default>
|
74 |
+
<show_in_website>1</show_in_website>
|
75 |
+
<show_in_store>1</show_in_store>
|
76 |
+
|
77 |
+
</NAME>
|
78 |
+
|
79 |
+
<DESCRIPTION translate="label comment">
|
80 |
+
<label>Description</label>
|
81 |
+
<comment>
|
82 |
+
<![CDATA[Detail Description of the product]]>
|
83 |
+
</comment>
|
84 |
+
<frontend_type>Text</frontend_type>
|
85 |
+
<sort_order>2</sort_order>
|
86 |
+
<show_in_default>1</show_in_default>
|
87 |
+
<show_in_website>1</show_in_website>
|
88 |
+
<show_in_store>1</show_in_store>
|
89 |
+
|
90 |
+
</DESCRIPTION>
|
91 |
+
|
92 |
+
<SHORTDESC translate="label comment">
|
93 |
+
<label>Short Description</label>
|
94 |
+
<comment>
|
95 |
+
<![CDATA[Short Description</span>]]>
|
96 |
+
</comment>
|
97 |
+
<frontend_type>Text</frontend_type>
|
98 |
+
<sort_order>3</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 |
+
</SHORTDESC>
|
103 |
+
|
104 |
+
<SKU translate="label comment">
|
105 |
+
<label>Sku(start with)</label>
|
106 |
+
<comment>
|
107 |
+
<![CDATA[Enter sku name here, it should not contatin space
|
108 |
+
]]>
|
109 |
+
</comment>
|
110 |
+
<frontend_type>Text</frontend_type>
|
111 |
+
<sort_order>4</sort_order>
|
112 |
+
<show_in_default>1</show_in_default>
|
113 |
+
<show_in_website>1</show_in_website>
|
114 |
+
<show_in_store>1</show_in_store>
|
115 |
+
</SKU>
|
116 |
+
|
117 |
+
<WEIGHT translate="label comment">
|
118 |
+
<label>Weight</label>
|
119 |
+
<frontend_type>Text</frontend_type>
|
120 |
+
<sort_order>5</sort_order>
|
121 |
+
<show_in_default>1</show_in_default>
|
122 |
+
<show_in_website>1</show_in_website>
|
123 |
+
<show_in_store>1</show_in_store>
|
124 |
+
</WEIGHT>
|
125 |
+
|
126 |
+
<STATUS translate="label">
|
127 |
+
<label>Status</label>
|
128 |
+
<frontend_type>select</frontend_type>
|
129 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
130 |
+
<sort_order>6</sort_order>
|
131 |
+
<show_in_default>1</show_in_default>
|
132 |
+
<show_in_website>1</show_in_website>
|
133 |
+
<show_in_store>0</show_in_store>
|
134 |
+
</STATUS>
|
135 |
+
|
136 |
+
|
137 |
+
<CUSVISIBILITY translate="label">
|
138 |
+
<label>Visibility</label>
|
139 |
+
<frontend_type>select</frontend_type>
|
140 |
+
<source_model>ultrafastproduct/attributes_visibility</source_model>
|
141 |
+
<sort_order>7</sort_order>
|
142 |
+
<show_in_default>1</show_in_default>
|
143 |
+
<show_in_website>1</show_in_website>
|
144 |
+
<show_in_store>0</show_in_store>
|
145 |
+
</CUSVISIBILITY>
|
146 |
+
</fields>
|
147 |
+
</ufpset_settings>
|
148 |
+
|
149 |
+
<ufpset_prices translate="label">
|
150 |
+
<label>Prices</label>
|
151 |
+
<frontend_type>text</frontend_type>
|
152 |
+
<sort_order>2</sort_order>
|
153 |
+
<show_in_default>1</show_in_default>
|
154 |
+
<show_in_website>1</show_in_website>
|
155 |
+
<show_in_store>1</show_in_store>
|
156 |
+
<fields>
|
157 |
+
<PRICE translate="label comment">
|
158 |
+
<label>Price</label>
|
159 |
+
<frontend_type>Text</frontend_type>
|
160 |
+
<sort_order>6</sort_order>
|
161 |
+
<show_in_default>1</show_in_default>
|
162 |
+
<show_in_website>1</show_in_website>
|
163 |
+
<show_in_store>1</show_in_store>
|
164 |
+
</PRICE>
|
165 |
+
|
166 |
+
<SPLPRICE translate="label comment">
|
167 |
+
<label>Special Price</label>
|
168 |
+
|
169 |
+
<frontend_type>Text</frontend_type>
|
170 |
+
<sort_order>7</sort_order>
|
171 |
+
<show_in_default>1</show_in_default>
|
172 |
+
<show_in_website>1</show_in_website>
|
173 |
+
<show_in_store>1</show_in_store>
|
174 |
+
</SPLPRICE>
|
175 |
+
|
176 |
+
<TAX translate="label">
|
177 |
+
<label>Tax Class</label>
|
178 |
+
<frontend_type>select</frontend_type>
|
179 |
+
<source_model>adminhtml/system_config_source_shipping_taxclass</source_model>
|
180 |
+
<sort_order>11</sort_order>
|
181 |
+
<show_in_default>1</show_in_default>
|
182 |
+
<show_in_website>1</show_in_website>
|
183 |
+
<show_in_store>0</show_in_store>
|
184 |
+
</TAX>
|
185 |
+
|
186 |
+
</fields>
|
187 |
+
</ufpset_prices>
|
188 |
+
|
189 |
+
|
190 |
+
|
191 |
+
|
192 |
+
|
193 |
+
|
194 |
+
<ufpset_metadata translate="label">
|
195 |
+
<label>Meta Information</label>
|
196 |
+
<frontend_type>text</frontend_type>
|
197 |
+
<sort_order>3</sort_order>
|
198 |
+
<show_in_default>1</show_in_default>
|
199 |
+
<show_in_website>1</show_in_website>
|
200 |
+
<show_in_store>1</show_in_store>
|
201 |
+
<fields>
|
202 |
+
<METATITLE translate="label">
|
203 |
+
<label>Meta Title</label>
|
204 |
+
<frontend_type>text</frontend_type>
|
205 |
+
<sort_order>1</sort_order>
|
206 |
+
<show_in_default>1</show_in_default>
|
207 |
+
<show_in_website>1</show_in_website>
|
208 |
+
<show_in_store>1</show_in_store>
|
209 |
+
</METATITLE>
|
210 |
+
<METAKEYWORD translate="label">
|
211 |
+
<label>Meta Keyword</label>
|
212 |
+
<frontend_type>text</frontend_type>
|
213 |
+
<sort_order>2</sort_order>
|
214 |
+
<show_in_default>1</show_in_default>
|
215 |
+
<show_in_website>1</show_in_website>
|
216 |
+
<show_in_store>1</show_in_store>
|
217 |
+
</METAKEYWORD>
|
218 |
+
<METADESCRIPTION translate="label">
|
219 |
+
<label>Meta Description</label>
|
220 |
+
<frontend_type>text</frontend_type>
|
221 |
+
<sort_order>3</sort_order>
|
222 |
+
<show_in_default>1</show_in_default>
|
223 |
+
<show_in_website>1</show_in_website>
|
224 |
+
<show_in_store>1</show_in_store>
|
225 |
+
</METADESCRIPTION>
|
226 |
+
|
227 |
+
</fields>
|
228 |
+
</ufpset_metadata>
|
229 |
+
<ufpset_inventory translate="label">
|
230 |
+
<label>Inventory</label>
|
231 |
+
<frontend_type>text</frontend_type>
|
232 |
+
<sort_order>4</sort_order>
|
233 |
+
<show_in_default>1</show_in_default>
|
234 |
+
<show_in_website>1</show_in_website>
|
235 |
+
<show_in_store>1</show_in_store>
|
236 |
+
<fields>
|
237 |
+
<QTY translate="label comment">
|
238 |
+
<label>Quantity</label>
|
239 |
+
<frontend_type>Text</frontend_type>
|
240 |
+
<sort_order>8</sort_order>
|
241 |
+
<show_in_default>1</show_in_default>
|
242 |
+
<show_in_website>1</show_in_website>
|
243 |
+
<show_in_store>1</show_in_store>
|
244 |
+
</QTY>
|
245 |
+
|
246 |
+
<STOCKAVAIL translate="label">
|
247 |
+
<label>Stock availability</label>
|
248 |
+
<frontend_type>select</frontend_type>
|
249 |
+
<source_model>ultrafastproduct/attributes_stockavail</source_model>
|
250 |
+
<sort_order>13</sort_order>
|
251 |
+
<show_in_default>1</show_in_default>
|
252 |
+
<show_in_website>1</show_in_website>
|
253 |
+
<show_in_store>0</show_in_store>
|
254 |
+
</STOCKAVAIL>
|
255 |
+
</fields>
|
256 |
+
</ufpset_inventory>
|
257 |
+
|
258 |
+
|
259 |
+
</groups>
|
260 |
+
</ufp_settings>
|
261 |
+
</sections>
|
262 |
+
</config>
|
app/etc/modules/Netgo_Ultrafastproduct.xml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/***************************************
|
4 |
+
*** Ultra Fast Product Extension ***
|
5 |
+
***************************************
|
6 |
+
*
|
7 |
+
* @copyright Copyright (c) 2015
|
8 |
+
* @company NetAttingo Technologies
|
9 |
+
* @package Netgo_Prohistory
|
10 |
+
* @author Vipin
|
11 |
+
* @dev 77vips@gmail.com
|
12 |
+
*
|
13 |
+
*/
|
14 |
+
-->
|
15 |
+
<config>
|
16 |
+
<modules>
|
17 |
+
<Netgo_Ultrafastproduct>
|
18 |
+
<active>true</active>
|
19 |
+
<codePool>community</codePool>
|
20 |
+
<version>0.0.9</version>
|
21 |
+
</Netgo_Ultrafastproduct>
|
22 |
+
</modules>
|
23 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Netgo_Ultrafastproduct</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license>Open Software License (OSL)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Allows auto filling of the product details</summary>
|
10 |
+
<description>This extension is exclusively for the process of entry of details of any products from the back-end with similar values of the attributes by the method of auto fill. This totally implies on auto fill of similar values of the attributes of various products. For this we have given a section at the back-end to fill the details of product/attributes just once,which is to be repeated and after filling desired attribute, you need not to write them again in individual products.
|
11 |
+

|
12 |
+
With this auto-fill method, entry of details of products will become too easy.Thus reducing the time and hard work for entry of details of any product. </description>
|
13 |
+
<notes>First Preview Release</notes>
|
14 |
+
<authors><author><name>Vipin</name><user>Netgo</user><email>77vips@gmail.com</email></author></authors>
|
15 |
+
<date>2015-07-22</date>
|
16 |
+
<time>04:15:38</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Netgo"><dir name="Ultrafastproduct"><dir name="Helper"><file name="Data.php" hash="29eb738b6ba82de0b8c967d462146c73"/></dir><dir name="Model"><dir name="Attributes"><file name="Stockavail.php" hash="9fec0955719e4de24c24ce4adc417c4b"/><file name="Visibility.php" hash="86ebd9700d643965812e6202f1867160"/></dir><file name="Observer.php" hash="ea46f51846763d8ac1fc1143a4505c68"/></dir><dir name="etc"><file name="adminhtml.xml" hash="15a38dad7639915df6811bb116bb71fd"/><file name="config.xml" hash="d6dd8e83bcd96e8733338faefe9c1b84"/><file name="system.xml" hash="80487eba9b30143eec1a08a7399c0ffb"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Netgo_Ultrafastproduct.xml" hash="ced1ff3644a42580e7d95267909c47db"/></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|