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
Product Page: Stores_Product_Widget

Add Matching Thread

DESCRIPTION

Material: Velvet 100% Polyester

Weight: 370 gsm

Format: 13cm x 100cm

Certificate: Oeko-tex inks.

Usage: Bags, cushions, upholstery, home deco .

View Tutorials Here: https://www.lapetiteboutiquedodile.com/en/179-tutos-videos

Odile Bailloeul - Velvet Border Ribbon - Sold Per Half Meter

€5.00Price
Quantity
Out of Stock

     250+ 5-STAR GOOGLE REVIEWS  ||  INTERNATIONAL DELIVERY   ||   REWARDS SCHEME FOR RETURNING CUSTOMERS 

    28131c_96b140a6e5d64a3c93836566f4c689cd~mv2_edited.jpg
    bottom of page