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

Difficulty Level: Novice

Sizes: EUR 32-56 | US 0-24 | UK 4-28 | Size chart

Sloane is the perfect combination of comfort and style! This smart and casual sweatshirt sewing pattern has a straight cut, but the semi-loose fit and long diagonal bust darts add a touch of form and sophistication, which makes Sloane ideal for many occasions. The neckline, hem, and cuffs are finished with ribbing.

Sewing Pattern - Named Clothing - Sloane Sweatshirt

€20.00Price
Only 1 left in stock
    Product Page: Stores_Product_Widget
    bottom of page