-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Bundle Product discounts not saved to quote_item table #35165
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
Hi @hcmlopes. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @hcmlopes, Thanks |
@magento give me 2.4-develop instance |
Hi @hcmlopes. Thank you for your request. I'm working on Magento instance for you. |
Hi @hcmlopes, here is your Magento Instance: https://c2763fc9e3b23a6bcf3d4f868db935f6.instances.magento-community.engineering |
@engcom-Delta
Payload{
"cartItem": {
"sku": "WS12-M-Orange",
"qty": 1,
"quote_id": "{{cartId}}"
}
}
PayloadMake sure to replace {{cartId}} with the cart ID received from Step 2 {
"cartItem": {
"sku": "24-WG080",
"qty": 4,
"quote_id": "{{cartId}}",
"product_option": {
"extension_attributes": {
"bundle_options": [
{
"option_id": 1,
"option_qty": 1,
"option_selections": [2]
},
{
"option_id": 2,
"option_qty": 1,
"option_selections": [4]
},
{
"option_id": 3,
"option_qty": 1,
"option_selections": [6]
},
{
"option_id": 4,
"option_qty": 1,
"option_selections": [8]
}
]
}
}
}
}
{
"grand_total": 198.4,
"base_grand_total": 198.4,
"subtotal": 316,
"base_subtotal": 316,
"discount_amount": -117.6,
"base_discount_amount": -117.6,
"subtotal_with_discount": 198.4,
"base_subtotal_with_discount": 198.4,
"shipping_amount": 0,
"base_shipping_amount": 0,
"shipping_discount_amount": 0,
"base_shipping_discount_amount": 0,
"tax_amount": 0,
"base_tax_amount": 0,
"weee_tax_applied_amount": null,
"shipping_tax_amount": 0,
"base_shipping_tax_amount": 0,
"subtotal_incl_tax": 316,
"shipping_incl_tax": 0,
"base_shipping_incl_tax": 0,
"base_currency_code": "USD",
"quote_currency_code": "USD",
"items_qty": 6,
"items": [
{
"item_id": 10,
"price": 68,
"base_price": 68,
"qty": 4,
"row_total": 272,
"base_row_total": 272,
"row_total_with_discount": 0,
"tax_amount": 0,
"base_tax_amount": 0,
"discount_amount": 0,
"base_discount_amount": 0,
"discount_percent": 0,
"price_incl_tax": 68,
"base_price_incl_tax": 68,
"row_total_incl_tax": 272,
"base_row_total_incl_tax": 272,
"options": "[{\"value\":\"1 x Sprite Stasis Ball 65 cm <span class=\\\"price\\\">$27.00<\\/span>\",\"label\":\"Sprite Stasis Ball\"},{\"value\":\"1 x Sprite Foam Yoga Brick <span class=\\\"price\\\">$5.00<\\/span>\",\"label\":\"Sprite Foam Yoga Brick\"},{\"value\":\"1 x Sprite Yoga Strap 8 foot <span class=\\\"price\\\">$17.00<\\/span>\",\"label\":\"Sprite Yoga Strap\"},{\"value\":\"1 x Sprite Foam Roller <span class=\\\"price\\\">$19.00<\\/span>\",\"label\":\"Sprite Foam Roller\"}]",
"weee_tax_applied_amount": null,
"weee_tax_applied": null,
"name": "Sprite Yoga Companion Kit"
},
{
"item_id": 15,
"price": 22,
"base_price": 22,
"qty": 2,
"row_total": 44,
"base_row_total": 44,
"row_total_with_discount": 0,
"tax_amount": 0,
"base_tax_amount": 0,
"tax_percent": 0,
"discount_amount": 8.8,
"base_discount_amount": 8.8,
"discount_percent": 20,
"price_incl_tax": 22,
"base_price_incl_tax": 22,
"row_total_incl_tax": 44,
"base_row_total_incl_tax": 44,
"options": "[]",
"weee_tax_applied_amount": null,
"weee_tax_applied": null,
"name": "Radiant Tee-M-Orange"
}
],
"total_segments": [
{
"code": "subtotal",
"title": "Subtotal",
"value": 316
},
{
"code": "discount",
"title": "Discount",
"value": -117.6
},
{
"code": "shipping",
"title": "Shipping & Handling",
"value": 0
},
{
"code": "tax",
"title": "Tax",
"value": 0,
"extension_attributes": {
"tax_grandtotal_details": []
}
},
{
"code": "grand_total",
"title": "Grand Total",
"value": 198.4,
"area": "footer"
}
]
} Expected resultBoth items should have their respective discount information. As you can see the bundle product, |
Hi @hcmlopes , Thanks for providing detailed steps to replicate , after following the steps issue is reproducible. Results: |
✅ Jira issue https://jira.corp.magento.com/browse/AC-2679 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Delta. Thank you for verifying the issue. |
Hi @hcmlopes , Thanks |
Hello @hcmlopes, As per discussion internally we reopening this ticket as a Thanks |
Hello, |
Hi @hcmlopes , Thanks for your reporting and collaboration. Steps to reproduce -
Thanks. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Additional Info (*)
Severity assessment
The text was updated successfully, but these errors were encountered: