Version Notes
This is stable realase
Download this release
Release Info
Developer | Jose A Hernandez |
Extension | jah_dash |
Version | 0.1.1 |
Comparing to | |
See all releases |
Code changes from version 0.1.0 to 0.1.1
- app/code/community/Magjah/Customship/Block/Adminhtml/Ship/Shipmain.php +0 -32
- app/code/community/Magjah/Customship/Helper/Data.php +0 -4
- app/code/community/Magjah/Customship/Model/Carrier/Shipjah.php +0 -90
- app/code/community/Magjah/Customship/Model/Resource/Condition.php +0 -15
- app/code/community/Magjah/Customship/Model/Resource/Shiprules.php +0 -8
- app/code/community/Magjah/Customship/Model/Resource/Shiprules/Collection.php +0 -10
- app/code/community/Magjah/Customship/Model/Shiprules.php +0 -10
- app/code/community/Magjah/Customship/controllers/Adminhtml/ShipController.php +0 -34
- app/code/community/Magjah/Customship/controllers/IndexController.php +0 -15
- app/code/community/Magjah/Customship/etc/adminhtml.xml +0 -33
- app/code/community/Magjah/Customship/etc/config.xml +0 -83
- app/code/community/Magjah/Customship/etc/system.xml +0 -110
- app/code/community/Magjah/Customship/sql/magjah_customship_setup/install-0.1.0.php +0 -44
- package.xml +3 -3
- skin/adminhtml/default/default/images/catalog/product/placeholder/image.jpg +0 -0
- skin/adminhtml/default/default/images/catalog/product/placeholder/small_image.jpg +0 -0
- skin/adminhtml/default/default/images/catalog/product/placeholder/thumbnail.jpg +0 -0
app/code/community/Magjah/Customship/Block/Adminhtml/Ship/Shipmain.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magjah_Customship_Block_Adminhtml_Ship_Shipmain extends Mage_Adminhtml_Block_Template
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
$this->_headerText = Mage::helper('magjah_customship')->__('Rules');
|
8 |
-
parent::__construct();
|
9 |
-
$this->setTemplate('magjah/ship/shipmain.phtml');
|
10 |
-
}
|
11 |
-
|
12 |
-
public function _beforeToHtml()
|
13 |
-
{
|
14 |
-
/* $this->setChild('gridcustomer', $this->getLayout()->createBlock('magjah_dash/adminhtml_dash_dashmain_gridcustomer', 'dash.gridcustomer'));
|
15 |
-
$this->setChild('gridorder', $this->getLayout()->createBlock('magjah_dash/adminhtml_dash_dashmain_gridorder', 'dash.gridorder'));
|
16 |
-
$this->setChild('gridproduct', $this->getLayout()->createBlock('magjah_dash/adminhtml_dash_dashmain_gridproduct', 'dash.gridproduct'));
|
17 |
-
if (Mage::getStoreConfig(self::XML_PATH_ENABLE_CHARTS)) {
|
18 |
-
$block = $this->getLayout()->createBlock('magjah_dash/adminhtml_dash_dashmain_diagrams');
|
19 |
-
} else {
|
20 |
-
$block = $this->getLayout()->createBlock('adminhtml/template')
|
21 |
-
->setTemplate('dashboard/graph/disabled.phtml')
|
22 |
-
->setConfigUrl($this->getUrl('adminhtml/system_config/edit', array('section'=>'admin')));
|
23 |
-
}
|
24 |
-
$this->setChild('diagrams', $block);
|
25 |
-
return $this;*/
|
26 |
-
}
|
27 |
-
|
28 |
-
public function getTotal(){
|
29 |
-
$collection = Mage::getSingleton('magjah_customship/shiprules')->getCollection();
|
30 |
-
return $collection->count();
|
31 |
-
}
|
32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/Helper/Data.php
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magjah_Customship_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
-
{
|
4 |
-
}
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/Model/Carrier/Shipjah.php
DELETED
@@ -1,90 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magjah_Customship_Model_Carrier_Shipjah extends Mage_Shipping_Model_Carrier_Abstract
|
4 |
-
implements Mage_Shipping_Model_Carrier_Interface
|
5 |
-
{
|
6 |
-
protected $_code = 'magjah_customship';
|
7 |
-
|
8 |
-
public function getAllowedMethods()
|
9 |
-
{
|
10 |
-
return array(
|
11 |
-
'free' => 'Free delivery',
|
12 |
-
'standard' => 'Standard delivery',
|
13 |
-
'special' => 'Special delivery',
|
14 |
-
);
|
15 |
-
}
|
16 |
-
|
17 |
-
public function collectRates(Mage_Shipping_Model_Rate_Request $request)
|
18 |
-
{
|
19 |
-
if (!$this->getConfigData('active')) {
|
20 |
-
Mage::log('The '.$this->_code.' shipping method is not active.');
|
21 |
-
return false;
|
22 |
-
}
|
23 |
-
$result = Mage::getModel('shipping/rate_result');
|
24 |
-
|
25 |
-
// $items = Mage::getModel('checkout/session')->getQuote()->getAllItems();
|
26 |
-
$items = $request->getAllItems();
|
27 |
-
$totals = 0;
|
28 |
-
foreach ($items as $item) {
|
29 |
-
$totals += $item->getQty();
|
30 |
-
}
|
31 |
-
|
32 |
-
if($this->getConfigData('free_shipping_enable') && $request->getPackageValue() >= $this->getConfigData('free_shipping_subtotal')){
|
33 |
-
$result->append($this->_getFreeShip());
|
34 |
-
}
|
35 |
-
|
36 |
-
/* if ($totals >= $this->getConfigData('minimum_item_limit'))
|
37 |
-
$result->append($this->_getSpecialRate());
|
38 |
-
else
|
39 |
-
$result->append($this->_getStandardRate());
|
40 |
-
return $result;*/
|
41 |
-
}
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
protected function _getFreeShip(){
|
46 |
-
$method = Mage::getModel('shipping/rate_result_method');
|
47 |
-
$code = 'free';
|
48 |
-
$method->setCarrier($this->_code);
|
49 |
-
$method->setCarrierTitle($this->getConfigData('title'));
|
50 |
-
$method->setMethod($code);
|
51 |
-
$method->setMethodTitle('Free Shipping');
|
52 |
-
$method->setPrice(0.00);
|
53 |
-
return $method;
|
54 |
-
|
55 |
-
}
|
56 |
-
|
57 |
-
protected function _getSpecialRate(){
|
58 |
-
|
59 |
-
$method = Mage::getModel('shipping/rate_result_method');
|
60 |
-
$code = 'special';
|
61 |
-
$title = $this->getConfigData('over_minimum_title');
|
62 |
-
$price = $this->getConfigData('over_minimum_price');
|
63 |
-
$method->setCarrier($this->_code);
|
64 |
-
$method->setCarrierTitle($this->getConfigData('title'));
|
65 |
-
$method->setMethod($code);
|
66 |
-
$method->setMethodTitle($title);
|
67 |
-
$method->setPrice($price + $this->getConfigData('handling'));
|
68 |
-
|
69 |
-
return $method;
|
70 |
-
|
71 |
-
}
|
72 |
-
|
73 |
-
|
74 |
-
protected function _getStandardRate(){
|
75 |
-
|
76 |
-
$method = Mage::getModel('shipping/rate_result_method');
|
77 |
-
$code = 'standard';
|
78 |
-
$title = $this->getConfigData('under_minimum_title');
|
79 |
-
$price = $this->getConfigData('under_minimum_price');
|
80 |
-
$method->setCarrier($this->_code);
|
81 |
-
$method->setCarrierTitle($this->getConfigData('title'));
|
82 |
-
$method->setMethod($code);
|
83 |
-
$method->setMethodTitle($title);
|
84 |
-
$method->setPrice($price + $this->getConfigData('handling'));
|
85 |
-
|
86 |
-
return $method;
|
87 |
-
|
88 |
-
}
|
89 |
-
|
90 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/Model/Resource/Condition.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magjah_Customship_Model_Resource_Condition extends Mage_Core_Model_Abstract
|
3 |
-
{
|
4 |
-
|
5 |
-
public function toOptionArray()
|
6 |
-
{
|
7 |
-
return array(
|
8 |
-
array('value'=>0, 'label'=>Mage::helper('magjah_customship')->__('Weight vs. Destination')),
|
9 |
-
array('value'=>1, 'label'=>Mage::helper('magjah_customship')->__('Price vs. Destination')),
|
10 |
-
array('value'=>2, 'label'=>Mage::helper('magjah_customship')->__('Price and Weight vs. Destination')),
|
11 |
-
array('value'=>3, 'label'=>Mage::helper('magjah_customship')->__('Number of Items vs. Destination')),
|
12 |
-
);
|
13 |
-
}
|
14 |
-
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/Model/Resource/Shiprules.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magjah_Customship_Model_Resource_Shiprules extends Mage_Core_Model_Resource_Db_Abstract
|
3 |
-
{
|
4 |
-
public function _construct()
|
5 |
-
{
|
6 |
-
$this->_init('magjah_customship/customship', 'id');
|
7 |
-
}
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/Model/Resource/Shiprules/Collection.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magjah_Customship_Model_Resource_Shiprules_Collection extends Mage_Core_Model_Resource_Db_Collection_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('magjah_customship/shiprules');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/Model/Shiprules.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magjah_Customship_Model_Shiprules extends Mage_Core_Model_Abstract
|
3 |
-
{
|
4 |
-
public function _construct()
|
5 |
-
{
|
6 |
-
parent::_construct();
|
7 |
-
$this->_init('magjah_customship/shiprules');
|
8 |
-
}
|
9 |
-
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/controllers/Adminhtml/ShipController.php
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Created by PhpStorm.
|
5 |
-
* User: jhernandez
|
6 |
-
* Date: 10/20/14
|
7 |
-
* Time: 11:20 AM
|
8 |
-
*/
|
9 |
-
class Magjah_Customship_Adminhtml_ShipController extends Mage_Adminhtml_Controller_Action
|
10 |
-
{
|
11 |
-
|
12 |
-
/*
|
13 |
-
index - Shows the grid.
|
14 |
-
edit - Shows the edit/new form.
|
15 |
-
save - Saves the form data.
|
16 |
-
delete - Deletes the model.
|
17 |
-
new - Forwards on to the edit action*/
|
18 |
-
|
19 |
-
|
20 |
-
public function indexAction()
|
21 |
-
{
|
22 |
-
$this->_title($this->__('Shipping Rules'))
|
23 |
-
->_title($this->__('Admin Shipping Rules'));
|
24 |
-
$this->loadLayout();
|
25 |
-
$this->_setActiveMenu('magjah/ship');
|
26 |
-
$this->_addContent(
|
27 |
-
$this->getLayout()->createBlock('magjah_customship/adminhtml_ship_shipmain')
|
28 |
-
);
|
29 |
-
$this->renderLayout();
|
30 |
-
}
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/controllers/IndexController.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Created by PhpStorm.
|
4 |
-
* User: jhernandez
|
5 |
-
* Date: 7/16/14
|
6 |
-
* Time: 2:24 PM
|
7 |
-
*/
|
8 |
-
|
9 |
-
class Magjah_Customship_IndexController extends Mage_Core_Controller_Front_Action {
|
10 |
-
|
11 |
-
public function indexAction() {
|
12 |
-
die('joseeeeeeeeeeeeeeeeeeeee');
|
13 |
-
}
|
14 |
-
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/etc/adminhtml.xml
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<?xml version="1.0" ?>
|
2 |
-
<config>
|
3 |
-
<menu>
|
4 |
-
<magjah translate="title" module="magjah_customship">
|
5 |
-
<title>Magjah</title>
|
6 |
-
<sort_order>1000</sort_order>
|
7 |
-
<children>
|
8 |
-
<ship>
|
9 |
-
<title>Rules Shipping</title>
|
10 |
-
<sort_order>1</sort_order>
|
11 |
-
<action>adminhtml/ship</action>
|
12 |
-
</ship>
|
13 |
-
</children>
|
14 |
-
</magjah>
|
15 |
-
</menu>
|
16 |
-
<acl>
|
17 |
-
<resources>
|
18 |
-
<admin>
|
19 |
-
<children>
|
20 |
-
<magjah translate="title" module="magjah_customship">
|
21 |
-
<title>Top Level Ship</title>
|
22 |
-
<sort_order>1</sort_order>
|
23 |
-
<children>
|
24 |
-
<ship>
|
25 |
-
<title>Ship Rules</title>
|
26 |
-
</ship>
|
27 |
-
</children>
|
28 |
-
</magjah>
|
29 |
-
</children>
|
30 |
-
</admin>
|
31 |
-
</resources>
|
32 |
-
</acl>
|
33 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/etc/config.xml
DELETED
@@ -1,83 +0,0 @@
|
|
1 |
-
<config>
|
2 |
-
<modules>
|
3 |
-
<Magjah_Customship>
|
4 |
-
<version>0.1.0</version>
|
5 |
-
</Magjah_Customship>
|
6 |
-
</modules>
|
7 |
-
<default>
|
8 |
-
<carriers>
|
9 |
-
<magjah_customship>
|
10 |
-
<model>magjah_customship/carrier_shipjah</model>
|
11 |
-
</magjah_customship>
|
12 |
-
</carriers>
|
13 |
-
</default>
|
14 |
-
<global>
|
15 |
-
<blocks>
|
16 |
-
<magjah_customship>
|
17 |
-
<class>Magjah_Customship_Block</class>
|
18 |
-
</magjah_customship>
|
19 |
-
</blocks>
|
20 |
-
<helpers>
|
21 |
-
<magjah_customship>
|
22 |
-
<class>Magjah_Customship_Helper</class>
|
23 |
-
</magjah_customship>
|
24 |
-
</helpers>
|
25 |
-
<models>
|
26 |
-
<magjah_customship>
|
27 |
-
<class>Magjah_Customship_Model</class>
|
28 |
-
<resourceModel>magjah_customship_resource</resourceModel>
|
29 |
-
</magjah_customship>
|
30 |
-
<magjah_customship_resource>
|
31 |
-
<class>Magjah_Customship_Model_Resource</class>
|
32 |
-
<entities>
|
33 |
-
<customship>
|
34 |
-
<table>magjah_customship</table>
|
35 |
-
</customship>
|
36 |
-
</entities>
|
37 |
-
</magjah_customship_resource>
|
38 |
-
</models>
|
39 |
-
<resources>
|
40 |
-
<magjah_customship_setup>
|
41 |
-
<setup>
|
42 |
-
<module>Magjah_Customship</module>
|
43 |
-
<class>Mage_Eav_Model_Entity_Setup</class>
|
44 |
-
</setup>
|
45 |
-
<connection>
|
46 |
-
<use>core_setup</use>
|
47 |
-
</connection>
|
48 |
-
</magjah_customship_setup>
|
49 |
-
<magjah_customship_write>
|
50 |
-
<connection>
|
51 |
-
<use>core_write</use>
|
52 |
-
</connection>
|
53 |
-
</magjah_customship_write>
|
54 |
-
<magjah_customship_read>
|
55 |
-
<connection>
|
56 |
-
<use>core_read</use>
|
57 |
-
</connection>
|
58 |
-
</magjah_customship_read>
|
59 |
-
</resources>
|
60 |
-
</global>
|
61 |
-
<frontend> <!-- Mage_Core_Model_App_Area you have all are for scope -->
|
62 |
-
<routers>
|
63 |
-
<magjahcustomship>
|
64 |
-
<use>standard</use>
|
65 |
-
<args>
|
66 |
-
<module>Magjah_Customship</module>
|
67 |
-
<frontName>magjahcustomship</frontName>
|
68 |
-
</args>
|
69 |
-
</magjahcustomship>
|
70 |
-
</routers>
|
71 |
-
</frontend>
|
72 |
-
<admin>
|
73 |
-
<routers>
|
74 |
-
<adminhtml>
|
75 |
-
<args>
|
76 |
-
<modules>
|
77 |
-
<magjah_customship before="Mage_Adminhtml">Magjah_Customship_Adminhtml</magjah_customship>
|
78 |
-
</modules>
|
79 |
-
</args>
|
80 |
-
</adminhtml>
|
81 |
-
</routers>
|
82 |
-
</admin>
|
83 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/etc/system.xml
DELETED
@@ -1,110 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<sections>
|
4 |
-
<carriers>
|
5 |
-
<groups>
|
6 |
-
<magjah_customship translate="label" module="shipping">
|
7 |
-
<label>Custom Shipping in Magento Admin without csv</label>
|
8 |
-
<frontend_type>text</frontend_type>
|
9 |
-
<sort_order>1</sort_order>
|
10 |
-
<show_in_default>1</show_in_default>
|
11 |
-
<show_in_website>1</show_in_website>
|
12 |
-
<show_in_store>1</show_in_store>
|
13 |
-
<comment>
|
14 |
-
<![CDATA[
|
15 |
-
<div style="padding:20px;background-color:#fff;border:1px solid;">
|
16 |
-
This module was developed by <a href="http://www.magentocommerce.com/certification/directory/dev/33273/" target="_blank">Jose A Hernandez</a> - <b>Magento Developer PLus</b>.
|
17 |
-
<br/>You can create your shipping rules directly in the magento admin.
|
18 |
-
<br/>You have four type of condition for create your rules.
|
19 |
-
</div>
|
20 |
-
]]>
|
21 |
-
</comment>
|
22 |
-
<fields>
|
23 |
-
<active translate="label">
|
24 |
-
<label>Enabled</label>
|
25 |
-
<frontend_type>select</frontend_type>
|
26 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
27 |
-
<sort_order>1</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 |
-
</active>
|
32 |
-
<title translate="label">
|
33 |
-
<label>Title</label>
|
34 |
-
<frontend_type>text</frontend_type>
|
35 |
-
<sort_order>1</sort_order>
|
36 |
-
<show_in_default>1</show_in_default>
|
37 |
-
<show_in_website>1</show_in_website>
|
38 |
-
<show_in_store>1</show_in_store>
|
39 |
-
</title>
|
40 |
-
<free_shipping_enable translate="label">
|
41 |
-
<label>Free shipping with minimum order amount</label>
|
42 |
-
<frontend_type>select</frontend_type>
|
43 |
-
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
44 |
-
<sort_order>2</sort_order>
|
45 |
-
<show_in_default>1</show_in_default>
|
46 |
-
<show_in_website>1</show_in_website>
|
47 |
-
<show_in_store>1</show_in_store>
|
48 |
-
</free_shipping_enable>
|
49 |
-
<free_shipping_subtotal translate="label">
|
50 |
-
<label>Minimum order amount for free shipping</label>
|
51 |
-
<frontend_type>text</frontend_type>
|
52 |
-
<sort_order>3</sort_order>
|
53 |
-
<show_in_default>1</show_in_default>
|
54 |
-
<show_in_website>1</show_in_website>
|
55 |
-
<show_in_store>1</show_in_store>
|
56 |
-
</free_shipping_subtotal>
|
57 |
-
|
58 |
-
<condition_type translate="label">
|
59 |
-
<label>Conditions Types</label>
|
60 |
-
<frontend_type>multiselect</frontend_type>
|
61 |
-
<source_model>magjah_customship/resource_condition</source_model>
|
62 |
-
<sort_order>4</sort_order>
|
63 |
-
<tooltip>
|
64 |
-
Once you change this and save you must create the rules for your shipping in ......
|
65 |
-
</tooltip>
|
66 |
-
<show_in_default>1</show_in_default>
|
67 |
-
<show_in_website>1</show_in_website>
|
68 |
-
<show_in_store>1</show_in_store>
|
69 |
-
</condition_type>
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
<sallowspecific translate="label">
|
74 |
-
<label>Ship to applicable countries</label>
|
75 |
-
<frontend_type>select</frontend_type>
|
76 |
-
<sort_order>90</sort_order>
|
77 |
-
<frontend_class>shipping-applicable-country</frontend_class>
|
78 |
-
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
79 |
-
<show_in_default>1</show_in_default>
|
80 |
-
<show_in_website>1</show_in_website>
|
81 |
-
<show_in_store>1</show_in_store>
|
82 |
-
</sallowspecific>
|
83 |
-
<specificcountry translate="label">
|
84 |
-
<label>Ship to Specific countries</label>
|
85 |
-
<frontend_type>multiselect</frontend_type>
|
86 |
-
<sort_order>91</sort_order>
|
87 |
-
<source_model>adminhtml/system_config_source_country</source_model>
|
88 |
-
<show_in_default>1</show_in_default>
|
89 |
-
<show_in_website>1</show_in_website>
|
90 |
-
<show_in_store>1</show_in_store>
|
91 |
-
</specificcountry>
|
92 |
-
|
93 |
-
<showmethod translate="label">
|
94 |
-
<label>Show method if not applicable</label>
|
95 |
-
<frontend_type>select</frontend_type>
|
96 |
-
<sort_order>92</sort_order>
|
97 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
98 |
-
<show_in_default>1</show_in_default>
|
99 |
-
<show_in_website>1</show_in_website>
|
100 |
-
<show_in_store>1</show_in_store>
|
101 |
-
</showmethod>
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
</fields>
|
106 |
-
</magjah_customship>
|
107 |
-
</groups>
|
108 |
-
</carriers>
|
109 |
-
</sections>
|
110 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Magjah/Customship/sql/magjah_customship_setup/install-0.1.0.php
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$installer = $this;
|
3 |
-
$installer->startSetup();
|
4 |
-
$connection = $installer->getConnection();
|
5 |
-
$connection->dropTable($this->getTable('magjah_customship/customship'));
|
6 |
-
$table = $installer->getConnection()
|
7 |
-
->newTable($installer->getTable('magjah_customship/customship'))
|
8 |
-
->addColumn('id', Varien_Db_Ddl_Table::TYPE_BIGINT, 15, array(
|
9 |
-
'identity' => true,
|
10 |
-
'nullable' => false,
|
11 |
-
'primary' => true,
|
12 |
-
), 'id')
|
13 |
-
->addColumn('website_id', Varien_Db_Ddl_Table::TYPE_SMALLINT, NULL, array(
|
14 |
-
'nullable' => false,
|
15 |
-
'default' => 0
|
16 |
-
), 'website_id')
|
17 |
-
->addColumn('dest_country', Varien_Db_Ddl_Table::TYPE_TEXT, NULL, array(
|
18 |
-
'nullable' => false,
|
19 |
-
'default' => ''
|
20 |
-
), 'dest_country')
|
21 |
-
->addColumn('condition_title', Varien_Db_Ddl_Table::TYPE_TEXT, NULL, array(
|
22 |
-
'nullable' => false,
|
23 |
-
'default' => ''
|
24 |
-
), 'condition_title')
|
25 |
-
->addColumn('value_condition_f', Varien_Db_Ddl_Table::TYPE_DECIMAL,'12,4', array(
|
26 |
-
'nullable' => false,
|
27 |
-
'default' => 0.0000
|
28 |
-
), 'value_condition_f')
|
29 |
-
->addColumn('value_condition_t', Varien_Db_Ddl_Table::TYPE_DECIMAL,'12,4', array(
|
30 |
-
'nullable' => false,
|
31 |
-
'default' => 0.0000
|
32 |
-
), 'value_condition_t')
|
33 |
-
->addColumn('price', Varien_Db_Ddl_Table::TYPE_DECIMAL,'12,4', array(
|
34 |
-
'nullable' => false,
|
35 |
-
'default' => 0.0000
|
36 |
-
), 'price')
|
37 |
-
->addColumn('status', Varien_Db_Ddl_Table::TYPE_TEXT, NULL, array(
|
38 |
-
'nullable' => false,
|
39 |
-
'default' => ''
|
40 |
-
), 'status')
|
41 |
-
;
|
42 |
-
$installer->getConnection()->createTable($table);
|
43 |
-
$installer->endSetup();
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>jah_dash</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
@@ -12,8 +12,8 @@ Customer, Product and orders.</summary>
|
|
12 |
<notes>This is stable realase</notes>
|
13 |
<authors><author><name>Jose A Hernandez</name><user>jalfredo1980</user><email>pepehernandez1980@gmail.com</email></author></authors>
|
14 |
<date>2015-03-09</date>
|
15 |
-
<time>21:
|
16 |
-
<contents><target name="magecommunity"><dir name="Magjah"><dir name="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>5.4.27</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5</min><max>1.8.1.0</max></package></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>jah_dash</name>
|
4 |
+
<version>0.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
|
7 |
<channel>community</channel>
|
12 |
<notes>This is stable realase</notes>
|
13 |
<authors><author><name>Jose A Hernandez</name><user>jalfredo1980</user><email>pepehernandez1980@gmail.com</email></author></authors>
|
14 |
<date>2015-03-09</date>
|
15 |
+
<time>21:56:25</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Magjah"><dir name="Dash"><dir name="Block"><dir name="Adminhtml"><dir name="Dash"><dir name="Dashmain"><file name="Diagrams.php" hash="527fb74b4ad8a078cf2662a948dd9e10"/><file name="Graph.php" hash="8f860766b215f4d7e00ed685d4859534"/><dir name="Gridcustomer"><file name="Accordion.php" hash="59b0c379ac85520e4f7f51a38163df05"/><file name="Grid.php" hash="0842539fcb0abc24a225c1ba406c379a"/><file name="Item.php" hash="fe8f8bf65d2acf46180d7ebf67a9200d"/><file name="Orders.php" hash="10ef4fbfe7c7a604be78f96af3749f45"/><dir name="Render"><file name="Orders.php" hash="5441136a7bec3bb399a57ae166b32a9d"/><file name="Showbutton.php" hash="785b8175add1746affe386aafc3ad0e5"/></dir></dir><file name="Gridcustomer.php" hash="42148285d3f551f780c9fad217336773"/><dir name="Gridorder"><file name="Grid.php" hash="556fab582cb4d8d337996e7aa5d28ef5"/><file name="Item.php" hash="a04b74db34687e7162df65377db5368f"/><dir name="Render"><file name="Showbutton.php" hash="a16a09d422864306d52fcc2755f8da66"/></dir></dir><file name="Gridorder.php" hash="2576b2c48ddbf79b0a3c07b00ed3a1b6"/><dir name="Gridproduct"><file name="Grid.php" hash="3e18eefd719a4e5a210228b6ca0bc9ca"/><file name="Item.php" hash="5f2f299393343c54b3fb13bccc12e004"/><file name="Media.php" hash="23564f4a80d6426e5d2bf37e413e5bb0"/><dir name="Render"><file name="Showbutton.php" hash="ff3ae8b4218ce66a2dcd0e1735902fb3"/></dir></dir><file name="Gridproduct.php" hash="b0dc3ebceeff1d70d1c78c01aa099c73"/><dir name="Tab"><file name="Customers.php" hash="dbb48850a28128f1a8699259bc6cffeb"/><file name="Customersorders.php" hash="03f6f25ba70da3c655eb993d81e97100"/><file name="Orders.php" hash="ed59ab903189753d6e78124c885d8652"/><file name="Products.php" hash="cd90290eeb7c88da242ae9e288e5ea3e"/><file name="Summary.php" hash="240f353dd9d1d6f8f5e44734cb05f586"/></dir></dir><file name="Dashmain.php" hash="4b299798b619edb39c031c1c49173b9c"/></dir></dir></dir><dir name="Helper"><dir name="Dashboard"><file name="Customer.php" hash="97222ace449fcfac349010456c78fac2"/><file name="CustomerOrder.php" hash="b8835517e7ba2e4f4152e9cf8209b8b5"/><file name="Diagrams.php" hash="6d11e88632a44c15823d94916f374e7d"/><file name="Order.php" hash="608c1c6f3a4b517785d18df2a9a54a35"/><file name="Product.php" hash="7b528cb0da0887d8a06a20c0e9033436"/></dir><file name="Data.php" hash="288abb1c21ed95caf1bf96382f1b1c40"/></dir><dir name="Model"><dir name="Resource"><dir name="Customer"><file name="Collection.php" hash="6878e6798bfe57dd22db7088508672dc"/><dir name="Order"><file name="Collection.php" hash="86eb78c6f5ab31c239c98a437a76f8cb"/></dir></dir><file name="Customer.php" hash="a7861054bdf70257f790a67562fc88f5"/><dir name="Order"><file name="Collection.php" hash="ec941bb6768f67cff5b6f0069f754d57"/></dir><file name="Order.php" hash="a5a62e550a0c7be9690d780604a066ba"/><dir name="Product"><file name="Collection.php" hash="a2b485b6dd3811db3b488730fd81999b"/></dir><file name="Product.php" hash="0b04388381c43621f278bc594b39a905"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Dashboard"><file name="IndexController.php" hash="a517ffc83951d330f0fc7869c2fe3913"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="74f90e1a1e2e3439a1c9f0c7528fa211"/><file name="config.xml" hash="61575a40dc3a6fc5d05fa27cefe86f09"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="dash.xml" hash="23199d236a870b524f5813d0e55623e2"/></dir><dir name="template"><dir name="dash"><dir name="dashmain"><file name="graph.phtml" hash="b16538929e31c0ea92f04d3e1c498305"/><dir name="gridcustomer"><file name="item.phtml" hash="394b55777c0c7a14005e2bfab7f935f0"/><file name="orders.phtml" hash="e3b9887475a0eae9ced1787871cd0352"/></dir><dir name="gridorder"><file name="item.phtml" hash="1674e509451fcd8428710ccb1dd3c7cd"/></dir><dir name="gridproduct"><file name="item.phtml" hash="30b1194e3e57c93da24ba0c488150e8b"/><file name="media.phtml" hash="e2cdd5b6e51c031b41a1763ab6cdc56e"/></dir><file name="summary.phtml" hash="0727a4d931b2e760efdeae6d37ca093c"/></dir><file name="dashmain.phtml" hash="09b05e7767163d4263aa3a36d9646dfb"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magjah_Dash.xml" hash="ec380694ed380a440aef29776eda9690"/></dir></target><target name="mageweb"><dir name="js"><dir name="dash"><file name="function.js" hash="bd6a9f3797fba881aa011a89d4afc843"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="dash.css" hash="57724f8f4906f79455b9adfb631f1ac4"/><dir name="images"><dir name="catalog"><dir name="product"><dir name="placeholder"><file name="image.jpg" hash="097ab8a3051bc037ea3de0e17f440540"/><file name="small_image.jpg" hash="f825d16f97a640453553c79c48ebaa73"/><file name="thumbnail.jpg" hash="b2b682d28a08a748a73d2cda70ab5a57"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>5.4.27</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5</min><max>1.8.1.0</max></package></required></dependencies>
|
19 |
</package>
|
skin/adminhtml/default/default/images/catalog/product/placeholder/image.jpg
ADDED
Binary file
|
skin/adminhtml/default/default/images/catalog/product/placeholder/small_image.jpg
ADDED
Binary file
|
skin/adminhtml/default/default/images/catalog/product/placeholder/thumbnail.jpg
ADDED
Binary file
|