Skip to content

Instantly share code, notes, and snippets.

<?php // php 7; declare(strict_types=1);
/**
* For Dutch consignments the street should be divided into name, number and addition.
*
* If you want to improve this regex, please check the test.
* And also adapt these adjustments to our GitHub:
* https://github.com/myparcelnl/sdk
*
* @author Reindert Vetter <reindert@myparcel.nl>
* @copyright MyParcel
@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 <info@myparcel.nl>
* @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
app/code/local/Idev/OneStepCheckout/controllers/AjaxController.php
Selecteer regel 106 en vervang deze door:
->setTemplate('TIG/MyParcel2014/checkout/onepage/shipping_method/available.phtml')
<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>
<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>
/app/code/local/TM/FireCheckout/controllers/IndexController.php:808
public function saveShippingMethodAction()
{
Mage::getModel('tig_myparcel/checkout_service')->saveMyParcelShippingMethod();
<?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
/**
* 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 <reindert@myparcel.nl>
* @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 <reindert@myparcel.nl>
* @copyright 2010-2016 MyParcel
@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 <info@myparcel.nl>
* @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