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

Fabric Composition: 100% Cotton

Fabric Width: 145cm

Fabric Weight: 110g

Fabric Details: Woven Cotton. Each quaternary measures 10mm

Fabric Care: Cool Machine Wash, Normal cycle with like colours, Do not bleach, Do Not Tumble dry, Warm Iron.

Please note: This fabric is priced by the meter and sold by the half meter

All Cotton Fabric - Gingham Print - Yellow And White

Only 4 left in stock
    Product Page: Stores_Product_Widget
    bottom of page