Cord Pendant
${function() {
const variantData = data.variant || {"id":"420b5028-5d08-4455-bf1d-ef853209a627","product_id":"0a9ee758-a8cd-4bd2-b3c5-aef450f7e078","title":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK","weight_unit":"lb","inventory_quantity":0,"sku":"CORDPENDANT-WHT\/BRS","barcode":"1706525752464\/821","position":3,"option1":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fee0423456d2c81cbfb474d188c7bae0.jpeg","path":"fee0423456d2c81cbfb474d188c7bae0.jpeg","width":1222,"height":1320,"alt":"","aspect_ratio":0.9257575757575758},"wholesale_price":[{"price":1800,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1800","retail_price":"0","available":true,"url":"\/products\/cord-pendant?variant=420b5028-5d08-4455-bf1d-ef853209a627","available_quantity":999999999,"options":[{"name":"Color","value":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Cord Pendant White & Brass: WHITE SOCKETS/BLACK WIRE/BRASS ROD/BRASS HUB/BLACK BLOCK
${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
$1,800.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":"420b5028-5d08-4455-bf1d-ef853209a627","product_id":"0a9ee758-a8cd-4bd2-b3c5-aef450f7e078","title":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK","weight_unit":"lb","inventory_quantity":0,"sku":"CORDPENDANT-WHT\/BRS","barcode":"1706525752464\/821","position":3,"option1":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fee0423456d2c81cbfb474d188c7bae0.jpeg","path":"fee0423456d2c81cbfb474d188c7bae0.jpeg","width":1222,"height":1320,"alt":"","aspect_ratio":0.9257575757575758},"wholesale_price":[{"price":1800,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1800","retail_price":"0","available":true,"url":"\/products\/cord-pendant?variant=420b5028-5d08-4455-bf1d-ef853209a627","available_quantity":999999999,"options":[{"name":"Color","value":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK"}],"off_ratio":0,"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.
Sku : CORDPENDANT-WHT/BRS
Barcode : 1706525752464/821
${function(){
const variantData = data.variant || {"id":"420b5028-5d08-4455-bf1d-ef853209a627","product_id":"0a9ee758-a8cd-4bd2-b3c5-aef450f7e078","title":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK","weight_unit":"lb","inventory_quantity":0,"sku":"CORDPENDANT-WHT\/BRS","barcode":"1706525752464\/821","position":3,"option1":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fee0423456d2c81cbfb474d188c7bae0.jpeg","path":"fee0423456d2c81cbfb474d188c7bae0.jpeg","width":1222,"height":1320,"alt":"","aspect_ratio":0.9257575757575758},"wholesale_price":[{"price":1800,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"1800","retail_price":"0","available":true,"url":"\/products\/cord-pendant?variant=420b5028-5d08-4455-bf1d-ef853209a627","available_quantity":999999999,"options":[{"name":"Color","value":"Cord Pendant White & Brass: WHITE SOCKETS\/BLACK WIRE\/BRASS ROD\/BRASS HUB\/BLACK BLOCK"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}