Classic Contrast Piping Men's Silk Pajamas
${function() {
const variantData = data.variant || {"id":"f65ef124-910b-43e0-a0cd-48e1d3f34a5e","product_id":"2c31548d-c49e-4af4-b1c4-5507414fdefc","title":"Light Purple-S | 115-135lbs","weight_unit":"kg","inventory_quantity":0,"sku":"NSY-018-Purple-S","barcode":"6949548939547","position":1,"option1":"Light Purple","option2":"S | 115-135lbs","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/aeed7e74d6245b6aa213eb633d8cb624.jpg","path":"aeed7e74d6245b6aa213eb633d8cb624.jpg","width":2360,"height":2360,"alt":"Classic Contrast Piping Men's Silk Pajamas REAL SILK LIFE","aspect_ratio":1},"wholesale_price":[{"price":199,"min_quantity":1}],"weight":"0.4","compare_at_price":"259","price":"199","retail_price":"259","available":true,"url":"\/products\/classic-contrast-piping-mens-silk-pajamas?variant=f65ef124-910b-43e0-a0cd-48e1d3f34a5e","available_quantity":999999999,"options":[{"name":"Color","value":"Light Purple"},{"name":"SIZE","value":"S | 115-135lbs"}],"off_ratio":23,"flashsale_info":[],"sales":2353};
const saveType = "percentage";
const productLabelDiscountOn = true;
const map = {
B: ` `,
C: ` `,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
Color:
Light Purple
${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
Size
S | 115-135lbs
M | 135-155lbs
L | 155-175lbs
XL | 175-200lbs
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$199.00
${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":"f65ef124-910b-43e0-a0cd-48e1d3f34a5e","product_id":"2c31548d-c49e-4af4-b1c4-5507414fdefc","title":"Light Purple-S | 115-135lbs","weight_unit":"kg","inventory_quantity":0,"sku":"NSY-018-Purple-S","barcode":"6949548939547","position":1,"option1":"Light Purple","option2":"S | 115-135lbs","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/aeed7e74d6245b6aa213eb633d8cb624.jpg","path":"aeed7e74d6245b6aa213eb633d8cb624.jpg","width":2360,"height":2360,"alt":"Classic Contrast Piping Men's Silk Pajamas REAL SILK LIFE","aspect_ratio":1},"wholesale_price":[{"price":199,"min_quantity":1}],"weight":"0.4","compare_at_price":"259","price":"199","retail_price":"259","available":true,"url":"\/products\/classic-contrast-piping-mens-silk-pajamas?variant=f65ef124-910b-43e0-a0cd-48e1d3f34a5e","available_quantity":999999999,"options":[{"name":"Color","value":"Light Purple"},{"name":"SIZE","value":"S | 115-135lbs"}],"off_ratio":23,"flashsale_info":[],"sales":2353};
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 does not exist