Cable organizer Cord management For iPhone Charger Cable holder Ties cable winder Clip For Earphones Charging Cable Protector
${function() {
const variantData = data.variant || {"id":"22bd90ae-6981-44b1-9a4d-b12bae79e5d8","product_id":"371aa8c5-8ac3-421e-a148-6468d7f12fce","title":"TC to L-Black-2pcs","weight_unit":"kg","inventory_quantity":1000,"sku":"Cable-Protector-TC-to-L-Black-2pcs","barcode":"","position":1,"option1":"TC to L-Black","option2":"2pcs","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/beb55fd9c1148e21166b7ea6f3ef8758.jpeg","path":"beb55fd9c1148e21166b7ea6f3ef8758.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"23.99","retail_price":"49.99","available":true,"url":"\/products\/cable-organizer-cord-management-for-iphone-charger-cable-holder-ties-cable-winder-clip-for-earphones-charging-cable-protector?variant=22bd90ae-6981-44b1-9a4d-b12bae79e5d8","available_quantity":999999999,"options":[{"name":"Color","value":"TC to L-Black"},{"name":"Qty","value":"2pcs"}],"off_ratio":52,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
TC to L-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}
`
}()}
Qty:
2pcs
${function(){
const optName = "Qty";
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
$23.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":"22bd90ae-6981-44b1-9a4d-b12bae79e5d8","product_id":"371aa8c5-8ac3-421e-a148-6468d7f12fce","title":"TC to L-Black-2pcs","weight_unit":"kg","inventory_quantity":1000,"sku":"Cable-Protector-TC-to-L-Black-2pcs","barcode":"","position":1,"option1":"TC to L-Black","option2":"2pcs","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/beb55fd9c1148e21166b7ea6f3ef8758.jpeg","path":"beb55fd9c1148e21166b7ea6f3ef8758.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"23.99","retail_price":"49.99","available":true,"url":"\/products\/cable-organizer-cord-management-for-iphone-charger-cable-holder-ties-cable-winder-clip-for-earphones-charging-cable-protector?variant=22bd90ae-6981-44b1-9a4d-b12bae79e5d8","available_quantity":999999999,"options":[{"name":"Color","value":"TC to L-Black"},{"name":"Qty","value":"2pcs"}],"off_ratio":52,"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.