Version Notes
Minor optimization in the back-end interface.
Download this release
Release Info
Developer | Proxym Group |
Extension | Proxymit_StoreShipper |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/community/Proxymit/StoreShipper/Block/Adminhtml/Stores/Edit/Images.php
CHANGED
@@ -8,32 +8,36 @@
|
|
8 |
*/
|
9 |
class Proxymit_StoreShipper_Block_Adminhtml_Stores_Edit_Images extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
10 |
public function render(Varien_Data_Form_Element_Abstract $element) {
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
<
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
22 |
}
|
23 |
function dirFiles($directry) {
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
-
|
35 |
-
asort ( $filesall ); // Sorts the Array
|
36 |
-
return $filesall;
|
37 |
-
}
|
38 |
}
|
39 |
}
|
8 |
*/
|
9 |
class Proxymit_StoreShipper_Block_Adminhtml_Stores_Edit_Images extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface {
|
10 |
public function render(Varien_Data_Form_Element_Abstract $element) {
|
11 |
+
try{
|
12 |
+
$html = '<div>';
|
13 |
+
$path = Mage::getBaseDir ( 'media' ) . DS . 'storeshipper' . DS .$this->getRequest()->getParam('id'). DS;
|
14 |
+
$array = $this->dirFiles ( $path );
|
15 |
+
foreach ( $array as $key => $file ) {
|
16 |
+
$p = Mage::getBaseUrl ( Mage_Core_Model_Store::URL_TYPE_MEDIA ) . 'storeshipper' . DS .$this->getRequest()->getParam('id'). DS . $file;
|
17 |
+
$html .= '<div align="center" style="display: inline-block;">
|
18 |
+
<a target="_blank" href="' . $p . '"><img style="max-width: 150px;" src="' . $p . '" /></a>
|
19 |
+
<br><input class="button form-button" onclick="location.href=\''.$this->getUrl('*/*/deleteImage').'imagename/'.$file.'/id/'.$this->getRequest()->getParam('id').'\'" value="Delete" type="button" /></div>';
|
20 |
+
}
|
21 |
+
$html .= '</div><br /><hr /><br />';
|
22 |
+
return $html;
|
23 |
+
}catch(Exception $e){return '<div></div>';}
|
24 |
}
|
25 |
function dirFiles($directry) {
|
26 |
+
try{
|
27 |
+
$dir = dir ( $directry ); // Open Directory
|
28 |
+
if ($dir != NULL) {
|
29 |
+
while ( false !== ($file = $dir->read ()) ) // Reads Directory
|
30 |
+
{
|
31 |
+
$extension = substr ( $file, strrpos ( $file, '.' ) ); // Gets the File
|
32 |
+
// Extension
|
33 |
+
if ($extension == ".png" || $extension == ".jpg" || $extension == ".bmp" | $extension == ".gif" | $extension == ".jpeg") // Extensions
|
34 |
+
// Allowed
|
35 |
+
$filesall [$file] = $file; // Store in Array
|
36 |
+
}
|
37 |
+
$dir->close (); // Close Directory
|
38 |
+
asort ( $filesall ); // Sorts the Array
|
39 |
+
return $filesall;
|
40 |
}
|
41 |
+
}catch(Exception $e){}
|
|
|
|
|
|
|
42 |
}
|
43 |
}
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Proxymit_StoreShipper</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
@@ -10,12 +10,11 @@
|
|
10 |
<description>Store Shipper is a delivery extension that allows customers to receive their products in the nearest store when choosing a delivery method in the checkout page.
|
11 |
It has a back-office interface to manage the details of your stores (ex. Location, Address, Contact coordinates, Schedule of working hours and days ...) with a notification emails to both customers and store owners.
|
12 |
</description>
|
13 |
-
<notes>
|
14 |
-
Please feel free to contact us in case of troubleshooting.</notes>
|
15 |
<authors><author><name>Proxym Group</name><user>Proxym_IT</user><email>magento@proxym-group.com</email></author><author><name>Kais Elouragini</name><user>kaisinter</user><email>kais.elouragini@gmail.com</email></author></authors>
|
16 |
-
<date>2015-05-
|
17 |
-
<time>08:
|
18 |
-
<contents><target name="magecommunity"><dir name="Proxymit"><dir name="Pickup"><dir name="Block"><file name="Pickup.php" hash="3c7707d7afb5fd8c324f272b6a06be39"/></dir><dir name="Helper"><file name="Data.php" hash="ecf62e258e7c12aa86de4bac15c25a32"/></dir><dir name="Model"><dir name="Carrier"><file name="Pickup.php" hash="a0956839e99a2f606d80dcf7d5e336af"/></dir><dir name="Mysql4"><dir name="Pickup"><file name="Collection.php" hash="79e0f31beff5db9cf37beb6c94ee832b"/></dir><file name="Pickup.php" hash="216c7325f405761b14cbedde449d2cb6"/></dir><file name="Observer.php" hash="5f83ef6b65f99e439a9385ec02e13853"/><file name="Pickup.php" hash="9ed2ad2889e017c1fab32cca4c8355f8"/><dir name="Sales"><file name="Order.php" hash="712cf95fdcebdcd7b9695aedaa88ed2e"/></dir></dir><dir name="etc"><file name="config.xml" hash="ac40b8cdda80bf97ba47177e78b9af93"/><file name="system.xml" hash="64f86253ba611f0fcafd8a9dc055a757"/></dir><dir name="sql"><dir name="pickup_setup"><file name="mysql4-install-0.1.0.php" hash="52c6c1b853ca325914901d86e7d30597"/></dir></dir></dir><dir name="StoreShipper"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="View.php" hash="54f6de1fed7c9023b484ae767f3834fd"/></dir></dir><dir name="Stores"><dir name="Edit"><file name="Button.php" hash="0a1ca8110d14131fef663274cddfb9a4"/><file name="Country.php" hash="b51205ca2ae9bf753ba6759698aba3d5"/><file name="Form.php" hash="b00e363afd28df06dffec013e1037c4d"/><file name="Html.php" hash="c1092b7b84e7e0aeacf525505b9fb622"/><file name="Images.php" hash="
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Proxymit_StoreShipper</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Store Shipper is a delivery extension that allows customers to receive their products in the nearest store when choosing a delivery method in the checkout page.
|
11 |
It has a back-office interface to manage the details of your stores (ex. Location, Address, Contact coordinates, Schedule of working hours and days ...) with a notification emails to both customers and store owners.
|
12 |
</description>
|
13 |
+
<notes>Minor optimization in the back-end interface.</notes>
|
|
|
14 |
<authors><author><name>Proxym Group</name><user>Proxym_IT</user><email>magento@proxym-group.com</email></author><author><name>Kais Elouragini</name><user>kaisinter</user><email>kais.elouragini@gmail.com</email></author></authors>
|
15 |
+
<date>2015-05-29</date>
|
16 |
+
<time>08:35:28</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Proxymit"><dir name="Pickup"><dir name="Block"><file name="Pickup.php" hash="3c7707d7afb5fd8c324f272b6a06be39"/></dir><dir name="Helper"><file name="Data.php" hash="ecf62e258e7c12aa86de4bac15c25a32"/></dir><dir name="Model"><dir name="Carrier"><file name="Pickup.php" hash="a0956839e99a2f606d80dcf7d5e336af"/></dir><dir name="Mysql4"><dir name="Pickup"><file name="Collection.php" hash="79e0f31beff5db9cf37beb6c94ee832b"/></dir><file name="Pickup.php" hash="216c7325f405761b14cbedde449d2cb6"/></dir><file name="Observer.php" hash="5f83ef6b65f99e439a9385ec02e13853"/><file name="Pickup.php" hash="9ed2ad2889e017c1fab32cca4c8355f8"/><dir name="Sales"><file name="Order.php" hash="712cf95fdcebdcd7b9695aedaa88ed2e"/></dir></dir><dir name="etc"><file name="config.xml" hash="ac40b8cdda80bf97ba47177e78b9af93"/><file name="system.xml" hash="64f86253ba611f0fcafd8a9dc055a757"/></dir><dir name="sql"><dir name="pickup_setup"><file name="mysql4-install-0.1.0.php" hash="52c6c1b853ca325914901d86e7d30597"/></dir></dir></dir><dir name="StoreShipper"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="View.php" hash="54f6de1fed7c9023b484ae767f3834fd"/></dir></dir><dir name="Stores"><dir name="Edit"><file name="Button.php" hash="0a1ca8110d14131fef663274cddfb9a4"/><file name="Country.php" hash="b51205ca2ae9bf753ba6759698aba3d5"/><file name="Form.php" hash="b00e363afd28df06dffec013e1037c4d"/><file name="Html.php" hash="c1092b7b84e7e0aeacf525505b9fb622"/><file name="Images.php" hash="d7ae2b4dc3e32b4b55f5b69e8e2edb95"/><file name="Map.php" hash="5e697f39d1e75b46d0282516d3288c94"/><file name="StoreViewColumn.php" hash="2c36ba4bba1e4ca3c73951c9a64bc933"/><dir name="Tab"><file name="Contact.php" hash="ed80b6a8e0a71c10109ddd8d9d24506c"/><file name="Form.php" hash="27a0a553a8e5a45b8ee1ac2bdc103c22"/><file name="Geo.php" hash="c48c1df95b3e8d98930d8d63300116b5"/><file name="Grid.php" hash="89a9105c4208e8f01920b3b6a4957744"/><file name="Orders.php" hash="291f387975d9157c67a7705d5840443d"/><file name="Schedule.php" hash="32e1d2c6bb6fb48cfd5a527252a04075"/></dir><file name="Tabs.php" hash="5edef8c10c42c7ba17c974a2c762f933"/></dir><file name="Edit.php" hash="143a89809c04d9a0d7f0a88a27b46552"/><file name="Grid.php" hash="478a9bd09cc964831e95226676901b9e"/></dir><file name="Stores.php" hash="6d1b31b17463dc95836ff622cf1ebc74"/></dir><file name="OurStores.php" hash="9748faf9ae758c86dcd873e0f11da6d8"/><dir name="Sales"><dir name="Order"><file name="Details.php" hash="d8c40cf76dfe2b0ed60e20664efba413"/><file name="Info.php" hash="d5a334a930990147176db75a1414fd73"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="4db730c74e14cd4efc282a400d914dca"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Grid"><file name="Collection.php" hash="0a0cf92a30d0a5975bad8a7a5182600b"/></dir><file name="Grid.php" hash="ae16af89aecc74bcf52a61a9b4ec5187"/><dir name="Orders"><file name="Collection.php" hash="d029e22562052a3016780de47dd1a776"/></dir><file name="Orders.php" hash="d19868310aee510808f8ed977fae066b"/><dir name="Pickup"><file name="Collection.php" hash="826510bf7d5e3a9c2f85d2f02e0510b7"/></dir><dir name="Schedule"><file name="Collection.php" hash="0a9f8bd84b026e04fc537342948c27ce"/></dir><file name="Schedule.php" hash="d4d53ff739fb2f39b9b667f9b413a9f1"/><dir name="Stores"><file name="Collection.php" hash="a7332f6deb916116e9eb258f0a1d7db4"/></dir><file name="Stores.php" hash="2b485a9a369e71dd411dabcef992b1f4"/></dir><file name="Orders.php" hash="bfd510d47f89e711dfc25194617adac3"/><file name="Schedule.php" hash="7dc8e5d93a90298d4d259c3dc5381a2d"/><file name="Stores.php" hash="3573385d27ce0686f037bc173bcc8274"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="cc2aa3a88eecc35131449a3dadd33d44"/></dir><file name="IndexController.php" hash="8ace1e5cb99e7238d68921966a421f40"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1b6752942dc3b158c510197e828b7114"/><file name="config.xml" hash="fc6ba83e7d3811fe840cd6f5e877298b"/></dir><dir name="sql"><dir name="storeshipper_setup"><file name="mysql4-install-0.0.1.php" hash="3758034b948bec840b58b2c8c239e9d0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="storeshipper.xml" hash="b761b39334537ddd20f9816903fb28c5"/></dir><dir name="template"><dir name="storeshipper"><dir name="sales"><file name="info.phtml" hash="3cb149a18b801d0a79394fc07125a6eb"/><dir name="order"><dir name="creditmemo"><dir name="create"><file name="form.phtml" hash="1c5f908d7f210a5020a72ce12dec215b"/></dir><dir name="view"><file name="form.phtml" hash="cbb0b183c4d7891c94a291e81705db39"/></dir></dir><dir name="invoice"><dir name="create"><file name="form.phtml" hash="e6455ad14f099971af1298cf9fa85537"/></dir><dir name="view"><file name="form.phtml" hash="541d7cfd141f40d990b5174f922590ef"/></dir></dir><dir name="shipment"><dir name="create"><file name="form.phtml" hash="6088357bbc6c1809b3c9dd8fa421dd12"/></dir><dir name="view"><file name="form.phtml" hash="fa14a8a546db34b412071a132c00a8c0"/></dir></dir></dir></dir><file name="stores.phtml" hash="f84214fc43f665c79b92dc7a092b364f"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pickup.xml" hash="939372e4fccfda4858fb9897ba058aa5"/><file name="storeshipper.xml" hash="67097046746c80242734e1906e7000bb"/></dir><dir name="template"><dir name="pickup"><dir name="checkout"><dir name="onepage"><dir name="shipping_method"><file name="available.phtml" hash="b6f05f400203a552938f6516b285116f"/></dir></dir></dir><file name="pickup.phtml" hash="378e2d7cfb97a9e793b285fa61afe25b"/></dir><dir name="storeshipper"><file name="ourstores.phtml" hash="3261e0be928e7e40ad6d31976b934fa8"/><dir name="sales"><dir name="order"><file name="details.phtml" hash="1d55d81837b49180f936d336e6affff7"/><file name="info.phtml" hash="4c8852b5dcfbbc5c5091a29e1930289e"/><dir name="print"><file name="creditmemo.phtml" hash="9de481f4fec7e3358a659b749cb3016d"/><file name="invoice.phtml" hash="a199ce301ab6bdbeedfd4752c2c85b9b"/></dir><file name="print.phtml" hash="35d1b5ffaf9cf17199b021b66494f868"/></dir></dir></dir></dir></dir></dir><dir name="proxymit"><dir name="default"><dir name="template"><dir name="sales"><dir name="order"><file name="info.phtml" hash="38482e9412c9d69349070a4b349784c3"/><dir name="print"><file name="creditmemo.phtml" hash=""/></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="sales"><file name="storeshipper_customer.html" hash="bc7196d3d1c2d248eb8e8949c266211f"/><file name="storeshipper_manager.html" hash="bddaf245c893560c2f0d5f9a1c85c527"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Proxymit_Pickup.xml" hash="3927e43fd741918c4097099eda5d9d5d"/><file name="Proxymit_StoreShipper.xml" hash="c2449245e0564b56b5dc48d512b0f722"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|