Conversation
…ed option ValidateShippingForm loaded the posted point by id without checking its store, so a point of another store, with its pickup fee, could be chosen; the point list filters by store. It also threw when the offered shipping options stored for the customer did not include the shipping point method. Both now ask to select a point again.
This was referenced Nov 28, 2026
added 2 commits
November 29, 2026 11:02
…-form-store # Conflicts: # src/Plugins/Shipping.ShippingPoint/ShippingPointRateProvider.cs
…-form-store # Conflicts: # src/Tests/Grand.Modules.Tests/Grand.Modules.Tests.csproj
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.
Type: bugfix
Issue
ShippingPointRateProvider.ValidateShippingFormchecks the shipping point a customer picked at checkout./Plugins/SelectedShippingPoint/Points) only shows the points of the current store and the points of every store, but a posted id of another store's point was accepted, and its pickup fee became the shipping rate.First(...). When the offered options stored for the customer (from an earlier visit, another address) did not include the shipping point method, it threw and the checkout step answered 500.Solution
The posted point must be one the current store lists: its own, or one of every store (empty
StoreId), the same rule as the list. The offered option is looked up withFirstOrDefault. In both cases the customer is asked to select a point again ("Shipping.ShippingPoint.SelectBeforeProceed"), as for a point that does not exist.Breaking changes
None.
Testing
ShippingPointRateProviderFormTests(new;Grand.Modules.Testsnow references the plugin): a point of another store and offered options without the point method both ask to select a point (both fail on develop). A point of the store sets its fee as the rate, and a point of every store is accepted.Grand.Modules.Tests: 478 passed.