PLUS LOFTS Christmas Socks
${function() {
const variantData = data.variant || {"id":"007a1c6d-19bd-4381-929f-7ea7b738175b","product_id":"73029d7e-8895-4511-acda-5392c1f1c42e","title":"32 Style","weight_unit":"g","inventory_quantity":880,"sku":"","barcode":"","position":1,"option1":"32 Style","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb250b7ae4b2b0f75d82a9482f17483a.jpeg","path":"bb250b7ae4b2b0f75d82a9482f17483a.jpeg","width":1100,"height":1100,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.4,"min_quantity":1}],"weight":"50","compare_at_price":"20.6","price":"13.4","retail_price":"20.6","available":true,"url":"\/products\/plus-lofts-christmas-socks-yiz3?variant=007a1c6d-19bd-4381-929f-7ea7b738175b","available_quantity":999999999,"options":[{"name":"Color","value":"32 Style"}],"off_ratio":35,"flashsale_info":[],"sales":528};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
32 Style
${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}
`
}()}
Add to cart
$13.40
${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":"007a1c6d-19bd-4381-929f-7ea7b738175b","product_id":"73029d7e-8895-4511-acda-5392c1f1c42e","title":"32 Style","weight_unit":"g","inventory_quantity":880,"sku":"","barcode":"","position":1,"option1":"32 Style","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bb250b7ae4b2b0f75d82a9482f17483a.jpeg","path":"bb250b7ae4b2b0f75d82a9482f17483a.jpeg","width":1100,"height":1100,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.4,"min_quantity":1}],"weight":"50","compare_at_price":"20.6","price":"13.4","retail_price":"20.6","available":true,"url":"\/products\/plus-lofts-christmas-socks-yiz3?variant=007a1c6d-19bd-4381-929f-7ea7b738175b","available_quantity":999999999,"options":[{"name":"Color","value":"32 Style"}],"off_ratio":35,"flashsale_info":[],"sales":528};
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.