-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Special price vigency for configurable childs (simple products associated) doesn´t work #7362
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don´t know if it helps Searching in the code I found that in the \Magento\Catalog\Pricing\Price\SpecialPrice Class when the method "isScopeDateInInterval" is called by a simple product, the product has the Special price dates. But when the same method is called for a simple child of a configurable product, the product don't have this dates, so tha validation fails
|
I´m here one more time I found the problem in this class: vendor\magento\module-configurable-product\Pricing\Price\ConfigurableOptionsProvider.php In the method "getProducts" Original method
Modified method
Obviously I will create a module with a plugin o something like that, while magento apply the fix to the vendor |
@valenciaisaza wish I could find this issue earlier... After more than 7h digging, I came out with the same solution as you. The issue for me is that even if all the sub-products' special price expired or haven't started yet, the main product still shown as having special price, and if you choose the option in the product detail page, the special price would change to regular one. So put it simple, the special from&to dates were not taken into account at all when displaying main product. |
Hi, thank you for your report. We already have internal issue MAGETWO-52577 |
In Magento 2.1.3, the method getProducts() was moved to Magento\ConfigurableProduct\Pricing\Price\LowestPriceOptionsProvider To patch it, you need to implement di.xml:
And replace:
|
Internal ticket to track issue progress: MAGETWO-70491 |
@valenciaisaza, thank you for your report. |
Hi @valenciaisaza. Thank you for your report. The fix will be available with the upcoming 2.1.13 release. |
Special price vigency for configurable child´s (simple products associated) doesn´t work
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: