Skip to content

Instantly share code, notes, and snippets.

@Mosquid
Last active November 12, 2020 17:45
Show Gist options
  • Save Mosquid/0fbf630d8fcf164591e2107cb3eb1e29 to your computer and use it in GitHub Desktop.
Save Mosquid/0fbf630d8fcf164591e2107cb3eb1e29 to your computer and use it in GitHub Desktop.
Cherry Picker Basic Adapter
const adapter = {
isProductPage: () => true, //checks if the page you are at is indeed a product page
getProductData: () => ({
price: 10,
title: 'Product title',
images: ['src'],
description: 'Full product description',
category: 'Product category name'
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment