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

These stylish sweaters in beautiful different options ensure that you look completely hip again this winter! What do you start with? Do you choose the long or short variant and do you go for plain or the cozy colored variant? Take your pick and add these items to your wardrobe!

DifficultyIntermediate

Crochet Pattern - Stylecraft - Rainbow Striped Blanket - 10079

€4.50Price
Quantity
Only 1 left in stock

    Add Matching Thread

    Product Page: Stores_Product_Widget
    IMG_4690.PNG

    THE HOME OF HALF PRICE REMNANTS   ||  200+ 5-STAR GOOGLE REVIEWS  ||  INTERNATIONAL DELIVERY   ||   REWARDS SCHEME FOR RETURNING CUSTOMERS 

    bottom of page