Skip to content

Instantly share code, notes, and snippets.

@tunght13488
Last active March 14, 2017 08:31
Show Gist options
  • Save tunght13488/d6cc921d19a8ea653aef4804080fd46a to your computer and use it in GitHub Desktop.
Save tunght13488/d6cc921d19a8ea653aef4804080fd46a to your computer and use it in GitHub Desktop.
<?php
// https://magento.stackexchange.com/questions/159346/magento-2-add-custom-extesion-html-file-in-shipping-method-block
// http://oyenetwork.com/articles/magento2-devliery-date-module-creation-from-scratch/
public function getShippingData($quoteId)
{
return [
[
'calendar_type' => 'ONLINE',
'date' => '22/03/2016',
'delivery_slot' => '11AM-3PM,3PM-7PM,7PM-9PM',
'guid' => 'ITEM',
'item_no' => 'IP035098',
'sequence_no' => '0',
'zone' => 'ALL',
],
[
'calendar_type' => 'ONLINE',
'date' => '23/03/2016',
'delivery_slot' => '11AM-3PM,3PM-7PM,7PM-9PM',
'guid' => 'ITEM',
'item_no' => 'IP035098',
'sequence_no' => '0',
'zone' => 'ALL',
],
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment