ProductCreateform - Version 1.0.3

Version Notes

version 1.0.3

Download this release

Release Info

Developer Abhay
Extension ProductCreateform
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/local/Product/Createform/controllers/IndexController.php CHANGED
@@ -11,12 +11,13 @@ class Product_Createform_IndexController extends Mage_Core_Controller_Front_Acti
11
  {
12
  $post = $this->getRequest()->getParams();
13
  $categoryid= Mage::getStoreConfig('createform/createform/category_id');
 
14
  //print_r($post);
15
  //exit;
16
  if($post){
17
  $product = new Mage_Catalog_Model_Product();
18
  $product->setSku($post['name']."_new");
19
- $product->setAttributeSetId(9);
20
  $product->setTypeId('simple');
21
  $product->setName($post['name']);
22
  $product->setCategoryIds(array($categoryid)); # some cat id's, fill in backend
11
  {
12
  $post = $this->getRequest()->getParams();
13
  $categoryid= Mage::getStoreConfig('createform/createform/category_id');
14
+ $attributesetid = Mage::getStoreConfig('createform/createform/attribute_id');
15
  //print_r($post);
16
  //exit;
17
  if($post){
18
  $product = new Mage_Catalog_Model_Product();
19
  $product->setSku($post['name']."_new");
20
+ $product->setAttributeSetId($attributesetid);
21
  $product->setTypeId('simple');
22
  $product->setName($post['name']);
23
  $product->setCategoryIds(array($categoryid)); # some cat id's, fill in backend
app/code/local/Product/Createform/etc/system.xml CHANGED
@@ -36,6 +36,15 @@
36
  <show_in_website>1</show_in_website>
37
  <show_in_store>1</show_in_store>
38
  </category_id>
 
 
 
 
 
 
 
 
 
39
  </fields>
40
  </createform>
41
  </groups>
36
  <show_in_website>1</show_in_website>
37
  <show_in_store>1</show_in_store>
38
  </category_id>
39
+ <attribute_id translate="label">
40
+ <label>Attribute Set Id</label>
41
+ <frontend_type>text</frontend_type>
42
+ <sort_order>20</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ </attribute_id>
47
+
48
  </fields>
49
  </createform>
50
  </groups>
package.xml CHANGED
@@ -1,26 +1,25 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ProductCreateform</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>this plugin use for those product who want to give opportunity to customer for create product in website&#xD;
10
- </summary>
11
- <description>this plugin use for those product who want to give opportunity to customer for create product in website&#xD;
12
- &#xD;
13
- &#xD;
14
  &#xD;
15
- use above plugin to give opportunity to create product name so when customer submit productname it will create in admin catalog/manageproduct with non visibility options&#xD;
16
- &#xD;
17
- for more details please contact &#xD;
18
- http://abhaykhatariya.blogspot.com</description>
19
- <notes>version 1.0.2</notes>
 
 
20
  <authors><author><name>Abhay</name><user>abhay5683</user><email>abhay5683@gmail.com</email></author></authors>
21
- <date>2013-12-23</date>
22
- <time>12:31:52</time>
23
- <contents><target name="magelocal"><dir name="Product"><dir name="Createform"><dir name="Block"><dir name="Adminhtml"><dir name="Createform"><dir name="Edit"><file name="Form.php" hash="49dea4cca08c3e8134d0017c13d43b88"/><dir name="Tab"><file name="Form.php" hash="fbbc9ccf6ba47af7dcafb2ee6d29af7c"/></dir><file name="Tabs.php" hash="53d198909f1c849724e862fda0d2f1ae"/></dir><file name="Edit.php" hash="fa32ca50b603f75451913f2f2117db3e"/><file name="Grid.php" hash="0e8b6685ce30aae7c637d809af982a9a"/></dir><file name="Createform.php" hash="70a1fac8fdd90d0a3f262b058c1ddb69"/></dir><file name="Createform.php" hash="d288254b7e656f4197b3733ec51a0b5b"/></dir><dir name="Helper"><file name="Data.php" hash="b6d2bf51be0dacc2d514f54c3bf68290"/></dir><dir name="Model"><file name="Createform.php" hash="e4fd1d687abafd8f81ac4e75165ebb5f"/><dir name="Mysql4"><dir name="Createform"><file name="Collection.php" hash="ea541d8eaa558ba07a0081733972f84b"/></dir><file name="Createform.php" hash="afb95c6e290dd9fe1931f8d985fbfb12"/></dir><file name="Status.php" hash="3d09ae900bcc1d0dd65bf5913898946d"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CreateformController.php" hash="f8c7fdb7011f718652e08930d2c6ac5e"/></dir><file name="IndexController.php" hash="b33913810d70290b6c6f62ddb5ef7d3c"/></dir><dir name="etc"><file name="config.xml" hash="b8f17581f8e29c9de26ecc77d44bc747"/><file name="system.xml" hash="bdf5ebb6b7dfabe8801392d812aa4281"/></dir><dir name="sql"><dir name="createform_setup"><file name="mysql4-install-0.1.0.php" hash="8dbd6bea027f846154cf66a4a9879988"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Product_Createform.xml" hash="ae9989f2eb668c13996f660c949076fc"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="createform.xml" hash="0f53056e27968b96e99ac96ad9150db9"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="createform.xml" hash="13be78a6d63b9b835b77dfc2686d7d5d"/></dir><dir name="template"><dir name="createform"><file name="createform.phtml" hash="af210f14f363e929085c399cb922220a"/></dir></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.1.0</min><max>5.4.10</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7.0.2</max></package></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ProductCreateform</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This extension allows to create product from front-end&#xD;
10
+ set category id,attribute set id in configuration&#xD;
 
 
 
11
  &#xD;
12
+ </summary>
13
+ <description>&lt;ul&gt;&#xD;
14
+ &lt;li&gt;This extension mainly use for those project who want to give opportunity to their customer to create product in website or give suggestion to website&lt;/li&gt;&#xD;
15
+ &lt;li&gt;Please keep in mind before use this plugin its necessary to set categoryid and attribute set id to in system configuration product create form section&lt;/li&gt;&#xD;
16
+ &lt;li&gt;Created product will be seen in Admin Manage product section with "Not Visible Individually" options so administrator can approve product in website&lt;/li&gt;&#xD;
17
+ &lt;/ul&gt;</description>
18
+ <notes>version 1.0.3</notes>
19
  <authors><author><name>Abhay</name><user>abhay5683</user><email>abhay5683@gmail.com</email></author></authors>
20
+ <date>2014-01-21</date>
21
+ <time>05:11:23</time>
22
+ <contents><target name="magelocal"><dir name="Product"><dir name="Createform"><dir name="Block"><dir name="Adminhtml"><dir name="Createform"><dir name="Edit"><file name="Form.php" hash="49dea4cca08c3e8134d0017c13d43b88"/><dir name="Tab"><file name="Form.php" hash="fbbc9ccf6ba47af7dcafb2ee6d29af7c"/></dir><file name="Tabs.php" hash="53d198909f1c849724e862fda0d2f1ae"/></dir><file name="Edit.php" hash="fa32ca50b603f75451913f2f2117db3e"/><file name="Grid.php" hash="0e8b6685ce30aae7c637d809af982a9a"/></dir><file name="Createform.php" hash="70a1fac8fdd90d0a3f262b058c1ddb69"/></dir><file name="Createform.php" hash="d288254b7e656f4197b3733ec51a0b5b"/></dir><dir name="Helper"><file name="Data.php" hash="b6d2bf51be0dacc2d514f54c3bf68290"/></dir><dir name="Model"><file name="Createform.php" hash="e4fd1d687abafd8f81ac4e75165ebb5f"/><dir name="Mysql4"><dir name="Createform"><file name="Collection.php" hash="ea541d8eaa558ba07a0081733972f84b"/></dir><file name="Createform.php" hash="afb95c6e290dd9fe1931f8d985fbfb12"/></dir><file name="Status.php" hash="3d09ae900bcc1d0dd65bf5913898946d"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CreateformController.php" hash="f8c7fdb7011f718652e08930d2c6ac5e"/></dir><file name="IndexController.php" hash="1b13b26756fee1f1d8b3ba554abf1dee"/></dir><dir name="etc"><file name="config.xml" hash="b8f17581f8e29c9de26ecc77d44bc747"/><file name="system.xml" hash="7af71dd8aca64e36b65b2d38b590f93e"/></dir><dir name="sql"><dir name="createform_setup"><file name="mysql4-install-0.1.0.php" hash="8dbd6bea027f846154cf66a4a9879988"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Product_Createform.xml" hash="ae9989f2eb668c13996f660c949076fc"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="createform.xml" hash="0f53056e27968b96e99ac96ad9150db9"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="createform.xml" hash="13be78a6d63b9b835b77dfc2686d7d5d"/></dir><dir name="template"><dir name="createform"><file name="createform.phtml" hash="af210f14f363e929085c399cb922220a"/></dir></dir></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.1.0</min><max>5.4.10</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.6.0.0</min><max>1.7.0.2</max></package></required></dependencies>
25
  </package>