I need to attach a unique JSON string with each item in an order. Is it possible to use customFields? If so, where would it appear in the dashboard when I process the order.
// add item to cart
async function add_planner_toCart(planner_data){
try {
let response_msg = await Snipcart.api.cart.items.add({
id: 'Custom-Treeplanner',
name: 'Custom Planner',
price: 44.99,
url: '/planner',
quantity: 1,
minQuantity: 1,
stackable: 'never',
customField: JSON.stringify(planner_data),
});
console.log(response_msg)
} catch (error) {
console.log(error)
}
}
And does adding an item entirely in javascript change the security?