Discussions

Ask a Question
Back to All

Global Parameters Shared Between Custom Blocks & Other Suggestions

In the preview window we get the ability to reference and see a block of JSON that has a few frames of reference like the customer object, the product object etc.

Let us add parameters to this that we could share between blocks! That would be incredibly useful. Like global parameters. I dont even care if they are immutable so long as they are shared between blocks.

Also please make the syntax experience orthogonal to the syntax on Shopify Liquid.

BAD

{{#if customer}}
{{/if}}

vs

GOOD

{% if customer %}}
{% endif %}

Going with another implementation is unnecessarily ugly and means we have to remember another set of syntactic rules that will never quite match up with what we know and love from shopify.

I also don't think that needing to setup metafield sharing with the app is such a big deal, you should by default pull in the product and customer metadata. If it gets referenced by a block just let it be otherwise it won't do anything.

Give us the ability to add a block to product cards (mind you I would reserve these for small blocks).

Give us the ability to add a block or line of metadata to objects in the cart. Or even a small area between the subtotal and the payment buttons.