Skip to content

Use default shipping calculator instead of easypost rate#37

Open
JustShah wants to merge 1 commit into
1-0-feature-branchfrom
add-shipping-rate-calculator
Open

Use default shipping calculator instead of easypost rate#37
JustShah wants to merge 1 commit into
1-0-feature-branchfrom
add-shipping-rate-calculator

Conversation

@JustShah

Copy link
Copy Markdown

This PR targets resolving issue#33 with following approach

  • Introduced a new column use_default_shipping_calculator
  • If its true then use the default shipping calculator (from solidus core)
  • if its false then use current calculator

By default, the extension will pass the entire cost of shipping to the user.

In order to override this logic and allowing admins on a per shipping method base to set either easypost or a default shipping rate calculator by setting use_default_shipping_calculator.

The propsed change adds new boolean column to spree_shipping_methods to achieve the desired result.
@fthobe

fthobe commented Mar 12, 2025

Copy link
Copy Markdown

Mayur, please explain to me how this corrisponds to the agreed approach from yesterday. We explicitly agreed to:

  • Not making any changes to core files
  • use the advised method from the easypost gem readme

What happened?

In Addition i Find the commit Message Lacks technical Detail helping me to understand why we did the opposite of what was discussed.

@JustShah

Copy link
Copy Markdown
Author

I thought all three of us agreed to make changes in lib/solidus_easypost/shipping_rate_calculator.rb. To achieve that, Neshma updated lib/solidus_easypost/estimator.rb to pass the package to the calculator so we can properly calculate the price.

There is no extensive changes are made in this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants