Created
April 17, 2016 23:56
-
-
Save bryceadams/cc38eb6dd120b1b1dc4bbc6ee28ace69 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Get the order's first item | |
var line_items = webhookBody.order.line_items; | |
var item1 = line_items[0]; | |
var itemName = item1.name.replace(/ /g,"_"); | |
console.log(itemName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment