Baroque Style Heart Pearl Chain Bracelet Set
${function() {
const variantData = data.variant || {"id":"27662ba4-28f0-42a9-9bf2-b78885f4e256","product_id":"593aac70-eb83-4932-adec-19fa50c9fef9","title":"Gold Set","weight_unit":"kg","inventory_quantity":0,"sku":"Lin211119245-Gold Set","barcode":"","position":1,"option1":"Gold Set","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f07aea60fe8e7da39f954f49ac6eee3c.jpeg","path":"f07aea60fe8e7da39f954f49ac6eee3c.jpeg","width":1200,"height":1200,"alt":"Baroque Style Heart Pearl Chain Bracelet Set","aspect_ratio":1},"wholesale_price":[{"price":19.08,"min_quantity":1}],"weight":"0.03","compare_at_price":"30.6","price":"19.08","retail_price":"30.6","available":true,"url":"\/products\/baroque-style-heart-pearl-chain-bracelet-set-gwkt?variant=27662ba4-28f0-42a9-9bf2-b78885f4e256","available_quantity":999999999,"options":[{"name":"Color","value":"Gold Set"}],"off_ratio":38,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Gold Set
${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
$19.08
${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":"27662ba4-28f0-42a9-9bf2-b78885f4e256","product_id":"593aac70-eb83-4932-adec-19fa50c9fef9","title":"Gold Set","weight_unit":"kg","inventory_quantity":0,"sku":"Lin211119245-Gold Set","barcode":"","position":1,"option1":"Gold Set","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f07aea60fe8e7da39f954f49ac6eee3c.jpeg","path":"f07aea60fe8e7da39f954f49ac6eee3c.jpeg","width":1200,"height":1200,"alt":"Baroque Style Heart Pearl Chain Bracelet Set","aspect_ratio":1},"wholesale_price":[{"price":19.08,"min_quantity":1}],"weight":"0.03","compare_at_price":"30.6","price":"19.08","retail_price":"30.6","available":true,"url":"\/products\/baroque-style-heart-pearl-chain-bracelet-set-gwkt?variant=27662ba4-28f0-42a9-9bf2-b78885f4e256","available_quantity":999999999,"options":[{"name":"Color","value":"Gold Set"}],"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.