Created
May 14, 2018 15:20
-
-
Save thefln/ddb3ab79638c84363fd8efaa21cc4858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<a href="#" class="snipcart-add-item" | |
:data-item-id="product.product_id" | |
:data-item-name="product.name" | |
:data-item-price="product.price" | |
data-item-url="https://snipcart-buttercms-demo.netlify.com/.netlify/functions/snipcart_json_crawler" | |
:data-item-image="product.image">Buy for {{ product.price | price }} $</a> | |
</template> | |
<script> | |
export default { | |
name: 'BuyButton', | |
props: ['product'], | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment