let productQuantityNum = 20; //initialize product quantity variable let soldOutText = "Edition Sold Out" //initialize variable to display "sold out" text when inventory is 0 $w.onReady(function () { //TODO: write your page related code here... $w('#productPage1').getProduct() //get current product .then( (product) => { productQuantityNum = product.quantityInStock; //get quantity in stock for current product if (productQuantityNum > 0) { //if it's greater than 0, Display number remaining let productQuantityString = productQuantityNum.toString(); $w("#quantityRemainingText").text = productQuantityString + " remaining"; } else { $w("#quantityRemainingText").text = soldOutText; //display sold out text } } ) .catch( (error) => { console.log(error); } ); });
top of page

Add Matching Thread

Here Comes Santa is a gorgeous Christmas collection by Jason Kirk for Northcott Fabrics. 100% cotton. This fabric is digitally printed, giving it brighter, more vibrant colors and beautiful detail not available in traditional, screen-printed fabrics. This panel measures approximately 43" x 43"

Crafting Corner - Northcott Fabrics - Christmas Tree Skirt Panel

€18.50 Regular Price
€11.10Sale Price
Only 1 left in stock
    Product Page: Stores_Product_Widget
    bottom of page