magvike-TMBloodshot eye string
${function() {
const variantData = data.variant || {"id":"e78f047c-75d2-4ef7-b396-ba70ef223d77","product_id":"5dcaef0d-d054-481f-9684-eae899cb431c","title":"Bloodshot eye string","weight_unit":"kg","inventory_quantity":999,"sku":"ZBSSSL55056561-shouchuan-01-20mm","barcode":"","position":1,"option1":"Bloodshot eye string","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/38114187df9f463eb9d17542642871ce.jpeg","path":"38114187df9f463eb9d17542642871ce.jpeg","width":1920,"height":2560,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":54,"min_quantity":1}],"weight":"0","compare_at_price":"80.46","price":"54","retail_price":"80.46","available":true,"url":"\/products\/bloodshot-eye-stringf39f3657-ceec-44fa-97cc-0dc15b0cffb84a316526-7d4b-4808-b4d6-2a52fe752b663f48edff-ab1c-4392-8607-360bc71bcca1?variant=e78f047c-75d2-4ef7-b396-ba70ef223d77","available_quantity":999999999,"options":[{"name":"Color","value":"Bloodshot eye string"}],"off_ratio":33,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Bloodshot eye string
${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
$54.00
${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":"e78f047c-75d2-4ef7-b396-ba70ef223d77","product_id":"5dcaef0d-d054-481f-9684-eae899cb431c","title":"Bloodshot eye string","weight_unit":"kg","inventory_quantity":999,"sku":"ZBSSSL55056561-shouchuan-01-20mm","barcode":"","position":1,"option1":"Bloodshot eye string","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/38114187df9f463eb9d17542642871ce.jpeg","path":"38114187df9f463eb9d17542642871ce.jpeg","width":1920,"height":2560,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":54,"min_quantity":1}],"weight":"0","compare_at_price":"80.46","price":"54","retail_price":"80.46","available":true,"url":"\/products\/bloodshot-eye-stringf39f3657-ceec-44fa-97cc-0dc15b0cffb84a316526-7d4b-4808-b4d6-2a52fe752b663f48edff-ab1c-4392-8607-360bc71bcca1?variant=e78f047c-75d2-4ef7-b396-ba70ef223d77","available_quantity":999999999,"options":[{"name":"Color","value":"Bloodshot eye string"}],"off_ratio":33,"flashsale_info":[],"sales":1};
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.
Sku : ZBSSSL55056561-shouchuan-01-20mm
${function(){
const variantData = data.variant || {"id":"e78f047c-75d2-4ef7-b396-ba70ef223d77","product_id":"5dcaef0d-d054-481f-9684-eae899cb431c","title":"Bloodshot eye string","weight_unit":"kg","inventory_quantity":999,"sku":"ZBSSSL55056561-shouchuan-01-20mm","barcode":"","position":1,"option1":"Bloodshot eye string","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/38114187df9f463eb9d17542642871ce.jpeg","path":"38114187df9f463eb9d17542642871ce.jpeg","width":1920,"height":2560,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":54,"min_quantity":1}],"weight":"0","compare_at_price":"80.46","price":"54","retail_price":"80.46","available":true,"url":"\/products\/bloodshot-eye-stringf39f3657-ceec-44fa-97cc-0dc15b0cffb84a316526-7d4b-4808-b4d6-2a52fe752b663f48edff-ab1c-4392-8607-360bc71bcca1?variant=e78f047c-75d2-4ef7-b396-ba70ef223d77","available_quantity":999999999,"options":[{"name":"Color","value":"Bloodshot eye string"}],"off_ratio":33,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}