Metal dice set table game multi-sided Rubik's cube irregular multiple colors creative dice
${function() {
const variantData = data.variant || {"id":"2a1c35b1-4842-41cf-94ae-e1546f67ac67","product_id":"e96f35a6-7cae-46b7-9f67-ce86010fa587","title":"A","weight_unit":"kg","inventory_quantity":10000,"sku":"-A-A0019220","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/83e5cba2bf5b970d43dc12876b3d6b68.jpg","path":"83e5cba2bf5b970d43dc12876b3d6b68.jpg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"24.99","retail_price":"89.99","available":true,"url":"\/products\/metal-dice-set-table-game-multi-sided-rubiks-cube-irregular-multiple-colors-creative-dice?variant=2a1c35b1-4842-41cf-94ae-e1546f67ac67","available_quantity":999999999,"options":[{"name":"Color","value":"A"}],"off_ratio":72,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = false;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
A
${function(){
return `${data.value} `;
}()}
${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":"2a1c35b1-4842-41cf-94ae-e1546f67ac67","product_id":"e96f35a6-7cae-46b7-9f67-ce86010fa587","title":"A","weight_unit":"kg","inventory_quantity":10000,"sku":"-A-A0019220","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/83e5cba2bf5b970d43dc12876b3d6b68.jpg","path":"83e5cba2bf5b970d43dc12876b3d6b68.jpg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"89.99","price":"24.99","retail_price":"89.99","available":true,"url":"\/products\/metal-dice-set-table-game-multi-sided-rubiks-cube-irregular-multiple-colors-creative-dice?variant=2a1c35b1-4842-41cf-94ae-e1546f67ac67","available_quantity":999999999,"options":[{"name":"Color","value":"A"}],"off_ratio":72,"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.