Repository navigation
[FEATURE] Store whether a product is shippable, cancelable and returnable with the order - #315
Merged
Merged
Conversation
…able with the order Products get the fields shippable, cancelable and returnable (enabled by default). A listener of the BeforePersistOrderProductEvent of extcode/cart takes them over when the product is ordered. Shippable is only shown for physical products; virtual and downloadable products are stored as not shippable by extcode/cart already. Requires extcode/cart with the BeforePersistOrderProductEvent. Resolves: #314 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d-g-codappix
force-pushed
the
order-product-properties
branch
from
November 24, 2026 20:15
72a60a7 to
f1798e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #314
Products get the fields
shippable,cancelableandreturnable(tab "General", enabled by default, not translatable). A listener of theBeforePersistOrderProductEventof extcode/cart stores them with the ordered product (extcode/cart#898).shippableis only shown for physical products (displayCondonproduct_type). Virtual and downloadable products are stored as not shippable by extcode/cart and the listener does not change that.ProductRepository::findFulfillmentOptions()(Doctrine) reads the values without restrictions, so they also count for products hidden after they were put into the cart.Requires extcode/cart ^12.8 (
BeforePersistOrderProductEvent, released in 12.8.0). The PR also contains the release commit for 8.1.0.Tests: functional tests for the listener (defaults, physical product not shippable, virtual product stays not shippable, hidden product, products of other extensions, missing product).