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.53k stars 9.31k forks source link

Add to cart event : empty prices #35638

Open Nuranto opened 2 years ago

Nuranto commented 2 years ago

Preconditions and environment

Steps to reproduce

  1. Add an observer for checkout_cart_product_add_after
  2. In Observer, dump (or log if you prefer) the quote item price :
public function execute(\Magento\Framework\Event\Observer $observer)
    {
          $quoteItem = $observer->getEvent()->getQuoteItem();
          var_dump($quoteItem->getBasePrice(), $quoteItem->getBasePriceInclTax());
          die();
    }
  1. Add a product to cart

Expected result

Dumps prices of added product

Actual result

Prices are NULL

Additional information

Seems related to https://github.com/magento/magento2/issues/18685

Release note

No response

Triage and priority

m2-assistant[bot] commented 2 years ago

Hi @Nuranto. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

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:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: 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.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 2 years ago

Hi @engcom-Hotel. 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-Hotel commented 2 years ago

Hello @Nuranto,

Thanks for the report and collaboration!

We have tried to reproduce the issue and the issue is reproducible for us with the mentioned steps in the main description.

Hence confirming the issue.

Thanks

MaksSum41 commented 2 years ago

@magento I am working on this

github-jira-sync-bot commented 2 years ago

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

m2-assistant[bot] commented 2 years ago

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

engcom-November commented 2 weeks ago

As the issue is quite old, I have rechecked the issue and it is still reproducible on 2.4-develop. Hence reconfirming.

Thank you.

github-jira-sync-bot commented 2 weeks ago

:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-5966