Before I set in admin like below

enter image description here

After I execute script to update tier price for same product it changes as like below which is issue

enter image description here

Code I use to set tier price is below

    $tierPrices[] = [
        'cust_group' => 17,
        'price' => 16.57,
        'website_id' => 0,
        'price_qty' => 5,
  $product = $this->productRepository->get($sku, ['edit_mode' => true]);
  $product->setData('tier_price', $tierPrices);
  • I think you need to run the script with a set store id and check that. Sep 24, 2021 at 7:39

1 Answer 1


I found this was magento bug which is resolved in 2.4.2+


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.