Black Sequin Cup Detail Long Sleeve Skater Romper
${function() {
const variantData = data.variant || {"id":"1d5589d2-b052-4aa5-be51-2cce08c835ff","product_id":"2a5a1291-ca0d-4e3b-a80f-b6f8592f0c47","title":"Black-S","weight_unit":"lb","inventory_quantity":1000,"sku":"BSC001-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8633cc47ffeba4f293c2fa616f21fd37.jpeg","path":"8633cc47ffeba4f293c2fa616f21fd37.jpeg","width":1000,"height":1333,"alt":"","aspect_ratio":0.7501875468867217},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0","compare_at_price":"98.99","price":"49.99","retail_price":"98.99","available":true,"url":"\/products\/black-sequin-cup-detail-long-sleeve-skater-romper-38098773e5cc18a-8315-4375-964b-53dcd94d713a?variant=1d5589d2-b052-4aa5-be51-2cce08c835ff","available_quantity":999999999,"options":[{"name":"COLOR","value":"Black"},{"name":"SIZE","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":2};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Black
${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}
`
}()}
Size:
S
${function(){
const optName = "SIZE";
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
$49.99
${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":"1d5589d2-b052-4aa5-be51-2cce08c835ff","product_id":"2a5a1291-ca0d-4e3b-a80f-b6f8592f0c47","title":"Black-S","weight_unit":"lb","inventory_quantity":1000,"sku":"BSC001-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8633cc47ffeba4f293c2fa616f21fd37.jpeg","path":"8633cc47ffeba4f293c2fa616f21fd37.jpeg","width":1000,"height":1333,"alt":"","aspect_ratio":0.7501875468867217},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0","compare_at_price":"98.99","price":"49.99","retail_price":"98.99","available":true,"url":"\/products\/black-sequin-cup-detail-long-sleeve-skater-romper-38098773e5cc18a-8315-4375-964b-53dcd94d713a?variant=1d5589d2-b052-4aa5-be51-2cce08c835ff","available_quantity":999999999,"options":[{"name":"COLOR","value":"Black"},{"name":"SIZE","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":2};
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":"1d5589d2-b052-4aa5-be51-2cce08c835ff","product_id":"2a5a1291-ca0d-4e3b-a80f-b6f8592f0c47","title":"Black-S","weight_unit":"lb","inventory_quantity":1000,"sku":"BSC001-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8633cc47ffeba4f293c2fa616f21fd37.jpeg","path":"8633cc47ffeba4f293c2fa616f21fd37.jpeg","width":1000,"height":1333,"alt":"","aspect_ratio":0.7501875468867217},"wholesale_price":[{"price":49.99,"min_quantity":1}],"weight":"0","compare_at_price":"98.99","price":"49.99","retail_price":"98.99","available":true,"url":"\/products\/black-sequin-cup-detail-long-sleeve-skater-romper-38098773e5cc18a-8315-4375-964b-53dcd94d713a?variant=1d5589d2-b052-4aa5-be51-2cce08c835ff","available_quantity":999999999,"options":[{"name":"COLOR","value":"Black"},{"name":"SIZE","value":"S"}],"off_ratio":49,"flashsale_info":[],"sales":2};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}