Skip to content

Instantly share code, notes, and snippets.

@reindert-vetter
reindert-vetter / MyParcelConsignmentRepository.php
Last active December 21, 2017 13:47
Split street regex description
/**
* Regular expression used to split street name from house number.
*
* Street (key street)
* (?P<street>.*?)
*
* An Street and house number is sometimes separated by a whitespace
* \s?
*
* Insert number and extension together in one array
@reindert-vetter
reindert-vetter / gist:3747a8f46a3475125adb976b3c4585f4
Created November 3, 2016 11:09
MDN_AdvancedStock_Model_Sales_Order
<?php
/**
* Rewrite getShippingAddress to retrieve pakjegemak address if possible.
* MDN_AdvancedStock_Model_Sales_Order is a fix for a MDN plugin
*
*
* @author Reindert Vetter <[email protected]>
* @copyright 2016 MyParcelNL
* @since File available since Release 1.5.0
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
/**
* LICENSE: This source file is subject to the Creative Commons License.
* It is available through the world-wide-web at this URL:
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
*
* If you want to add improvements, please create a fork in our GitHub:
* https://github.com/myparcelnl
*
* @author Reindert Vetter <[email protected]>
* @copyright 2010-2016 MyParcel
/**
* LICENSE: This source file is subject to the Creative Commons License.
* It is available through the world-wide-web at this URL:
* http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US
*
* If you want to add improvements, please create a fork in our GitHub:
* https://github.com/myparcelnl
*
* @author Reindert Vetter <[email protected]>
* @copyright 2010-2016 MyParcel
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
/app/code/local/TM/FireCheckout/controllers/IndexController.php:808
public function saveShippingMethodAction()
{
Mage::getModel('tig_myparcel/checkout_service')->saveMyParcelShippingMethod();
<li class="clearfix">
<div class="input-box input-address-short">
<label for="billing:street0">Straat <span class="required">*</span></label>
<br>
<input type="text" title="Straat" name="billing[street][0]" id="billing:street0" value="" class="input-text onestepcheckout-address-line">
<br>
</div>
<div class="input-box input-address-short">
<label for="billing:street1">Huisnummer <span class="required">*</span></label>
<br>
<li class="clearfix">
<div class="input-box input-address-short">
<label for="billing:street1">Straat <span class="required">*</span></label>
<br>
<input type="text" title="Straat" name="billing[street][1]" id="billing:street1" value="" class="input-text onestepcheckout-address-line">
<br>
</div>
<div class="input-box input-address-short">
<label for="billing:street2">Huisnummer <span class="required">*</span></label>
<br>
app/code/local/Idev/OneStepCheckout/controllers/AjaxController.php
Selecteer regel 106 en vervang deze door:
->setTemplate('TIG/MyParcel2014/checkout/onepage/shipping_method/available.phtml')
@reindert-vetter
reindert-vetter / Fix conflict Emagicone_Mobassistantconnector_Model_Order
Created June 16, 2017 14:16
app/code/community/TIG/MyParcel2014/Model/Sales/Order.php
<?php
/**
* Rewrite getShippingAddress to retrieve pakjegemak address if possible.
* MDN_AdvancedStock_Model_Sales_Order is a fix for a MDN plugin
*
*
* @author Reindert Vetter <[email protected]>
* @copyright 2016 MyParcelNL
* @since File available since Release 1.5.0
* @license http://creativecommons.org/licenses/by-nc-nd/3.0/nl/deed.en_US