10mm Square Screw Back Earring
${function() {
const variantData = data.variant || {"id":"279d5233-0859-4485-a470-f66ba525d707","product_id":"88925d13-42ad-4cf6-9168-630712ef7ccc","title":"Silver-One Size","weight_unit":"kg","inventory_quantity":9998,"sku":"Ttxt32024042457-14-i","barcode":"","position":2,"option1":"Silver","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/69cf0cafa7575d21fdd7a5856a466c7a.jpeg","path":"69cf0cafa7575d21fdd7a5856a466c7a.jpeg","width":1084,"height":950,"alt":"","aspect_ratio":1.1410526315789473},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.99","retail_price":"0","available":true,"url":"\/products\/10mm-square-screw-back-earring?variant=279d5233-0859-4485-a470-f66ba525d707","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Silver
${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:
One Size
${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
$27.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":"279d5233-0859-4485-a470-f66ba525d707","product_id":"88925d13-42ad-4cf6-9168-630712ef7ccc","title":"Silver-One Size","weight_unit":"kg","inventory_quantity":9998,"sku":"Ttxt32024042457-14-i","barcode":"","position":2,"option1":"Silver","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/69cf0cafa7575d21fdd7a5856a466c7a.jpeg","path":"69cf0cafa7575d21fdd7a5856a466c7a.jpeg","width":1084,"height":950,"alt":"","aspect_ratio":1.1410526315789473},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.99","retail_price":"0","available":true,"url":"\/products\/10mm-square-screw-back-earring?variant=279d5233-0859-4485-a470-f66ba525d707","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"},{"name":"Size","value":"One Size"}],"off_ratio":0,"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":"279d5233-0859-4485-a470-f66ba525d707","product_id":"88925d13-42ad-4cf6-9168-630712ef7ccc","title":"Silver-One Size","weight_unit":"kg","inventory_quantity":9998,"sku":"Ttxt32024042457-14-i","barcode":"","position":2,"option1":"Silver","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/69cf0cafa7575d21fdd7a5856a466c7a.jpeg","path":"69cf0cafa7575d21fdd7a5856a466c7a.jpeg","width":1084,"height":950,"alt":"","aspect_ratio":1.1410526315789473},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"27.99","retail_price":"0","available":true,"url":"\/products\/10mm-square-screw-back-earring?variant=279d5233-0859-4485-a470-f66ba525d707","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}