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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SD-1447] Checkout unshippable items endpoint #11323

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

szymoniwacz
Copy link
Contributor

No description provided.

@viezly
Copy link

viezly bot commented Sep 8, 2021

Changes preview:

Legend:

馃憖 Review pull request on Viezly

@szymoniwacz szymoniwacz force-pushed the feature/SD-1447-api-v2-storefront-unshippable-items branch from 434a0fd to e633e0f Compare September 9, 2021 06:05
@damianlegawiec damianlegawiec added this to the 4.4 milestone Sep 9, 2021
@szymoniwacz
Copy link
Contributor Author

What's left in this PR is adding API calls documentation.

Comment on lines 33 to 37
end

def unshippable_items(order:)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
end
def unshippable_items(order:)
end
protected
def unshippable_items(order:)

end

def unshippable_items(order:)
shipping_address_zone_id = Spree::Zone.match(order.shipping_address)&.id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
shipping_address_zone_id = Spree::Zone.match(order.shipping_address)&.id
shipping_address_zone_id = Spree::Zone.match(order.shipping_address)&.id

this uses all zones, and not the order.store.checkout_zone

@szymoniwacz szymoniwacz force-pushed the feature/SD-1447-api-v2-storefront-unshippable-items branch from 4241d29 to 958453a Compare September 22, 2021 06:55
@damianlegawiec damianlegawiec modified the milestones: 4.4, 5.0 Nov 1, 2021
@damianlegawiec damianlegawiec modified the milestones: 5.0, 5.1 Dec 5, 2021
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.

None yet

2 participants