Car Drink Bottle Water Cup Holder
${function() {
const variantData = data.variant || {"id":"3b7eb488-7916-4bbb-8d7c-de18b4d856d4","product_id":"909017b8-368d-48ae-9b09-69c5a9451a45","title":"2PCS-Black","weight_unit":"kg","inventory_quantity":1000,"sku":"CDBWCH-2PCS-Black","barcode":"","position":1,"option1":"2PCS","option2":"Black","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/61f6f0ab88428d629044c38fed89de29.jpg","path":"61f6f0ab88428d629044c38fed89de29.jpg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"57.98","price":"33.99","retail_price":"57.98","available":true,"url":"\/products\/car-drink-bottle-water-cup-holder?variant=3b7eb488-7916-4bbb-8d7c-de18b4d856d4","available_quantity":999999999,"options":[{"name":"Quantity","value":"2PCS"},{"name":"Color","value":"Black"}],"off_ratio":41,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Quantity:
2PCS
${function(){
const optName = "Quantity";
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}
`
}()}
Add to cart
$33.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":"3b7eb488-7916-4bbb-8d7c-de18b4d856d4","product_id":"909017b8-368d-48ae-9b09-69c5a9451a45","title":"2PCS-Black","weight_unit":"kg","inventory_quantity":1000,"sku":"CDBWCH-2PCS-Black","barcode":"","position":1,"option1":"2PCS","option2":"Black","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/61f6f0ab88428d629044c38fed89de29.jpg","path":"61f6f0ab88428d629044c38fed89de29.jpg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"57.98","price":"33.99","retail_price":"57.98","available":true,"url":"\/products\/car-drink-bottle-water-cup-holder?variant=3b7eb488-7916-4bbb-8d7c-de18b4d856d4","available_quantity":999999999,"options":[{"name":"Quantity","value":"2PCS"},{"name":"Color","value":"Black"}],"off_ratio":41,"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.