Skip to content

Instantly share code, notes, and snippets.

@adhadse
Last active November 27, 2020 13:57
Show Gist options
  • Save adhadse/5fad84725419818b8ccced98657db787 to your computer and use it in GitHub Desktop.
Save adhadse/5fad84725419818b8ccced98657db787 to your computer and use it in GitHub Desktop.
HTML syntax to store product ID and Action
<!- ALong with other HTML -->
<button type="button" class="btn btn-light btn-block border mt-2 update-wishlist" data-action="add" data-product="{{ product.productID }}">
<span class="text"> Add to Wishlist</span>
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment