magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Price is always 0 for bundle product items without dynamic price in order rest API #38687

Open aaqtgft opened 6 months ago

aaqtgft commented 6 months ago

Preconditions and environment

Steps to reproduce

  1. Create a bundle product with a dynamic pricing option
  2. Create a bundle product without dynamic price option
  3. Add both items to the cart
  4. Complete the checkout process
  5. Export the order using the REST API

When exporting an order containing a bundle product without the dynamic price option, the price of the single product is always exported as 0. The price of the single product is only exported correctly when the bundle product is created with a dynamic price.

Expected result

Simple products included in a bundle should always have the actual price in the order export. Those with dynamic price should have the original price, those without should have the price shown on the bundle page.

Actual result

The price of the single product included in a bundle without dynamic price is always exported as 0, while the price of the product included in a bundle with dynamic price is correct.

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 6 months ago

Hi @aaqtgft. Thank you for your report. To speed up processing of this issue, 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:

m2-assistant[bot] commented 6 months ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Delta commented 6 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 6 months ago

Hi @engcom-Delta. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 6 months ago

Hi @engcom-Delta, here is your Magento Instance: https://c9541caf779acc04de7439fa43c11cc2.instances-prod.magento-community.engineering Admin access: https://c9541caf779acc04de7439fa43c11cc2.instances-prod.magento-community.engineering/admin_f6ca Login: 410940b8 Password: edd5441a7332

engcom-Delta commented 6 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 6 months ago

Hi @engcom-Delta. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 6 months ago

Hi @engcom-Delta, here is your Magento Instance: https://c9541caf779acc04de7439fa43c11cc2.instances-prod.magento-community.engineering Admin access: https://c9541caf779acc04de7439fa43c11cc2.instances-prod.magento-community.engineering/admin_2e0b Login: b9462d57 Password: 89f856b955e8

engcom-Delta commented 6 months ago

Hi @aaqtgft ,

Verified the issue on 2.4-develop and it is reproducible.

Hence, Confirming the issue.

Steps to reproduce:-

1.Create a bundle product with a dynamic pricing option 2.Create a bundle product without dynamic price option 3.Add both items to the cart 4.Complete the checkout process 5.Export the order using the REST API

Bundle product with dynamic price

Screenshot 2024-05-08 at 7 26 17 PM

Bundle product without dynamic price

Screenshot 2024-05-08 at 7 27 39 PM

added both products to cart

Screenshot 2024-05-08 at 7 33 49 PM

Placed order

Screenshot 2024-05-08 at 7 34 37 PM

Bundle product without the dynamic price option, the price of the single product is exported as 0.

Screenshot 2024-05-08 at 7 38 49 PM

Bundle product is created with a dynamic price

Screenshot 2024-05-08 at 7 39 19 PM
github-jira-sync-bot commented 6 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11925 is successfully created for this GitHub issue.

m2-assistant[bot] commented 6 months ago

:white_check_mark: Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.