Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring spree_backend calculator fields partial to OFN #4585

Merged

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Dec 15, 2019

What? Why?

Related to #4050

Here we bring the code that renders the calculators selector in both the payment and shipping methods in the admin and convert it to haml.

What should we test?

We need to test the shipping method and payment method create and edit pages and make sure in both cases the selection of calculators (fees) work correctly. We need to test the forms and then maybe test one simple case where the calculator is applied and make sure what was defined in the form was applied to the order.

Release notes

Changelog Category: Changed
Brought the code to render calculators on payment and shipping methods from spree to OFN to make OFN independent of Spree.

@luisramos0 luisramos0 changed the title Backend partial calc fields Bring spree_backend calculator fields partial to OFN Dec 15, 2019
@luisramos0 luisramos0 self-assigned this Dec 15, 2019
@lin-d-hop lin-d-hop added the pr-staged-fr staging.coopcircuits.fr label Jan 20, 2020
@lin-d-hop
Copy link
Contributor

Testing Notes:
Created a shipping method for each calculator type
Created a payment method for each calculator type

I then went to create a basket and got a whole lot of ugly:
CalculatorsTest

The page hangs in this way trying to load the whole product list. At this point the usual flow would just show the Cart.

Ping @luisramos0 Not sure if this is specific to this issue or is known.... awaiting your insights :-)

@lin-d-hop
Copy link
Contributor

Calculators are working well:
Screenshot from 2020-01-20 12-20-30

@lin-d-hop lin-d-hop removed the pr-staged-fr staging.coopcircuits.fr label Jan 20, 2020
@luisramos0 luisramos0 merged commit 494cb00 into openfoodfoundation:master Jan 22, 2020
@luisramos0 luisramos0 deleted the backend_partial_calc_fields branch January 22, 2020 20:27
@luisramos0 luisramos0 mentioned this pull request Feb 6, 2020
18 tasks
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.

5 participants