Created
August 26, 2021 12:59
-
-
Save procarrera/6cd13b5a33d0c2a3b357dfc1c8d7195e to your computer and use it in GitHub Desktop.
Product Recommendations Shopify
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
async function productRecommentation(id, limit) { | |
const response = await window.fetch(`/recommendations/products.json?product_id=${id}&limit=${limit}`) | |
const data = await response.json() | |
console.log(data) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment