Black Gradient Light Brown Deep Wave Wig Short Bob Wig
${function() {
const variantData = data.variant || {"id":"c948f668-933e-4492-9b20-0d66ccc8bc22","product_id":"64c19099-1444-4321-805a-e419126d80a7","title":"Black Gradient Light Brown-14 Inch-100%(Normal)","weight_unit":"kg","inventory_quantity":1000,"sku":"BWW-M-CP-BGLB","barcode":"","position":1,"option1":"Black Gradient Light Brown","option2":"14 Inch","option3":"100%(Normal)","note":"","image":null,"wholesale_price":[{"price":4.98,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"4.98","retail_price":"39.99","available":true,"url":"\/products\/black-gradient-light-brown-deep-wave-wig-short-bob-wig-3is4?variant=c948f668-933e-4492-9b20-0d66ccc8bc22","available_quantity":999999999,"options":[{"name":"COLOR","value":"Black Gradient Light Brown"},{"name":"LENGTH","value":"14 Inch"},{"name":"DENSITY","value":"100%(Normal)"}],"off_ratio":88,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Black Gradient Light Brown
${function(){
const optName = "COLOR";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Length:
14 Inch
${function(){
const optName = "LENGTH";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Density:
100%(Normal)
${function(){
const optName = "DENSITY";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$4.98
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"c948f668-933e-4492-9b20-0d66ccc8bc22","product_id":"64c19099-1444-4321-805a-e419126d80a7","title":"Black Gradient Light Brown-14 Inch-100%(Normal)","weight_unit":"kg","inventory_quantity":1000,"sku":"BWW-M-CP-BGLB","barcode":"","position":1,"option1":"Black Gradient Light Brown","option2":"14 Inch","option3":"100%(Normal)","note":"","image":null,"wholesale_price":[{"price":4.98,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"4.98","retail_price":"39.99","available":true,"url":"\/products\/black-gradient-light-brown-deep-wave-wig-short-bob-wig-3is4?variant=c948f668-933e-4492-9b20-0d66ccc8bc22","available_quantity":999999999,"options":[{"name":"COLOR","value":"Black Gradient Light Brown"},{"name":"LENGTH","value":"14 Inch"},{"name":"DENSITY","value":"100%(Normal)"}],"off_ratio":88,"flashsale_info":[],"sales":0};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"c948f668-933e-4492-9b20-0d66ccc8bc22","product_id":"64c19099-1444-4321-805a-e419126d80a7","title":"Black Gradient Light Brown-14 Inch-100%(Normal)","weight_unit":"kg","inventory_quantity":1000,"sku":"BWW-M-CP-BGLB","barcode":"","position":1,"option1":"Black Gradient Light Brown","option2":"14 Inch","option3":"100%(Normal)","note":"","image":null,"wholesale_price":[{"price":4.98,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"4.98","retail_price":"39.99","available":true,"url":"\/products\/black-gradient-light-brown-deep-wave-wig-short-bob-wig-3is4?variant=c948f668-933e-4492-9b20-0d66ccc8bc22","available_quantity":999999999,"options":[{"name":"COLOR","value":"Black Gradient Light Brown"},{"name":"LENGTH","value":"14 Inch"},{"name":"DENSITY","value":"100%(Normal)"}],"off_ratio":88,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('52');
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 `
`;
}()}