Cart_Fileupload - Version 1.0.2

Version Notes

It is 2nd version of this extension. layout distortion issue has been fixed. But It can vary if there is changes alredy on cart page layout.

Download this release

Release Info

Developer Dynamic Dreamz
Extension Cart_Fileupload
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/DD/Upload/Helper/Data.php CHANGED
@@ -50,6 +50,8 @@ class DD_Upload_Helper_Data extends Mage_Core_Helper_Abstract {
50
  break;
51
  case 'xls':return 'Excel';
52
  break;
 
 
53
  case 'ppt':return 'Powerpoint';
54
  break;
55
  case 'pptx':return 'Powerpoint';
@@ -59,6 +61,22 @@ class DD_Upload_Helper_Data extends Mage_Core_Helper_Abstract {
59
  case 'ods':return 'Document';
60
  break;
61
  case 'xml':return 'XML';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  break;
63
  default:return 'Unknown';
64
  break;
50
  break;
51
  case 'xls':return 'Excel';
52
  break;
53
+ case 'xlsx':return 'Excel';
54
+ break;
55
  case 'ppt':return 'Powerpoint';
56
  break;
57
  case 'pptx':return 'Powerpoint';
61
  case 'ods':return 'Document';
62
  break;
63
  case 'xml':return 'XML';
64
+ break;
65
+ case 'mp3':return 'Audio';
66
+ break;
67
+ case 'amr':return 'Audio';
68
+ break;
69
+ case 'wma':return 'Audio';
70
+ break;
71
+ case 'mp4':return 'Video';
72
+ break;
73
+ case 'webm':return 'Video';
74
+ break;
75
+ case '3gp':return 'Video';
76
+ break;
77
+ case 'flv':return 'Video';
78
+ break;
79
+ case 'avi':return 'Video';
80
  break;
81
  default:return 'Unknown';
82
  break;
app/code/community/DD/Upload/controllers/IndexController.php CHANGED
@@ -46,7 +46,8 @@ class DD_Upload_IndexController extends Mage_Core_Controller_Front_Action {
46
  Mage::getSingleton('core/session')->setData($arrData);
47
  Mage::getSingleton('core/session')->setFlag($flag);
48
  $this->_redirect('checkout/cart');
49
- $message = $this->__($filetype . ' type file has been uploaded successfully.');
 
50
  Mage::getSingleton('core/session')->addSuccess($message);
51
  } catch (Exception $e) {
52
  if ($_flag == 1) {
46
  Mage::getSingleton('core/session')->setData($arrData);
47
  Mage::getSingleton('core/session')->setFlag($flag);
48
  $this->_redirect('checkout/cart');
49
+ //$message = $this->__($filetype . ' type file has been uploaded successfully.');
50
+ $message = $this->__('"'.$_FILES[$type]['name'] . '" has been uploaded successfully.');
51
  Mage::getSingleton('core/session')->addSuccess($message);
52
  } catch (Exception $e) {
53
  if ($_flag == 1) {
app/code/community/DD/Upload/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <DD_Upload>
14
- <version>1.0.1</version>
15
  </DD_Upload>
16
  </modules>
17
 
11
  <config>
12
  <modules>
13
  <DD_Upload>
14
+ <version>1.0.2</version>
15
  </DD_Upload>
16
  </modules>
17
 
app/design/adminhtml/default/default/layout/upload.xml CHANGED
@@ -14,4 +14,4 @@
14
  <block type="adminhtml/sales_order_view" name="uploadfile" template='upload/sales/order/view/uploadfile.phtml'/>
15
  </reference>
16
  </adminhtml_sales_order_view>
17
- </layout>
14
  <block type="adminhtml/sales_order_view" name="uploadfile" template='upload/sales/order/view/uploadfile.phtml'/>
15
  </reference>
16
  </adminhtml_sales_order_view>
17
+ </layout>
app/design/adminhtml/default/default/template/upload/sales/order/view/info.phtml CHANGED
@@ -6,5 +6,6 @@
6
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
7
  -->
8
 
9
- <?php echo $this->getChildHtml('order_info_main');?>
10
  <?php echo $this->getChildHtml('uploadfile');?>
 
 
6
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL)
7
  -->
8
 
 
9
  <?php echo $this->getChildHtml('uploadfile');?>
10
+ <?php echo $this->getChildHtml('order_info_main');?>
11
+
app/design/adminhtml/default/default/template/upload/sales/order/view/uploadfile.phtml CHANGED
@@ -12,7 +12,7 @@
12
  <?php
13
  if (Mage::helper('upload')->isEnabled()) {
14
  ?>
15
- <div class="clear">
16
  <div class="entry-edit">
17
  <div class="entry-edit-head">
18
  <h4 class="icon-head head-account"><?php echo Mage::helper('sales')->__('Uploaded File Information') ?></h4>
@@ -87,5 +87,6 @@ if (Mage::helper('upload')->isEnabled()) {
87
  </div>
88
  </div>
89
  </div>
90
- </div>
91
- <?php } ?>
 
12
  <?php
13
  if (Mage::helper('upload')->isEnabled()) {
14
  ?>
15
+ <!--<div class="box-content">-->
16
  <div class="entry-edit">
17
  <div class="entry-edit-head">
18
  <h4 class="icon-head head-account"><?php echo Mage::helper('sales')->__('Uploaded File Information') ?></h4>
87
  </div>
88
  </div>
89
  </div>
90
+ <!--</div>-->
91
+ <div class="clear"></div>
92
+ <?php } ?>
app/design/frontend/base/default/template/upload/sales/order/info.phtml CHANGED
@@ -85,7 +85,7 @@
85
  if (Mage::helper('upload')->isEnabled()) {
86
  ?>
87
  <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("css/upload/upload.css") ?>">
88
- <div class="col1-set order-info-box fileupload">
89
  <div class="box-title">
90
  <h2><?php echo $this->__('Uploaded File Information') ?></h2>
91
  </div>
85
  if (Mage::helper('upload')->isEnabled()) {
86
  ?>
87
  <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("css/upload/upload.css") ?>">
88
+ <div class="col1-set order-info-box fileupload box">
89
  <div class="box-title">
90
  <h2><?php echo $this->__('Uploaded File Information') ?></h2>
91
  </div>
media/uploads/icons/3gp.png ADDED
Binary file
media/uploads/icons/amr.png ADDED
Binary file
media/uploads/icons/avi.png ADDED
Binary file
media/uploads/icons/flv.png ADDED
Binary file
media/uploads/icons/mp3.png ADDED
Binary file
media/uploads/icons/mp4.png ADDED
Binary file
media/uploads/icons/webm.png ADDED
Binary file
media/uploads/icons/wma.png ADDED
Binary file
media/uploads/icons/xlsx.png ADDED
Binary file
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cart_Fileupload</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -27,11 +27,11 @@
27
  &#xD;
28
  9. Compatible with all Magento versions from 1.5 to 1.9.&#xD;
29
  </description>
30
- <notes>It is stable version</notes>
31
  <authors><author><name>Dynamic Dreamz</name><user>dynamicdreamz</user><email>info@dynamicdreamz.com</email></author></authors>
32
- <date>2015-10-05</date>
33
- <time>05:28:09</time>
34
- <contents><target name="magecommunity"><dir name="DD"><dir name="Upload"><dir name="Block"><file name="Upload.php" hash="7fc82b99d7f74e36f70e65f18649a7c3"/></dir><dir name="Helper"><file name="Data.php" hash="61b4da5ca242a7ae3dc9c700eab47a84"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Order"><file name="Collection.php" hash="4433076a1aa37c0927b0922d3447724f"/></dir><file name="Order.php" hash="e6fff2603115270ea274235aec21dc7d"/><dir name="Upload"><file name="Collection.php" hash="c53e84b113fc62a9ed26023a1f213220"/></dir><file name="Upload.php" hash="8b2f88d113854ad6c25173c0aa319ca5"/></dir><file name="Observer.php" hash="47103f4ac8fbcddf325c538ba060c6d8"/><file name="Order.php" hash="65ca9ab6e0035b4f4a1b2f72ce10732e"/><file name="Upload.php" hash="6302a8ba4850a97f5eae78da46d17caf"/></dir><dir name="controllers"><file name="IndexController.php" hash="2c55a20ee9d73f832213bc78ad9d3a7a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ffc0ef8a617de02356a817e1c7ff6920"/><file name="config.xml" hash="95a558ebb5402248f58251dd65874ace"/><file name="system.xml" hash="395b8bd0e38d4dfe96833d3b34dcd25a"/></dir><dir name="sql"><dir name="upload_setup"><file name="mysql4-install-1.0.1.php" hash="d811f00387fab3238b1992a58303c614"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="upload"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="ede3cf763b77ff6960b93d71877161c1"/><file name="uploadfile.phtml" hash="3e04418acf1f68be4ed03dabbd9462cb"/></dir></dir></dir></dir></dir><dir name="layout"><file name="upload.xml" hash="81aeb92327bad124a25e014981ffdb4c"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="upload"><dir name="checkout"><file name="uploads.phtml" hash="65e2b5228d8d85b50193693ab8cf8b52"/></dir><dir name="sales"><dir name="order"><file name="info.phtml" hash="7bb55bb912c62e16e0b0baa0cf41996f"/></dir></dir></dir></dir><dir name="layout"><file name="upload.xml" hash="754b8c8e6cbc95bdf28205da341c96eb"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DD_Upload.xml" hash="32f3e237efa7cbbd5e075c2b06968297"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="upload"><file name="upload.css" hash="5bc8d1572d731e85fa60a8120909df65"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="uploads"><dir name="icons"><file name="csv.png" hash="05602a994d5911c675abf7c8f37af763"/><file name="csv2.png" hash="8f6d50c8378ea10f961dc71bcb68c219"/><file name="default.png" hash="1a7a998b053b9397ff911624c3c14d37"/><file name="doc.png" hash="c8fb60063316dc015962021bce731d12"/><file name="docx.png" hash="d8410c4b56dc05dd4142667ed8ec8400"/><file name="error4.jpg" hash="d22c10dcd0da5e58e072a52fe7c0a57f"/><file name="missing.png" hash="fcbb8da751c7c1012d065528f46dd0fd"/><file name="missing1.png" hash="c03b474103ef9f81377556e7d99b8fbe"/><file name="ods.png" hash="edc457d897ef132f188e0ca43014e2b0"/><file name="odt.png" hash="041424c20b31491606a7fe0ca822b21c"/><file name="odt2.png" hash="9191ffe8b5f81ada7b48d0214cefb784"/><file name="pdf.png" hash="285fe75f2229f32aa240cdac26ca2958"/><file name="pptx.png" hash="70eb85ebddc8ff5e803a1d215fd84448"/><file name="txt.png" hash="d6ec5f8e962c7ffb7523314094b653fa"/><file name="unknown.png" hash="e87a7bf4a73d55c6a6c5377a71e7990f"/><file name="unknown1.png" hash="68cab465563cb8f931005815a76afe6d"/><file name="unkown2.png" hash="b5dad7d90ac05941a1472ad50f5a6d05"/><file name="xls.png" hash="a48a26cbd5153f72679d8d3a1fcdc8a5"/><file name="xml.png" hash="5fce69e918a098660dc4c802c5c27d4c"/></dir></dir></target><target name="mage"><dir name="."><file name="cart_fileupload_features.docx" hash="f824ca9ff944c163f872972dc59fd88d"/><file name="cart_fileupload_manual.docx" hash="52e57e40f2af2029c34b06802774264a"/></dir></target></contents>
35
  <compatible/>
36
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0.0</min><max>1.9</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
37
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Cart_Fileupload</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
27
  &#xD;
28
  9. Compatible with all Magento versions from 1.5 to 1.9.&#xD;
29
  </description>
30
+ <notes>It is 2nd version of this extension. layout distortion issue has been fixed. But It can vary if there is changes alredy on cart page layout.</notes>
31
  <authors><author><name>Dynamic Dreamz</name><user>dynamicdreamz</user><email>info@dynamicdreamz.com</email></author></authors>
32
+ <date>2016-02-15</date>
33
+ <time>07:38:06</time>
34
+ <contents><target name="magecommunity"><dir name="DD"><dir name="Upload"><dir name="Block"><file name="Upload.php" hash="7fc82b99d7f74e36f70e65f18649a7c3"/></dir><dir name="Helper"><file name="Data.php" hash="2784c8e195e036e8789123c2d056a8ea"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Order"><file name="Collection.php" hash="4433076a1aa37c0927b0922d3447724f"/></dir><file name="Order.php" hash="e6fff2603115270ea274235aec21dc7d"/><dir name="Upload"><file name="Collection.php" hash="c53e84b113fc62a9ed26023a1f213220"/></dir><file name="Upload.php" hash="8b2f88d113854ad6c25173c0aa319ca5"/></dir><file name="Observer.php" hash="47103f4ac8fbcddf325c538ba060c6d8"/><file name="Order.php" hash="65ca9ab6e0035b4f4a1b2f72ce10732e"/><file name="Upload.php" hash="6302a8ba4850a97f5eae78da46d17caf"/></dir><dir name="controllers"><file name="IndexController.php" hash="950db0b1e4bdcf5c75ca542737ed719f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ffc0ef8a617de02356a817e1c7ff6920"/><file name="config.xml" hash="8a67881ece90ebc951a47979302c0cdf"/><file name="system.xml" hash="395b8bd0e38d4dfe96833d3b34dcd25a"/></dir><dir name="sql"><dir name="upload_setup"><file name="mysql4-install-1.0.1.php" hash="d811f00387fab3238b1992a58303c614"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="upload"><dir name="sales"><dir name="order"><dir name="view"><file name="info.phtml" hash="ef3f027395f67fe89fdc6024fc49754f"/><file name="uploadfile.phtml" hash="983b8492b9a9d8d6124849d3a6a62c14"/></dir></dir></dir></dir></dir><dir name="layout"><file name="upload.xml" hash="8f84e059a9f6ed083b675fd22270ce36"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="upload"><dir name="checkout"><file name="uploads.phtml" hash="65e2b5228d8d85b50193693ab8cf8b52"/></dir><dir name="sales"><dir name="order"><file name="info.phtml" hash="a00b5684d90de4fa2bd8cafe5f8655ac"/></dir></dir></dir></dir><dir name="layout"><file name="upload.xml" hash="754b8c8e6cbc95bdf28205da341c96eb"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DD_Upload.xml" hash="32f3e237efa7cbbd5e075c2b06968297"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="upload"><file name="upload.css" hash="d93aebb4e054c290624448045a706984"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="uploads"><dir name="icons"><file name="3gp.png" hash="ea6d57916a3f96a9943ee1b41961e3d5"/><file name="amr.png" hash="4f60c8e4d83ce424434c5285d9484707"/><file name="avi.png" hash="ae36aef50758f3d26398abe39674950d"/><file name="csv.png" hash="05602a994d5911c675abf7c8f37af763"/><file name="csv2.png" hash="8f6d50c8378ea10f961dc71bcb68c219"/><file name="default.png" hash="1a7a998b053b9397ff911624c3c14d37"/><file name="doc.png" hash="c8fb60063316dc015962021bce731d12"/><file name="docx.png" hash="d8410c4b56dc05dd4142667ed8ec8400"/><file name="error4.jpg" hash="d22c10dcd0da5e58e072a52fe7c0a57f"/><file name="flv.png" hash="f09513ea91989f1a1effd77940d19e15"/><file name="missing.png" hash="fcbb8da751c7c1012d065528f46dd0fd"/><file name="missing1.png" hash="c03b474103ef9f81377556e7d99b8fbe"/><file name="mp3.png" hash="feb397547d4e420cbd9dd44a835b2849"/><file name="mp4.png" hash="05bfa5aadf6a1daa2506fb258b31bf97"/><file name="ods.png" hash="edc457d897ef132f188e0ca43014e2b0"/><file name="odt.png" hash="041424c20b31491606a7fe0ca822b21c"/><file name="odt2.png" hash="9191ffe8b5f81ada7b48d0214cefb784"/><file name="pdf.png" hash="285fe75f2229f32aa240cdac26ca2958"/><file name="pptx.png" hash="70eb85ebddc8ff5e803a1d215fd84448"/><file name="txt.png" hash="d6ec5f8e962c7ffb7523314094b653fa"/><file name="unknown.png" hash="e87a7bf4a73d55c6a6c5377a71e7990f"/><file name="unknown1.png" hash="68cab465563cb8f931005815a76afe6d"/><file name="unkown2.png" hash="b5dad7d90ac05941a1472ad50f5a6d05"/><file name="webm.png" hash="acc9b7d3008f629f254e118fb7238be4"/><file name="wma.png" hash="b53cd05f6ed9071363cfd303f24e221f"/><file name="xls.png" hash="a48a26cbd5153f72679d8d3a1fcdc8a5"/><file name="xlsx.png" hash="205622edf7d15636a06c12b6ce250529"/><file name="xml.png" hash="5fce69e918a098660dc4c802c5c27d4c"/></dir></dir></target><target name="mage"><dir name="."><file name="cart_fileupload_features.docx" hash="f824ca9ff944c163f872972dc59fd88d"/><file name="cart_fileupload_manual.docx" hash="52e57e40f2af2029c34b06802774264a"/></dir></target></contents>
35
  <compatible/>
36
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0.0</min><max>1.9</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
37
  </package>
skin/frontend/base/default/css/upload/upload.css CHANGED
@@ -68,6 +68,6 @@ and (max-device-width : 979px) {
68
  }
69
 
70
  /******** 24-sep 2015 update ********/
71
- .order-info-box .box-content { width: 60%;}
72
  .order-info-box .box-content .fileupload-table td { padding:10px 15px 10px 0; width:25%; word-wrap: break-word;}
73
 
68
  }
69
 
70
  /******** 24-sep 2015 update ********/
71
+ /*.order-info-box .box-content { width: 60%;}*/
72
  .order-info-box .box-content .fileupload-table td { padding:10px 15px 10px 0; width:25%; word-wrap: break-word;}
73