2017 © Pedro Peláez
 

magento2-module module-extendable-shipping-save-processor

image

briteskies/module-extendable-shipping-save-processor

  • Thursday, September 21, 2017
  • by briteskies
  • Repository
  • 2 Watchers
  • 0 Stars
  • 863 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Magento2 Extendable Shipping Save Processor

Because we need extensions to not conflict with each other., (*1)

How to use

// Your/Module/view/frontend/requirejs-config.js

var config = {
    "config": {
        "mixins": {
            "Briteskies_ExtendableShippingSaveProcessor/extender": {
                "Your_Module/extender": true
            }
        }
    }
}
// Your/Module/view/frontend/web/extender.js

define(['mage/utils/wrapper'], function (wrapper) {
    'use strict';

    return function (processor) {
        return wrapper.wrap(processor, function (proceed, payload) {
            payload = proceed(payload);
            payload.extension_attributes.yourAttribute = 'value';
            return payload;
        });
    };
});

But why put it on github?

Easier installation across our multiple implementations., (*2)

Okay, but did you submit a Pull Request to Magento?

Yes, Yes I did. Go vote on it?, (*3)

The Versions

21/09 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • magento/framework ^100.0.0

 

21/09 2017

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

  • magento/framework ^100.0.0

 

21/09 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • magento/framework ^100.0.0