This PR was merged into the 1.8-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | yes
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Related tickets | -
| License | MIT
Follows up @lchrusciel's comment on #11423 about variant prices not updating on the product page or variant not displaying discount if the first variant of the product has no discount.
Commits
-------
8bddc52d99 [UI] added display of product variant original price on product page
This PR was merged into the 1.8-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Related tickets | implement #11115
| License | MIT
With this PR we add an enabled/disabled status (toggleable) to the product variant as described in #11115.
Commits
-------
3760ef60bd WIP - implements toggle on Ãproduct variant
ee4231efb0 Add enabled flag on product variant migration
3fe1e5758b Allow to enable and disable product variant
758354dc08 Rename behat feature file
39709bd6aa Toggle variant status when toggling simple product status
f976615df1 Add enabled field in the product variant admin grid
b7e4744666 Use only enabled variants when sorting products by price in shop
9486058e3b Show only enabled variants on configurable product show page
48289d1bac Add enabled field to create_validation_fail_response test json file
3bc8e96c37 Use enabled variants only in DefaultProductVariantResolver
09b2f30146 Use only enabled variants in ProductVariantsPricesProvider
404fd006db Always use first variants in simple product locking listener
5dca15ea14 Fix product variants resolver spec to use getEnabledVariants
6203a634af Add behat scenario to show only enabled variants options in pdp
1ab122c9bb Add docblock to ProductInterface::getEnabledVariants method
8e3d220082 Show only available options in configurable match selection pdp
3c114b5f7c Fix DefaultAvailableProductOptionValuesResolver class name
8543add20a Fix AvailableProductOptionValuesResolverInterface return type
5cb1ed2bdc Add only_avaliable_values option to ProductOptionValueChoiceType
5440852791 Disambiguate inability to select product option value behat step
085090cc89 Remove viewing prices of not available variants behat scenarios
35bfe8c934 Add default value to variant enabled column migration
3d91820353 Revert "Add default value to variant enabled column migration"
a7d78cd881 Fix ProductVariantInterface import in spec
7f3c21007e Add statement to toggleable variant migration to enable existing
96e7e805a9 Minor refactor
5a33bcc27b Remove unused behat setup product context method
8e5735fa7c Remove unnecessary newline
b7081e1e92 Fix AvailableProductOptionValuesResolver class name
2a4cb114df Add available diagonal variant options behat scenario
ced3d30c2f Fix CS
9c93252aee Use data test attribute for variants rows in product show page
7e601a02ea Make available values resolver optional in ProductOptionValueChoiceType
359f481c46 Trigger
6d4ed52692 Add explicit null default value to ProductOptionValueChoiceType
3d26a01ffc Allow to view products with all variants disabled
0140e81b52 Prevent checking out with a disabled product variant in cart
* 1.7:
Fix code review comments
Error on show product without pricing
improve DQL in sales provider
[Docs][Book] Fix order payment state machine diagram
[Docs][Book] Fix payment state machine diagram
[Docs][Book] Fix order checkout state machine diagram
[Admin] Use findOneBy() instead of findAll() to get the first channel
[Docs][Plus] Add Plus upgrading guide
add postgres support for getLastYearSalesSummary query
rewrite sql query in getLastYearSalesSummary to a DQL query in order to use not a hardcoded table name
inject OrderRepository to SalesDataProvider in order not to use hardcoded table names