Why can't we set compare-at-price with the priceListFixedPrices ByProductUpdate mutation?

As per title, really: the priceListFixedPricesByProductUpdate mutation allows us to set prices per market per product, but if we want to set the compare-at-price, then we have to use the much slower priceListFixedPricesAdd or priceListFixedPricesUpdate mutations, which require us to create a big array of prices, one for each variant, and eats up a huge amount of our throttle points.

Could this be addressed please? Seems bonkers that we have to do it that way.

Either that or I’m about to be told how I should really be doing this, either works for me :wink:

Phase 2 of this would be to allow us to bulk set prices per market for all variants across multiple products. I’ve got lots of products that are all the same base price, so they’ll have the same price for each market too. It’d be great to be able to manage pricing at this ‘policy’ level rather than grinding through individual products. Sort of like ‘set price to 300 euros for the eurozone market for all products which are 200 GBP base price’.

We’ve got 1800 or so products, each of which can have between 1 and 30-odd variants. Setting prices takes about an hour even with graphQL, even longer if I build in some delays so it don’t nom up all my throttle points.

G

1 Like

Hey @dartacus, this does feel a little bonkers. A compareAtPrice does seem like a natural fit on priceListFixedPricesByProductUpdate.

For the “how you should really be doing this” part I recommend bulk operations to see if it will work for you. Instead of making 100+ individual API calls, you can upload a single JSONL file with all your variant prices and compare-at prices, then run one bulkOperationRunMutation. Everything is then processed asynchronously and doesn’t eat up your API limits.

That said, I’m passing this on as a feature request to support compareAtPrice on PriceListProductPriceInput.

Let me know if you have questions or run in to problems with bulk operations.

Thanks Kyle, I appreciate the feature request.

Bulk ops are on my radar, but we’ve only been live on Shopify for a week now so I’m still at the stage of sawing bits off, bolting bits on, and hand-holding bewildered colleagues. Hope to be able to start looking at sane ways to do things in the next few weeks.

G

1 Like