I created a product page, that uses the $w(‘#shoppingCartIcon1’).addProductsToCart to add a product to the cart. This works perfectly fine. However, after a customer buys something the customTextField value is not passed along. Everything is stored in the Stores/Orders Database except for the customTextField value. It seems weird that one would not be allowed to add a customTextField value, but everything else…
export function button1_click(event) {
let product = [{
"productID": storeItem._id,
"quantity": $w('#input1').value,
"customTextFields": [{
"title": "customText",
"value": var1,
}]
}, ]
$w('#shoppingCartIcon1').addProductsToCart(product)
.then(() => {
console.log("Product added", product);
session.setItem("shoppingCart", "1")
})
.catch((error) => {
console.log(error);
});
}