How to remove a compareAtPrice from a price list using priceListFixedPricesAdd

Hey @Luke -CN,

Thanks for sharing this. It’s an interesting one. I was testing on my end and was able to remove it by setting the compare at as null. Here’s an example of my mutation.

mutation {> priceListFixedPricesUpdate(> priceListId: “gid://shopify/PriceList/123456”,> pricesToAdd: [> {> compareAtPrice: null,> price: {> amount: “13.0”,> currencyCode: CAD> },> variantId: “gid://shopify/ProductVariant/123456”> }> ],> variantIdsToDelete: > ) {> deletedFixedPriceVariantIds> priceList {> id> }> pricesAdded {> compareAtPrice {> amount> currencyCode> }> }> userErrors {> field> message> }> }> }

When I query the price list after, it also returns null for this field.

If you’re theme is still showing the same price crossed off I would recommend looking in to your theme code to make sure the compare at price is only shown when the value is greater than the current price.

Hope that helps.

  • Kyle G.
1 Like