Created
July 9, 2018 19:34
-
-
Save dmfranko/7a3bbc7c984e0b375fd000af63781718 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
var cart = new SPCart("DEFAULT", userID); | |
if(!input.isLoggedIn) | |
cart.setRequestedFor(userID); | |
else{ | |
cart.setRequestedFor(gs.getUserID()); | |
} | |
var item = cart.addItem(data.sys_id); | |
cart.setVariable(item,'email',input.fields.email); | |
var rc = cart.placeOrder(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment