🔊Portable 5X Speaker Amplifier–Plug & Play for Music/Calls
${function() {
const variantData = data.variant || {"id":"3feb2ae8-46e0-40e0-9f62-d0837ac1f6d2","product_id":"7fee5758-4b4a-4f74-843f-37185113701e","title":"3.5mm-Black-Buy 1","weight_unit":"kg","inventory_quantity":1000,"sku":"UL2603675-Y8\u900f\u660e\u9ed13.5\u5934","barcode":"","position":1,"option1":"3.5mm","option2":"Black","option3":"Buy 1","note":"","image":{"src":"\/\/img.staticdj.com\/c4c43d3f7daa37e59a0e040e19ec00d3.jpeg","path":"c4c43d3f7daa37e59a0e040e19ec00d3.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.19","price":"19.99","retail_price":"39.19","available":true,"url":"\/products\/portable-5x-speaker-amplifier-plug-play-for-music-calls-2-2?variant=3feb2ae8-46e0-40e0-9f62-d0837ac1f6d2","available_quantity":999999999,"options":[{"name":"Plug Type","value":"3.5mm"},{"name":"Color","value":"Black"},{"name":"Qty","value":"Buy 1"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Plug Type:
3.5mm
${function(){
const optName = "Plug Type";
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}
`
}()}
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}
`
}()}
Qty:
Buy 1
${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
$19.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":"3feb2ae8-46e0-40e0-9f62-d0837ac1f6d2","product_id":"7fee5758-4b4a-4f74-843f-37185113701e","title":"3.5mm-Black-Buy 1","weight_unit":"kg","inventory_quantity":1000,"sku":"UL2603675-Y8\u900f\u660e\u9ed13.5\u5934","barcode":"","position":1,"option1":"3.5mm","option2":"Black","option3":"Buy 1","note":"","image":{"src":"\/\/img.staticdj.com\/c4c43d3f7daa37e59a0e040e19ec00d3.jpeg","path":"c4c43d3f7daa37e59a0e040e19ec00d3.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.19","price":"19.99","retail_price":"39.19","available":true,"url":"\/products\/portable-5x-speaker-amplifier-plug-play-for-music-calls-2-2?variant=3feb2ae8-46e0-40e0-9f62-d0837ac1f6d2","available_quantity":999999999,"options":[{"name":"Plug Type","value":"3.5mm"},{"name":"Color","value":"Black"},{"name":"Qty","value":"Buy 1"}],"off_ratio":49,"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.