Skip to content

[FEATURE] Store whether a product is shippable, cancelable and returnable with the order - #315

Merged
d-g-codappix merged 2 commits into
mainfrom
order-product-properties
Nov 24, 2026
Merged

d-g-codappix merged 2 commits into
mainfrom
order-product-properties

Conversation

@d-g-codappix

@d-g-codappix d-g-codappix commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Resolves: #314

Products get the fields shippable, cancelable and returnable (tab "General", enabled by default, not translatable). A listener of the BeforePersistOrderProductEvent of extcode/cart stores them with the ordered product (extcode/cart#898).

  • shippable is only shown for physical products (displayCond on product_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.
  • Changelog 8.1 and a section in the editor documentation of the tab "General".

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).

d-g-codappix and others added 2 commits November 24, 2026 21:12
…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
d-g-codappix force-pushed the order-product-properties branch from 72a60a7 to f1798e0 Compare November 24, 2026 20:15
@d-g-codappix
d-g-codappix merged commit 876e82a into main Nov 24, 2026
23 checks passed
@d-g-codappix
d-g-codappix deleted the order-product-properties branch November 24, 2026 20:20
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.

Configure whether a product is shippable, cancelable and returnable

1 participant