Broken Crayons Still Color Casual T-Shirt
${function() {
const variantData = data.variant || {"id":"7069d158-d0bd-4eba-8b01-88522470251d","product_id":"1addf676-6a9f-4e17-969f-67ea9097f3fd","title":"COLORFUL-S","weight_unit":"kg","inventory_quantity":1000,"sku":"shopify-PHFZ03-S","barcode":"","position":1,"option1":"COLORFUL","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b14fc9dfa821a8b6ef7c08c82465e2ae.jpeg","path":"b14fc9dfa821a8b6ef7c08c82465e2ae.jpeg","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/broken-crayons-still-color-casual-t-shirt?variant=7069d158-d0bd-4eba-8b01-88522470251d","available_quantity":999999999,"options":[{"name":"COLOR","value":"COLORFUL"},{"name":"SIZE","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.