Add to Cart Button Not Working

// Automatically start the upload of the selected file 1 second after it is chosen.
export function uploadButton_change(event, $w) {
// If there is a chosen file:
if ($w(“#uploadButton”).value.length > 0) {
//Automatically start the upload of the file 1 second after it is chosen.
setTimeout(() => {
$w(“#uploadButton”).startUpload().then(uploadedFile => {
$w(“#print”).src = uploadedFile.url;
});
}, 1000);
}
}

// Add the customized item to the shopping cart.
export function addToCartBtn_click(event, $w) {
// Get the current product.
const currentProduct = $w(‘#dynamicDataset’).getCurrentItem().product;
// Add the current product to the cart with the user’s chosen background color, text color, custom text, and custom background image.
$w(‘#shoppingCartIcon1’).addToCart(currentProduct._id, 1, {
“choices”:
{
“title”: “Background Image”,
“value”: $w(‘#print’).src
}

}); 

}

function updateMenuButtons() {
$w(‘#repeater1’).forEachItem(($w, itemData) => {
const currentDynamicId = $w(‘#dynamicDataset’).getCurrentItem()._id;
if (currentDynamicId === itemData._id) {
$w(‘#button1’).disable();
} else {
$w(‘#button1’).enable();
}
});
}

export function dataset1_ready_1() {
updateMenuButtons()
}