vinsol / nectarcommerce

Quest for customizable E-commerce - the Elixir way
323 stars 53 forks source link

Add configurable calculators #46

Closed nimish-mehta closed 8 years ago

nimish-mehta commented 8 years ago
  1. Adds a new behaviour for Shipping Calculator.
  2. Few Sample Calculators are implemented for reference.
  3. Update the ShippingCalculator module to run all calculators in parallel. In case any of them fails i.e. throws an exception, is not applicable or errors out, it will ignore that result and only return the ones that were successful.
  4. To link a shipping method to a calculator, have a look at dev.exs config
pikender commented 8 years ago

Please take care of compiler message

You have configured application :shipping_calculators in your configuration file but the application is not available.

This usually means one of:

  1. You have not added the application as a dependency in a mix.exs file.
  2. You are configuring an application that does not really exist.

Please ensure :shipping_calculators exists or remove the configuration.

pikender commented 8 years ago

Add Test Coverage

nimish-mehta commented 8 years ago

Closing as merged the changes: https://github.com/vinsol/nectarcommerce/commit/aa204e2f83cc68d6683222613f6eb1dea984a88e