Skip to content

Instantly share code, notes, and snippets.

@obrien-k
Created May 13, 2020 16:07
Show Gist options
  • Save obrien-k/eab4b7f1432047b0ad3c1f0e19ab2dcf to your computer and use it in GitHub Desktop.
Save obrien-k/eab4b7f1432047b0ad3c1f0e19ab2dcf to your computer and use it in GitHub Desktop.
<!-- This will cause the button to only appear for each is_bundle field -->
{{#if product.custom_fields}}
{{#each product.custom_fields}}
{{#if this.name "is_bundle"}}
<div>
<input id="multiButton" data-wait-message="{{lang 'products.adding_to_cart'}}" class="button button--primary" type="submit"
value="Combo to Cart">
</div>
{{else}}
{{/if}}
{{/each}}
{{/if}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment