Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Magmodules committed Jan 20, 2017
0 parents commit c1d3721
Show file tree
Hide file tree
Showing 32 changed files with 2,520 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
*.zip
.DS_Store
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Fadello Same Day Delivery for Magento® 1

With this Fadello Shipping extension for Magento you can easily connect your Magento® 1 store with the Fadello Same Day Delivery Platform using the API connection.
## Development by Magmodules

We are a Dutch Magento® Only Agency dedicated to the development of extensions for Magento® 1 and Magento® 2. All our extensions are coded by our own team and our support team is always there to help you out.

[Visit Magmodules.eu](https://www.magmodules.eu/)

## Developed for Fadello

Fadello provides an unique logistic platform. We deliver your clients orders the same evening between 18.00h and 22.30h. We also provide next day deliveries until 12 PM. Nobody wants to wait days for their packages to arrive. We have the best solution for that problem; with our smart IT-platform we can deliver orders the same day.

[Visit Fadello.nl](https://www.fadello.nl/)

## Links

[Knowledgebase](https://www.magmodules.eu/help/fadello)

[Terms and Conditions](https://www.magmodules.eu/terms.html)

[Contact Us](https://www.magmodules.eu/contact-us.html)
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?php
/**
* *
* * Magmodules.eu - http://www.magmodules.eu
* *
* * NOTICE OF LICENSE
* * This source file is subject to the Open Software License (OSL 3.0)
* * that is bundled with this package in the file LICENSE.txt.
* * It is also available through the world-wide-web at this URL:
* * http://opensource.org/licenses/osl-3.0.php
* * If you did not receive a copy of the license and are unable to
* * obtain it through the world-wide-web, please send an email
* * to [email protected] so we can send you a copy immediately.
* *
* * @category Magmodules
* * @package Magmodules_Fadello
* * @author Magmodules <[email protected]>
* * @copyright Copyright (c) 2017 (http://www.magmodules.eu)
* * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*/

class Magmodules_Fadello_Block_Adminhtml_Config_Form_Field_Availability
extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
{

protected $_renders = array();

/**
* Magmodules_Fadello_Block_Adminhtml_Config_Form_Field_Availability constructor.
*/
public function __construct()
{
$layout = Mage::app()->getFrontController()->getAction()->getLayout();
$rendererDays = $layout->createBlock(
'fadello/adminhtml_config_form_renderer_select', '',
array('is_render_to_js_template' => true)
);
$rendererDays->setOptions(Mage::getModel('fadello/adminhtml_system_config_source_days')->toOptionArray());

$this->addColumn(
'day', array(
'label' => Mage::helper('fadello')->__('Day'),
'style' => 'width:100px',
'renderer' => $rendererDays
)
);

$this->addColumn(
'from', array(
'label' => Mage::helper('fadello')->__('From'),
'style' => 'width:40px',
)
);

$this->addColumn(
'to', array(
'label' => Mage::helper('fadello')->__('To'),
'style' => 'width:40px',
)
);

$this->addColumn(
'title', array(
'label' => Mage::helper('fadello')->__('Title'),
'style' => 'width:100px',
)
);

$this->_renders['day'] = $rendererDays;

$this->_addAfter = false;
$this->_addButtonLabel = Mage::helper('fadello')->__('Add Option');
parent::__construct();
}

/**
* @param Varien_Object $row
*/
protected function _prepareArrayRow(Varien_Object $row)
{
foreach ($this->_renders as $key => $render) {
$row->setData(
'option_extra_attr_' . $render->calcOptionHash($row->getData($key)),
'selected="selected"'
);
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?php
/**
* *
* * Magmodules.eu - http://www.magmodules.eu
* *
* * NOTICE OF LICENSE
* * This source file is subject to the Open Software License (OSL 3.0)
* * that is bundled with this package in the file LICENSE.txt.
* * It is also available through the world-wide-web at this URL:
* * http://opensource.org/licenses/osl-3.0.php
* * If you did not receive a copy of the license and are unable to
* * obtain it through the world-wide-web, please send an email
* * to [email protected] so we can send you a copy immediately.
* *
* * @category Magmodules
* * @package Magmodules_Fadello
* * @author Magmodules <[email protected]>
* * @copyright Copyright (c) 2017 (http://www.magmodules.eu)
* * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*/

class Magmodules_Fadello_Block_Adminhtml_Config_Form_Field_Shipping
extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract
{

protected $_renders = array();

/**
* Magmodules_Fadello_Block_Adminhtml_Config_Form_Field_Shipping constructor.
*/
public function __construct()
{
$this->addColumn(
'from', array(
'label' => Mage::helper('fadello')->__('From Price'),
'style' => 'width:50px',
)
);

$this->addColumn(
'to', array(
'label' => Mage::helper('fadello')->__('To Price'),
'style' => 'width:50px',
)
);

$this->addColumn(
'cost', array(
'label' => Mage::helper('fadello')->__('Cost'),
'style' => 'width:50px',
)
);

$this->_addAfter = false;
$this->_addButtonLabel = Mage::helper('fadello')->__('Add Option');
parent::__construct();
}

/**
* @param Varien_Object $row
*/
protected function _prepareArrayRow(Varien_Object $row)
{
foreach ($this->_renders as $key => $render) {
$row->setData(
'option_extra_attr_' . $render->calcOptionHash($row->getData($key)),
'selected="selected"'
);
}
}

}
Loading

0 comments on commit c1d3721

Please sign in to comment.