Glass plank fixing clip
people are viewing this right now
${function() {
const variantData = data.variant || {"id":"a307b262-872b-4d23-92c4-041d66f0cf7c","product_id":"160d9418-8684-49c9-b773-72fa0c4b65c3","title":"T shape (small)-5 PCS","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"T shape (small)","option2":"5 PCS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/26f0672eedb38911f9204489c7a840f6.jpeg","path":"26f0672eedb38911f9204489c7a840f6.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"24.99","retail_price":"49.99","available":true,"url":"\/products\/2pcs-l-t-type-right-angle-fixed-glass-clamp-mirror-clip-shelf-holder-showcase-combination-connecting-for-6-12mm-glass-fitting5507ab47-8f0d-460f-9322-48b1264981390c52f6ab-04ac-4566-b4a5-b62eb53a24d5?variant=a307b262-872b-4d23-92c4-041d66f0cf7c","available_quantity":999,"options":[{"name":"style","value":"T shape (small)"},{"name":"quantity","value":"5 PCS"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Style:
T shape (small)
${function(){
const optName = "style";
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}
`
}()}
Quantity:
5 PCS
${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}
`
}()}
Add to cart
$24.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":"a307b262-872b-4d23-92c4-041d66f0cf7c","product_id":"160d9418-8684-49c9-b773-72fa0c4b65c3","title":"T shape (small)-5 PCS","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"T shape (small)","option2":"5 PCS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/26f0672eedb38911f9204489c7a840f6.jpeg","path":"26f0672eedb38911f9204489c7a840f6.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"24.99","retail_price":"49.99","available":true,"url":"\/products\/2pcs-l-t-type-right-angle-fixed-glass-clamp-mirror-clip-shelf-holder-showcase-combination-connecting-for-6-12mm-glass-fitting5507ab47-8f0d-460f-9322-48b1264981390c52f6ab-04ac-4566-b4a5-b62eb53a24d5?variant=a307b262-872b-4d23-92c4-041d66f0cf7c","available_quantity":999,"options":[{"name":"style","value":"T shape (small)"},{"name":"quantity","value":"5 PCS"}],"off_ratio":50,"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.
${function(){
const variantData = data.variant || {"id":"a307b262-872b-4d23-92c4-041d66f0cf7c","product_id":"160d9418-8684-49c9-b773-72fa0c4b65c3","title":"T shape (small)-5 PCS","weight_unit":"kg","inventory_quantity":999,"sku":"","barcode":"","position":1,"option1":"T shape (small)","option2":"5 PCS","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/26f0672eedb38911f9204489c7a840f6.jpeg","path":"26f0672eedb38911f9204489c7a840f6.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"24.99","retail_price":"49.99","available":true,"url":"\/products\/2pcs-l-t-type-right-angle-fixed-glass-clamp-mirror-clip-shelf-holder-showcase-combination-connecting-for-6-12mm-glass-fitting5507ab47-8f0d-460f-9322-48b1264981390c52f6ab-04ac-4566-b4a5-b62eb53a24d5?variant=a307b262-872b-4d23-92c4-041d66f0cf7c","available_quantity":999,"options":[{"name":"style","value":"T shape (small)"},{"name":"quantity","value":"5 PCS"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}