0

I am working with PWA studio. And I want to show tier price list in product details page. But I am not getting how I can get them in product page. Does anyone have any idea how to bring that?

Thanks in advance

1 Answer 1

1

To get the tier price of products, you can use the following GraphQl query.

query {
  products(filter: { sku: { eq: "PRODUCT-SKU" } }) {
    items {
      price_tiers {
        discount {
          amount_off
          percent_off
        }
        final_price {
          value
          currency
        }
        quantity
      }
    }
  }
}

Learn more about what product information can be obtained using a GraphQl query.

1
  • Thanks for your answer. Can you tell me how can I save a custom customer attribute data in PWA?
    – Nayem323
    Nov 29, 2022 at 10:42

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.