Wireless Car Charger Mount
colour-
Black
${function(){
const enable_selected_variants = "true" === 'false';
const optionValue = data.value;
return `
${optionValue ? `${enable_selected_variants ? '-' : ''}${optionValue}` : ''}
`;
}()}
${function(){
return `
Please select a colour
`;
}()}
${function() {
const variantData = data.variant || {"id":"a6cb14cf-cd4b-41b2-9908-4eb1383374fb","product_id":"394d0547-9d69-4754-ba9e-e82e29cb37ea","title":"Black","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/225b7ee64da4f0a763b7030ce1d4b177.jpeg","path":"225b7ee64da4f0a763b7030ce1d4b177.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":37.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"37.99","retail_price":"0","available":true,"url":"\/products\/wireless-car-charger-mount?variant=a6cb14cf-cd4b-41b2-9908-4eb1383374fb","available_quantity":999999999,"options":[{"name":"colour","value":"Black"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percent";
const productSaveLabel = true;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}% ` : `- ` }
`; }()}
Add to cart
- $37.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]) || Object.keys(data).length > 1 ? data : null;
const productVariant = {"id":"a6cb14cf-cd4b-41b2-9908-4eb1383374fb","product_id":"394d0547-9d69-4754-ba9e-e82e29cb37ea","title":"Black","weight_unit":"","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/225b7ee64da4f0a763b7030ce1d4b177.jpeg","path":"225b7ee64da4f0a763b7030ce1d4b177.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":37.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"37.99","retail_price":"0","available":true,"url":"\/products\/wireless-car-charger-mount?variant=a6cb14cf-cd4b-41b2-9908-4eb1383374fb","available_quantity":999999999,"options":[{"name":"colour","value":"Black"}],"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 it now
Product was out of stock.
Product is unavailable.