${function() {
const variantData = data.variant || {"id":"dc57baca-dcb8-4c0d-b467-41f23776455b","product_id":"2f9f83bd-6eac-42e8-961a-9aa98bba81c7","title":"Black Gold-40","weight_unit":"kg","inventory_quantity":1000,"sku":"K503131511311040512","barcode":"","position":1,"option1":"Black Gold","option2":"40","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/49b14187467ba6ddb9b106845e485800.png","path":"49b14187467ba6ddb9b106845e485800.png","width":530,"height":650,"alt":"","aspect_ratio":0.8153846153846154},"wholesale_price":[{"price":21.79,"min_quantity":1}],"weight":"0","compare_at_price":"21.79","price":"21.79","retail_price":"21.79","available":true,"url":"\/products\/fashion-color-block-hollow-skull-outdoor-platform-slippers7e8e74c7-16ab-4214-934c-ba6bbe293f6b?variant=dc57baca-dcb8-4c0d-b467-41f23776455b","available_quantity":999999999,"options":[{"name":"Color","value":"Black Gold"},{"name":"Size","value":"40"}],"off_ratio":0,"flashsale_info":[],"sales":3};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Black Gold
${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}
`
}()}
Size
: 40
${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}
`
}()}
The current item does not participate in the discount gift campaign. Switch the participating items to check the design.
(This prompt will not be displayed on the client-side)
Add to cart
$21.79
${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":"dc57baca-dcb8-4c0d-b467-41f23776455b","product_id":"2f9f83bd-6eac-42e8-961a-9aa98bba81c7","title":"Black Gold-40","weight_unit":"kg","inventory_quantity":1000,"sku":"K503131511311040512","barcode":"","position":1,"option1":"Black Gold","option2":"40","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/49b14187467ba6ddb9b106845e485800.png","path":"49b14187467ba6ddb9b106845e485800.png","width":530,"height":650,"alt":"","aspect_ratio":0.8153846153846154},"wholesale_price":[{"price":21.79,"min_quantity":1}],"weight":"0","compare_at_price":"21.79","price":"21.79","retail_price":"21.79","available":true,"url":"\/products\/fashion-color-block-hollow-skull-outdoor-platform-slippers7e8e74c7-16ab-4214-934c-ba6bbe293f6b?variant=dc57baca-dcb8-4c0d-b467-41f23776455b","available_quantity":999999999,"options":[{"name":"Color","value":"Black Gold"},{"name":"Size","value":"40"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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.