Stop using magento product object in buildProductPrice() method in Product/Trait.php, but instead clone it to a new object and set group prices to this new object.
Related Issue
closes #490
Motivation and Context
Merchant encountered a bug while enabling customGroup pricing. When nosto module was enabled, the price being displayed was the default one, not the group one. This was caused due to overriding Magento's object price grouping.
Checklist:
[x] My code follows the code style of this project.
[x] I have assigned the correct milestone or created one if non existent.
[x] I have correctly labeled this pull request.
[x] I have linked the corresponding issue in this description.
[x] I have updated the corresponding Jira ticket.
[x] I have requested a review from at least 2 reviewers
Description
Stop using magento product object in buildProductPrice() method in Product/Trait.php, but instead clone it to a new object and set group prices to this new object.
Related Issue
closes #490
Motivation and Context
Merchant encountered a bug while enabling customGroup pricing. When nosto module was enabled, the price being displayed was the default one, not the group one. This was caused due to overriding Magento's object price grouping.
Checklist: