Brass Pen Holder
${function() {
const variantData = data.variant || {"id":"7a2543e0-e612-4db2-a3b9-92608fcf4bf1","product_id":"079446aa-683c-40bc-9b8c-2be4d8b72755","title":"Copper-W:8cm*H:8cm","weight_unit":"kg","inventory_quantity":65,"sku":"PH001","barcode":"","position":1,"option1":"Copper","option2":"W:8cm*H:8cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8a2c6f865c7ebbba70c1556d891d6be0.jpeg","path":"8a2c6f865c7ebbba70c1556d891d6be0.jpeg","width":1500,"height":1500,"alt":"Brass Pen Holder JOSENART Josenart","aspect_ratio":1},"wholesale_price":[{"price":71.5,"min_quantity":1}],"weight":"0.41","compare_at_price":"0","price":"71.5","retail_price":"0","available":true,"url":"\/products\/copper-storage-pen-holder?variant=7a2543e0-e612-4db2-a3b9-92608fcf4bf1","available_quantity":999999999,"options":[{"name":"Material","value":"Copper"},{"name":"Size","value":"W:8cm*H:8cm"}],"off_ratio":0,"flashsale_info":[],"sales":5};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Material:
Copper
${function(){
const optName = "Material";
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}
`
}()}
Size:
W:8cm*H:8cm
${function(){
const optName = "Size";
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
$71.50
${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":"7a2543e0-e612-4db2-a3b9-92608fcf4bf1","product_id":"079446aa-683c-40bc-9b8c-2be4d8b72755","title":"Copper-W:8cm*H:8cm","weight_unit":"kg","inventory_quantity":65,"sku":"PH001","barcode":"","position":1,"option1":"Copper","option2":"W:8cm*H:8cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8a2c6f865c7ebbba70c1556d891d6be0.jpeg","path":"8a2c6f865c7ebbba70c1556d891d6be0.jpeg","width":1500,"height":1500,"alt":"Brass Pen Holder JOSENART Josenart","aspect_ratio":1},"wholesale_price":[{"price":71.5,"min_quantity":1}],"weight":"0.41","compare_at_price":"0","price":"71.5","retail_price":"0","available":true,"url":"\/products\/copper-storage-pen-holder?variant=7a2543e0-e612-4db2-a3b9-92608fcf4bf1","available_quantity":999999999,"options":[{"name":"Material","value":"Copper"},{"name":"Size","value":"W:8cm*H:8cm"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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.