🔥The 360° rotating storage rack can be used in any scene
${function() {
const variantData = data.variant || {"id":"ec17ee89-9ca7-4ce7-8927-0c17cbd90641","product_id":"16827268-79d1-478e-8691-5cdf58c680a9","title":"Runden-1 Schicht","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Runden","option2":"1 Schicht","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c0371c037877168eea8bcb1c5669191b.png","path":"c0371c037877168eea8bcb1c5669191b.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"24.99","retail_price":"39.99","available":true,"url":"\/products\/360-rotating-storage-rack-can-be-used-in-any-scene?variant=ec17ee89-9ca7-4ce7-8927-0c17cbd90641","available_quantity":999999999,"options":[{"name":"Form","value":"Runden"},{"name":"Stil","value":"1 Schicht"}],"off_ratio":38,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Form:
Runden
${function(){
const optName = "Form";
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}
`
}()}
Stil:
1 Schicht
${function(){
const optName = "Stil";
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":"ec17ee89-9ca7-4ce7-8927-0c17cbd90641","product_id":"16827268-79d1-478e-8691-5cdf58c680a9","title":"Runden-1 Schicht","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Runden","option2":"1 Schicht","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c0371c037877168eea8bcb1c5669191b.png","path":"c0371c037877168eea8bcb1c5669191b.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"24.99","retail_price":"39.99","available":true,"url":"\/products\/360-rotating-storage-rack-can-be-used-in-any-scene?variant=ec17ee89-9ca7-4ce7-8927-0c17cbd90641","available_quantity":999999999,"options":[{"name":"Form","value":"Runden"},{"name":"Stil","value":"1 Schicht"}],"off_ratio":38,"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.