M2.4.6: Cannot update price after changing tier price for product

Created by Esther Nguyen, Modified on Mon, 01 Apr 2024 at 11:24 AM by Esther Nguyen

ISSUE:

 If product is exist in cart and we change tier price for the product then on cart reload price is not updating. It is not working on default Magento 2.4.6-p3 as well as in BSS MSVP demo site as well please find the attached video from demo site.


Reproducible steps : 

1/ Set Tier Price for Store view

2/ Add that product to the cart [Here price is showing which we have set for store view]

Using add to cart rest API

POST : {{url}}/rest/{{store_code}}/V1/carts/2277/items/

{    "cartItem": {        "sku": "24-MB01",        "qty": 1,        "quote_id": "{{quote_id}}"    }}

3/ Now change the same tier price

4/ Just Reload the cart

GET : {{url}}/rest/{{store_code}}/V1/carts/{{quote_id}}/totals

{{url}}/rest/{{store_code}}/V1/carts/{{quote_id}}/totals


Current Behavior: Price is not updating on reloading the cart.


Expected Behavior: Price should be updated on reloading the cart


SOLUTION:


To resolve the issue, please download the file attached below and insert them into the following path:

app/code/Bss/MultiStoreViewPricingTierPrice/Model/Product/Attribute/Backend/TierPrice/AbstractHandler.php

app/code/Bss/MultiStoreViewPricingTierPrice/Model/Product/Attribute/Backend/TierPrice/UpdateHandler.php 

app/code/Bss/MultiStoreViewPricingTierPrice/etc/di.xml


If you need any further assistance, please feel free to contact us. We'd be happy to support you!


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article