Will Shopify Functions get easier to use before launch?

I have tiered pricing implemented as a Shopify Script - this isn’t ideal as I can only access the price and compare_at_price of the variant and it won’t apply to draft orders.

I spent some time looking at Shopify Functions this morning to see if they would be a better mechanism to implement our tiering - and while I’m sure they would offer the functionality we don’t currently have the experience of setting up and using them is a total trainwreck, it is massively more complicated than it needs to be for many simple usecases.

I understand that to expose the full guts of Shopify there is complexity, but replacing Shopify Scripts with this is like swapping out a bike for the Space Shuttle. I just wanted to write a ~50 line Javascript function to test the functionality out and the Shopify CLI tool created a 40,000 file directory containing toml, typescript, yaml, Docker stuff, git related files, graphql, etc - it was insane.

Please tell me that there will be a sane way to work with this for simpler use cases…?

2 Likes

Hi @lowfatcode – Several function APIs are already “launched” but we are always looking to simplify the DX. Based on your comments, I take it the main complexity you are referring to is the boilerplate that comes with creating an app, before you have created the function extension?

Yes, primarily! I’m not sure why I’d want or need all of that just to provide a few lines of (ideally) Javascript that does some custom processing to prices.