-
Notifications
You must be signed in to change notification settings - Fork 340
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
Catalog rule for discounted products applied incorrectly with grouped products #774
Comments
I've developed this (orrible and absolutly barbaric) code, I don't know if it could be a possible solution, but for me it's working...
|
Hi @CRYX2! Thank you for your help! But, I made other solution! See: 1º. I creating module for override class PriceData.
2º Look the new class PriceData:
With this, all product with 'type' in 'configurable', will get maximum price and also minimum price between all childrens. Of course, if the Special Price for true. Bye! |
This issue is direcly related to #689
I've some parent grouped products with 2 childs.
Each child has two different prices, one 9,02 € and another 1.000,00 €.
No one of this child or parent product has rule or fixed discounted price.
In magento index all prices are stored correcly, but in elasticsearch are stored like:
"price": [ { "price": "9.0200", "original_price": "1000.0000", "is_discount": true, "customer_group_id": "0" } , { "price": "9.0200", "original_price": "1000.0000", "is_discount": true, "customer_group_id": "1" } , { "price": "9.0200", "original_price": "1000.0000", "is_discount": true, "customer_group_id": "2" } , { "price": "9.0200", "original_price": "1000.0000", "is_discount": true, "customer_group_id": "3" } ],
As you can see the min price is placed as discounted price (but is the price of one product), and the max price is placed as original_price, and it's set as "is_discount".
The text was updated successfully, but these errors were encountered: